This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cypress ezusb fast reads and writes in 'C'

Hi, I'm having trouble getting my fast read and write strobes out of a AN2135 EZ-USB device. I don't have the code in front of me, but this is basically what I'm doing (note I've set up the ports correctly to drive the read/write strobes). All of the documentation I've seen has been in assembly, so I'm wondering if I'm missing something in the translation to 'C'. I'm trying to do this for bulk transfers...

Thanks!

xdata BYTE ext_data;

// generate fast read:
// point to InBuf1
AUTOPTRH = 0x7E;
AUTOPTRL = 0x80;
AUTODATA = *ext_data; // generate fast read

// generate fast write:
// point to OutBuf1
AUTOPTRH = 0x7E;
AUTOPTRL = 0x40;
AUTODATA = 0xFF; // write temp output data
*ext_data = AUTODATA; // generate fast write

0