Oct 01, 2010
09:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 01, 2010
09:04 AM
Hi all,
I'm trying to realize this design found on TRM, to source a packet from firmware with autoin and isochronous transfer (in order to create an header). Unfortunately only a small part of the firmware-created packets are sent.
Have you got some clue to get this design working?
while( !( EP68FIFOFLGS & 0x20 ) ) { // EP8EF=0, when buffer not empty ; // wait ‘til host takes entire FIFO data } FIFORESET = 0x80; // initiate the “source packet” sequence SYNCDELAY; FIFORESET = 0x06; SYNCDELAY; FIFORESET = 0x00; EP8FIFOBUF[ 0 ] = 0x02; // <STX>, packet start of text msg EP8FIFOBUF[ 1 ] = 0x06; // <ACK> EP8FIFOBUF[ 2 ] = 0x07; // <HEARTBEAT> EP8FIFOBUF[ 3 ] = 0x03; // <ETX>, packet end of text msg SYNCDELAY; EP8BCH = 0x00; SYNCDELAY; EP8BCL = 0x04; // pass newly-sourced buffer on to host Thanks in advance.
0 Replies