Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5386

C/C++ • Re: RP1 PWM Peripheral Single-Shot

$
0
0
There is no single-shot mode. An enabled channel stays enabled forever.

I believe if the FIFO underruns, then the last entry is repeated the next time it is popped - so you could write a tuple of {value, zero} which would generate a single PWM pulse then nothing. Polling the FIFO empty status bit and then disabling the channel would let you do this cleanly.

Statistics: Posted by jdb — Thu May 23, 2024 6:25 am



Viewing all articles
Browse latest Browse all 5386

Trending Articles