STM32L011E4 Using DMA/DMA Burst for one pulse output
I have the need to send a serial data stream where each cycle may or may not have a different duty cycle. My frequency is 10 KHz.
The data stream to send a 0x5A with parity would look like this (1 cycle at each duty cycle)
Start Bit 90% Duty Cycle
Bit 7 (0) 60% Duty Cycle
Bit 6 (1) 30% Duty Cycle
Bit 5 (0) 60% Duty Cycle
Bit 4 (1) 30% Duty Cycle
Bit 3 (1) 30% Duty Cycle
Bit 2 (0) 30% Duty Cycle
Bit 1 (1) 30% Duty Cycle
Bit 0 (0) 60% Duty Cycle
Parity (0) 60% Duty Cycle
Since the STM32L0X1 does not have a repeat count register on the timer and i need only one cycle at each duty cycle my thought is to use one pulse mode and balance the pre delay for the next pulse and pulse width for the current pulse to accomplish my duty cycle changing.
How can I use DMA/DMA Burst to update the timer automatically so I don't have to tie up the CPU bit banging the waveform?
Thank you..