C55XX CSL EXAMPLE
CSL SPI EXAMPLE DOCUMENTATION

SPI EXAMPLE - POLL MODE TEST

TEST DESCRIPTION:

This test code verifies the functionality of CSL SPI module. SPI module on the C5505/C5515 DSP is used to communicate with SPI EEPROM and audio code. This test code verifies the SPI functionality using SPI EEPROM.

During the test an EEPROM page will be written and read back using CSL SPI module. CSL SPI module will be configured using SPI_config() API. EEPROM status is checked to confirm that the device is not busy. Write pin is enabled on the EEPROM for SPI data write operation. Write command is sent to the SPI. Data is written to the EEPROM page using SPI_dataTransaction() API. After successful completion of the write operation read command is sent to the SPI. Data from the EEPROM page is read using SPI_dataTransaction() API. Write and read buffers are compared for the data verification. A small amount of delay is required after each data operation to allow the device get ready for next data operation.

NOTE: THIS TEST HAS BEEN DEVELOPED TO WORK WITH CHIP VERSIONS C5505 AND C5515. MAKE SURE THAT PROPER CHIP VERSION MACRO IS DEFINED IN THE FILE c55xx_csl\inc\csl_general.h.

TEST PROCEDURE:

TEST RESULT: