A timer channel may also be used to measure pulse widths – in effect
decoding pwm signals. There are many other configuration options for the
STM32 timers including mechanisms to synchronize multiple timers both to
each other and to external signals.
In the remainder of this chapter we consider two timer applications including
PWM output (Section 10.1), input pulse measurement (Section 10.2).
In Chapter 13 we show how to use a timer to control DMA transfers for an
audio player and in Chapter 14 we use a timer to sample and analog input at
regular intervals.