C55XX CSL EXAMPLE

- Main Page
- Related Pages
- Data Structures

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:

- Open the CCS and connect the target (C5505/C5515 EVM)
- Open the project "CSL_SPI_Example_Out.pjt" and build it
- Load the program on to the target
- Set the PLL frequency to 12.288MHz
- Run the program and observe the test result
- Repeat the test at PLL frequencies 40, 60, 75 and 100MHz
- Repeat the test in Release mode

### TEST RESULT:

- All the CSL APIs should return success
- Data in the read and write buffers should match.