Timer and DMA
I've been trying to configure the dma and pwm timer for 5 days with no luck...
There are a few things that I do not understand.
As far i know timer must be connected to a DMA to push the data.
1) In a timer there must be set a autoreload register (specified numer). What does that number means to dma? If I set autoreload to 8 it means 8 bits for dma?
2) What value should have pulse mode in PWM? Is PWM pulse set by a DMA in this case?
3) if I have uint32_t data = 0xAABBCC00 how I set that 0xAA will be send to PA0, 0xBB to PA1, 0xCC to PA2 and ignore 0x00?
4) How i can make it synchronous? Dma to gpio should be synchronous with a clock pin. I think i should use timer OC mode - am I right? If yes, pulse value of pulse should be set for OC?
I can not understand how I should configure the timer and what values for autopreload, pwm pulse, oc pulse should be set. Timers are sooo complicated :(