Single Chip PWM decoders?

Mar 02, 2014 22 Replies

Instead of letting the CPU read the values in a tight loop, some microcontrollers can use the DMA + Timer to automatically read a GPIO register into a memory buffer at accurately timed intervals. After reading a few hundred samples, the CPU can process the information in a burst, which should be more efficient than processing 1 bit/interrupt.

I've used this method in a recent project for 8 soft UART receivers, with little CPU overhead.

Hmmm... I wonder if the DMA controller is Turing complete?

Theo

I don't think so, but it sometimes has a mind of its own...

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required