The APB Timer module is a sixteen-bit down counter with a selectable prescaler. Prescale values of 1, 16 and 256 can be selected. The prescaler extends the timer’s range at the expense of precision.
The Timer provides two modes of operation that provide a free running value and also periodic interrupts.
The Timer contains several configuration registers that can be written and read by the processor. Two 4-bit prescalers precede a 32-bit counter. The counter can be clocked at either the input clock rate, or a choice of 7 prescaled rates. The counter can be loaded with a value from a preload register. The counter can optionally generate an interrupt.
The Timer module is a standard APB Slave peripheral; the Timer registers are accessed through this interface.
- Useful for software or RTOS time base
- 16-bit counter/timer
- Two 4-bit pre-scalers
- Periodic and free running event timer modes
- Interrupt output
- AMBA APB bus interface
- Verilog Source
- Complete Test Environment
- APB Bus Functional Model
- C-Sample Code
Block Diagram of the APB Timer (70124) IP Core