Hi there,
a newbie question, and I would be grateful for a response or at least hint where to look(read) for information.
My problem is: I have two synchronisation domains. One device (A) is running at a
2.048 frequency. Then there is a STM32 microcontroller (B) that is using 8 MHz clock source. Dev A gives out NRZ data stream and accept NRZ data stream. I want to send and receive data eg: A B. To do that I am planing to use CPLD to convert to/from parallel 8 bit data to serial NRZ stream.The question is how to organise data flow from CPLD to STM32. STM will be running at 72 MHz so I don't want to waist cycles. My idea is that once CPLD receives 8 bits of data from dev A, it copies data from shift register to a register and raises an interrupt to STM (or use internal counter), that data is ready (that would come at 2,048/8 =
256 KHz intervals, and that is perfect for me). But I can't figure out a way how to use same data lines for both writing/reading? Is there a better way than to mimic asynchronous memory interface with RDB/DSB and WRB/RWB? Please keep in mind that I only have 2 memory addresses - data to be transmitted and data to be read?Thanks in advance! Justin