博文

JieLi AC6966B Development Board Peripheral Expansion: JL AC696N SPI Drives Flash, LCD, and RGB LEDs

图片
  Introduction For products like Bluetooth speakers and headphones, the chip's built-in resources are rarely enough—you need external Flash to store prompt tones, an LCD to display status, and a few RGB LEDs for ambiance. These are common requirements. The JL JieLi AC696N's SPI interface is perfect for the job—it's fast enough and can even simulate some special timing. However, the configuration differs when driving different peripherals with SPI, especially for LEDs like WS2812, which have strict timing requirements. A slight deviation and the lighting pattern goes wrong. 最小化图片 编辑图片 删除图片 I've recently gotten all three—Flash, LCD, and RGB LEDs—working on the AC696N development board. Here are the key configuration points, so you can directly reuse them when building your own products. I. Basic SPI Configuration In board_ac696x_demo.c , under SPI_PLATFORM_DATA_BEGIN , configure the SPI parameters: port group, clock, mode, and role (master). 最小化图片 编辑图片 删除图片 II. Applicati...