Hi all,
We have interfaced CPLD to Zone0 of XINTF module. The Address BUS and RD/WR control signals are going to the CPLD, whereas the Data BUS is shared across multiple latches. Following piece of code attempts to drive the discretes under the control of CPLD.
*Discout = 0x1234; where Discout = 0x4002
When CPLD sees the address(0x4002) with XCSZ0 and WR control signal from DSP, it creates the clock to latch the data present on the Data BUS(0x1234) to the particular latch device.
However, there is no logic in CPLD for the read operation as shown below and it wont take any action when it sees the address 0x4002 followed by XCSZ0 and RD signals.
ReadData = *Discout; where Discout = 0x4002
I was expecting some junk data to be read by DSP. But while debugging, I found that ReadData = 0x1234 which was written earlier in that address.
Also, in the memory window, i am seeing the data(0x1234) in location 0x4002 which is XINTfaced. When I tried to modify the contents to 0x5678 and read it, i am exactly reading the same.
My question is where the data is getting stored in case of XINTF Zone0 write operation and how i am able to read the data back without any data corruption.
F28335 datasheet says the on-chip memory locations 0x2000 to 0x5000 are reserved. Am I writing into this area of memory whenever the write is performed on 0x4002?
Please help me to understand.
Thank you,
Jaiganesh
