AnsweredAssumed Answered

Squarewave out to PF.15

Question asked by c.a.001 on Jul 31, 2013
Latest reply on Jul 31, 2013 by Clive One
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

Outcomes