This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379S: Problem while Reading from NVRAM

Part Number: TMS320F28379S

Hi,

I am using tms320f28379s C2000 series controller to interface SPI via NVRAM 23lcv1024.

I have Configured the FIFO mode as per the example code provided in the control suite.

In spi, 8 bit data length is configured, the transmit data is left justified because it is less than 16bit word in the c2000 series.

While writing the data through spi into NVRAM, the data are written into nvram successfully.

Problem - While reading the data from nvram, 0xFF reads first and then only the original data (example: 0x25) is displayed. I am expecting 0x25 to be displayed initially and also subsequently.

Please find the attached spi configuration code and the screen shots.

Kindly help me. Raju +91 9597862332

spi ti controller.pdf

  • Hello Raju,

    The 23LCV1024 is a Microchip device, and it seems like the problem you are having is not that you are unable to read the data, but the data is not what you're expecting. The data that is outputted is what the SPI peripheral reads, there is no issue on the part of SPI on being able to read what is being communicated. It might be more helpful to contact Microchip to ask about how their part works, and if there should be a delay in reading the value that was just written.

    If the issue is that it requires 2 SPI reads to read the contents of the NVRAM, then it most likely is a requirement on the NVRAM's side.

    Best regards,

    Omer Amir