2023-01-01 06:48 AM
I am using STM32F401CCU. I am trying to generate PWM, using DMA. WHen i select DMA data size as word (16bit) it is working. But when I am trying to do Byte (8 bit) it is not working. Is it because the CCRx register 16 bit wide?
Is there any way I can transfer 8 bit data to 16 bit register? I need this to save lot of RAM space.
Please advise
2023-01-01 07:01 AM
Yes, this is how it works. No, you can't overcome this. If your task is WS2812 control, then forget the PWM and use SPI. Or change your MCU to F0/G0/L0/L4 and use UART.
2023-01-01 07:37 AM
yes, i am doing this for WS2812. How to do it with SPI? It will be great help, if you can share link for WS2812 control with SPI.
Thanks for your help
2023-01-01 09:39 PM
Why not PWM just with timer compare? Some STM32 have channel on compare to update them if dynamic pwm is needed.