??? 01/21/06 05:03 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#107955 - Any error code on Control In EP? Responding to: ???'s previous message |
Mehdi said:
Last Transaction status is 00100001B always! How about Control In EP? Any error code? Extracted sequence from philips C example. Compare with yours. a) Setup interrupt handling - 'Read interrupt register' + read 2 bytes - - confirm target EP is control out EP - 'Read last transaction status register' (control out) + read 1 byte - - confirm this packet is Setup packet - 'Select Endpoint' (Control Out) + read an optional byte - 'Read buffer' - - reserved byte - - length - - data bytes (length of) - 'Clear buffer' - 'Select Endpoint' (Control Out) - 'Acknowledge setup' - 'Clear buffer' - 'Select Endpoint' (Control In) - 'Acknowledge setup' - validate packet on the memory: standard device request?, requested bytes? b) Write to endpoint - 'Select Endpoint' (control IN) + read an optional byte - 'Write buffer' - - 0 (reserved byte) - - length (=8 for the first device descriptor) - - data bytes (first 8 bytes of the device descriptor) - 'Validate buffer' Tsuneo |