Hi,
We are using MSP430147, be connected that will loop data back to the SPI Master (the CPLD).
The raw clock signal coming into the CPLD has Freq: 1.85 MHz, Prd: 542 ns.
The SCLK signal path is as below :
Raw clock ( 542 ns ) => 1/20 Clock divider => 1/4 period when SCLK is generated
So 543 ns * 20 * 4 = 43.36 us.
But there are missing bits when reading back the data. For example, the write data is "AAAAAA" but the readback data is "555554".
The data waveform that goes into the pin 20 and pin 21 of the MSP as below:
and the waveform from MSP to CPLD as below
From the result, the read and write data is shifted and not tally.
What are the possible reasons that this issue happens and what are the countermeasure that could be made to solve it?
Thanks!.