Hardware Reference
In-Depth Information
reqTypeTest_4
movlw 0x80
cpfseq bmRequestType
bra reqTypeTest_5
bra requestType_80
reqTypeTest_5
movlw 0x81
cpfseq bmRequestType
bra reqTypeTest_6
bra requestType_81
reqTypeTest_6
movlw 0x82
cpfseq bmRequestType
bra reqTypeTest_7
bra requestType_82
reqTypeTest_7
movlw 0xA1
cpfseq bmRequestType
bra reqTypeTest_8
bra requestType_A1
reqTypeTest_8
movlw 0xA2
cpfseq bmRequestType
bra
transtest_stall_0 ; no other conditions accepted
bra
requestType_A2
Wenn ein SETUP Token identifiziert wurde, wird der Inhalt des Control-OUT End-
points in einen RAM-Bereich kopiert, damit er erhalten bleibt, wenn der Endpoint
für neuen Datenempfang freigegeben ist.
;******************************************************************************
; transfer control request (SETUP) data from control OUT endpoint to RAM
;******************************************************************************
getSETUP
movlw LOW bmRequestType
movwf FSR1L
movlw HIGH bmRequestType
movwf FSR1H
movlw 0x00
movwf FSR0L
movlw 0x05
movwf FSR0H
movlw 0x08
movwf DescriptorPointer
getSETUPloop
movff POSTINC0,WREG
movff WREG,POSTINC1
decfsz DescriptorPointer,F
bra
getSETUPloop
return
Search WWH ::




Custom Search