SPRUIR8B april 2020 – july 2023
FILE: clb_ex32_led_driver.c
For the detailed description of this example, please refer to: How to Implement Custom Serial Interfaces Using the Configurable Logic Block (CLB) Application Note (SPRAD62).
In this example two CLB tiles are used to communicate with an LP5891-Q1 LED driver. One CCSI bus is used to transmit data using the CCSI bus protocol, while a second tile is used to receive data from the CCSI bus. The C28x CPU communicates with the CLB logic through a hardware-abstraction layer (HAL). This example also utilizes a PWM to generate the required CCSI clocks, and a timer to generate periodic sync events to the LED driver.
This example is only available on C2000 MCU devices with CLB types 2 and up.
External Connections
CCSI Input Signal GPIO pin LED Driver CLB_SIN_1 GPIO17 SOUT
CCSI Output Signal GPIO pin LED Driver CLB_SOUT_1 GPIO08 SIN CLB_SCLK_1 GPIO01 SCLK