The TIMER peripheral is a general purpose timer allowing user defined time intervals.
The main features of TIMER are the following:
- Two modes of operation: Timer mode and Counter mode
- Multiple capture/compare registers
- Compare event for every capture/compare register
- 4-bit (1/2X) prescaler
- Configurable number of bits including 8, 16, 24 or 32 bits
- TIMER runs on the high-frequency clock source (HFCLK)
TIMER runs on the high-frequency clock source (HFCLK) and includes a four-bit (1/2X) prescaler that can divide the timer input clock (PCLK) from the HFCLK controller. The TIMER base frequency is always given as PCLK divided by the prescaler value.
The PPI system allows a TIMER event to trigger a task on another system peripheral on the device. The PPI system also enables the TIMER task/event feature to generate periodic output and PWM signals to any GPIO. The number of GPIO pins used at the same time is limited by the number of GPIOTE channels.