请高手帮忙:我用的是jw32控制器,仿真时usb口在各台计算机上都能枚举通过(bus=1mhz),脱机后(bus=8mhz)在有的计算机上则枚举通过不了,在通过不了的计算机上外接2.0hub后再插上我的板子则又能枚举通过,这是什么原因呀?
附上我的pll部分脱机程序:
PLL_Start_48M: clra sta CTL ; pllon and pllie is disable MOV #10,br_temp ;delay DBNZ br_temp,* clra sta MSH ; lda #6 sta MSL ; N = 06 lda #96 sta MRS ; L = 96 lda #1 sta MDS ; R =01 lda #$80 sta BWC ; auto = 1
lda #$06 ; P =1, E =2 sta CTL MOV #5,br_temp DBNZ br_temp,* lda #$26 ; PLLON ON, bcs = 0 sta CTL AUTO_LP: STA COPCTL ; reset watchdog lda BWC cbeqa #$80,AUTO_LP ; VCO frequency correct or lock? MOV #8,br_temp DBNZ br_temp,* lda #$36 ; bcs = 1
sta CTL MOV #8,br_temp DBNZ br_temp,* RTS |