Question
Squarewave out to PF.15
Posted on July 31, 2013 at 05:48
Howdy,
Need to output a 25kHz squarewave. Besides the obvious using a timer ISR, what other ways this can be accomplished? 1. Timer PWM? As far as I know, no timer can output a PWM out to PF.15. Am I wrong? 2. DMA from Flash (or RAM) memory to PORTF->BSRR. I was able to get this to work, however I'm wondering if the DMA transaction to the BSRR register is guaranteed to be atomic if the CPU accesses the same port at the same time that the DMA transaction is in progress? I know when the CPU accesses the BSRR, the operation is guaranteed to be atomic. Does this guaranteed also applies to DMA? TIA Andy #dma-gpio