dannyf wrote: Sun Jun 20, 2021 2:42 pm
ws2812b
I looked it up and it is I think too fast for any timer isr.
but it can be done via other serial peripherals - spi, for example.
bit 1: 0b11100000;
bit 0: 0b11111000;
for a spi with a buffer or dma, that can be done fairly easily. even if we use an isr, if it is fast enough, it is doable too: a bit is 1.2us, or about 80 ticks on a stm32f1. easier with 32-bit transmission.
i did a search here, and apparently someone did it with a h/w timer
viewtopic.php?f=10&t=357
i think it may be worth trying that out with a timer, i've had an impression timer irqs are good for below 1 mhz, above that, it is a challenge.
that has been my observations prior. but timer interrupts is 'attractive' as it is possible to state the period and duty cycle directly
my guess is that i could have placed too much codes in a timer isr and hence observed a rather low trigger rate.