I have implemented an SPI interface in Cypress FX2. I have problems in giving the XDATA and CODE. I gave the settings as CODE - 0X80-0X0fff and XDATA 0X1000. But when I program it ,Iam not able to see the SCLK. IS anything wrong with the memory settings . Thanks. Vanitha
The target MCU of AN1068 is the original EZ-USB (Anchor AN2131). Therefore, you have to rewrite the code intensively for FX2(LP).
In this appnote, port C is assigned to the bit-banging port. The original EZ-USB maps port C on XDATA area (OUTC: 0x7F98). FX2(LP) places it on the register area (IOC: 0xA - bit-addressable). It is the reason the code doesn't work.
Tsuneo
I am using port E , I have already replaced OUTC by IOE(0xB1). Now Iam also re enumerating the FX2. I have used TD_Init() and TD_poll() in the coding . Still I have problems . Vanitha