Micro-controllers, such as the STM32 utilize hardware timers to generate
signals of various frequencies, generate pulse-width-modulated (PWM)
outputs, measure input pulses, and trigger events at known frequencies or
delays. The STM32 parts have several different types of timer peripherals
which vary in their configurability. The simplest timers (TIM6 and TIM7)
are primarily limited to generating signals of a known frequency or pulses of
fixed width. While more sophisticated timers add additional hardware to utilize
such a generated frequency to independently generate signals with specific
pulse widths or measure such signals. In this chapter we show how timers can
be used to control the intensity of the ST7735 backlight (by modulating its
enable signal) and to control common hobby servos.