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)
74HC595 Bit angle modulation (BAM) on ESP32 IDF SDK
74HC595 Bit angle modulation (BAM) on ESP32 IDF SDK
- Attachments
-
- SPI + DMA logic
- spidmaesp32_logic.jpg (46.28 KiB) Viewed 1014 times
-
- SPI + DMA
- spidmaesp32.jpg (116.01 KiB) Viewed 1014 times
-
- schematic BAM 74HC595
- hc595esp32.png (63.37 KiB) Viewed 1014 times
Who is online
Users browsing this forum: No registered users and 68 guests