This content has been marked as final. Show 2 replies
Download the technical reference manual of fx2lp... it has code snippets to implement slave fifo (actually 90% of the code)...
aasi is correct, the Technical Reference Manual for the FX2LP is the primary bible for any FX2 developer. It's a huge document.
Additionally, if you are using an FPGA, I highly recommend looking at the actual FX2LP datasheet. There is so much information in the TRM that one often forgets about what's in the datasheet. There is a wealth of timing information, including some anomalies regarding FIFO interface. For example, the setup and hold times for the Slave FIFO pins changes drastically depending on whether the IFCLK is internal or external. Another example is that the FIFO address bus' setup time is greater than one IFCLK cycle at 48 MHz. Finally, it shows timing diagrams for burst reads and writes to the slave FIFO interface.