Hi,
I have connected the MSP430F5529 Launchpad with an ADS1292 and a Micro SD card using SPI. The ADS1292 is on UCB0 and SD Card is on UCB1. Both the SPI transfers are working fine, however on the UCB0 (ADS1292) the intermittent data corruption is seen while reading the Rx Buffer. Details given below:
The ADS1292 is connected to a simulator and its 1st, 4th and 7th byte are known and they should be:
1st Byte - 0xC0
4th and 7th byte - 0x00
many at times I get the first byte as 0x40 and the 7th byte as 0x06 - I have not monitored the 4th byte and hence not sure if the deviation exists there or not. This is when the SPI Rx Buffer is read. while on the logic analyzer I can see that the correct byte is coming in to the MSP430F5529 from ADS1292, Given below are the screen shots:
Some observations:
- I have noticed that as the SCLK to ADS1292 is increased the problem is more frequent but have noticed an exception to this as well. The MSP is running at 24 MHz and SCLK for the ADS is from ACLK, I change the divider to 3 giving me a frequency of 8MHz i see that the problem remains but is less frequent.
- The problem is periodic, the periodicity is not like a clock work precision but its not completely random as well.
- Very infrequent as compared to the 7th byte the 8th byte is shown as 0x07 in the buffer.
- The byte being read wrongly in the buffer only after the SD card has finished writing and can be seen from the 4th picture. The SPI at the bottom is that of the micro SD card.
I request your inputs to solve this issue.
Regards




