Firmware · Timers and PWM
Hardware timers count clock ticks, and the settings you choose determine how often they raise an event, from a blink to a fast sampling rate.