What am i supposed to handle of IOC of fx2lp? | Cypress Semiconductor
What am i supposed to handle of IOC of fx2lp?
I trying to slave fifo in fx2lp 56pin.
And i now see the following example about slave fifo.
But i don't know what whether IOC used to output or input.
Could you please let me now about the direction of "IOC" ?
Also, what is different between "IOC & 0x02" and "IOC|=0x01"? i don't know what they have meaning.
void TD_Poll( void )
if(!(IOC & 0x02))
done_frm_fpga = 1;
if ((done_frm_fpga) && (IOC & 0x02))
IFCONFIG = 0x03;
IOC|=0x01; //output 1 on PC.0...SYNC signal is HIGH
done_frm_fpga = 0;