74HC595 Bit angle modulation (BAM) on ESP32 IDF SDK

Bitscat
Posts: 1
Joined: Wed Feb 22, 2023 4:58 pm

74HC595 Bit angle modulation (BAM) on ESP32 IDF SDK

Postby Bitscat » Thu Feb 23, 2023 4:15 am

I'm working on ESP32 + 74HC595, i want to use BAM(Bit angle modulation) to control the brightness of each LED at output 74HC595.
I'm trying with SPI + LEDC, but LEDC is not "fast state change", so I still see the LED blinking. It also takes up a lot of CPU processing time.
So i think DMA + SPI is better idea, but I don't know how DMA can work with Linked Descriptor. (My code in image)
Attachments
spidmaesp32_logic.jpg
SPI + DMA logic
spidmaesp32_logic.jpg (46.28 KiB) Viewed 1015 times
spidmaesp32.jpg
SPI + DMA
spidmaesp32.jpg (116.01 KiB) Viewed 1015 times
hc595esp32.png
schematic BAM 74HC595
hc595esp32.png (63.37 KiB) Viewed 1015 times

Who is online

Users browsing this forum: No registered users and 62 guests