DMA Synchronous Serial output

gju1962
Posts: 1
Joined: Mon Jan 20, 2025 3:03 am

DMA Synchronous Serial output

Postby gju1962 » Mon Jan 20, 2025 9:29 am

I bought a esp32 dev board and am learning about the esp32 architecture. I have a LED matrix that is 8x12 and it accepts synchronous serial data: serial data, serial clock (and finally Latch). 96 bits that correspond to the 96 LEDs. The display has (6) cascaded TLC59281 16-output LED drivers. I have it working with bit banging to three gpio outputs. Now I’m wondering if there might be a way to DMA 96 on/off states from memory to a couple of serial outputs. I’m looking for ideas, things I can go research.

MicroController
Posts: 1954
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: DMA Synchronous Serial output

Postby MicroController » Tue Jan 21, 2025 11:38 pm

Sounds like you'd want to look into SPI. (MOSI->SIN, SCLK->SCLK, CS->LAT)
Though DMA isn't really a good fit for only 96-bit transactions - that's only 3 32-bit words, and the SPI peripheral already has an integral buffer of 16 words.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 82 guests