Hardware Reference
In-Depth Information
movlw B'11000000' ;UOWN, DTSEN
movff WREG,POSTDEC0 ;BD2STAT
; ************* BULK-IN ENDPOINT ****************************************
; buffer descriptor base address 0x414 to file selection register 0
; Buffer Mode 00
movlw 0x14
movwf
FSR0L
movlw 0x04
movwf FSR0H
; Bulk IN Buffer Descriptor
; buffer starts at address 0x0700
movlw 0x00 ;00000000
movff WREG,POSTINC0 ;BD5STAT
movlw 0x00
movff WREG,POSTINC0 ;BD5CNT
movlw 0x00
movff WREG,POSTINC0 ;BD5 ADRL
movlw 0x07
movff WREG,POSTINC0 ;BD5 ADRH
; DATA0 packet must be transmitted at the first transaction
; (toggling is made by every transfer complete interrupt)
movlw 0x00
movwf DATA_IN
; ************* INTERRUPT-IN ENDPOINT *************************************
; buffer descriptor base address 0x41C to file selection register 0
; Buffer Mode 00
movlw 0x1C
movwf
FSR0L
movlw 0x04
movwf FSR0H
; Interrupt IN Buffer Descriptor
; buffer starts at address 0x0580
movlw 0x00 ;00000000
movff WREG,POSTINC0 ;BD7STAT
movlw 0x00
movff WREG,POSTINC0 ;BD7CNT
movlw 0x80
movff WREG,POSTINC0 ;BD7 ADRL
movlw 0x05
movff WREG,POSTINC0 ;BD7 ADRH
; DATA0 packet must be transmitted at the first transaction
; (toggling is made by every transfer complete interrupt)
movlw 0x00
movwf INTR_IN
call
USBindicatorCONFIG
return
AuĂerdem wird im Beispielgerät der Konfiguriert-Zustand mit einer LED angezeigt.
















































