Datasheet
Timers and PWM
Intel
®
Quark™ microcontroller D2000
January 2016 Datasheet
Document Number: 333577-002EN 351
18.3.2 Timer Mode
When a timer counter is enabled after being reset or disabled, the count value is
loaded from the TimerNLoadCount register; this occurs in both free-running and user-
defined count modes.
When a timer counts down to 0, it loads one of two values, depending on the timer
operating mode:
• User-defined count mode – Timer loads the current value of TimerNLoadCount
or TimerNLoadCount2 register alternatingly. One can program same value into
TimerNLoadCount and TimerNLoadCount2 registers for same interrupt
periodicity. Use this mode if a fixed periodic timed interrupt is needed.
• Free-running mode – Timer loads the maximum value of 32-bits of all-ones.
The timer counter wrapping to its maximum value allows time to reprogram or
disable the timer before another interrupt occurs. Use this mode if a single
timed interrupt is needed. After getting the interrupt, disable the timer so that
it is stopped before it fires another interrupt after 2
32
timer clock ticks.
In both the timer operating modes, timer counter is always running/decrementing at
every timer clock tick, unless timer is disabled. An interrupt is generated when the
timer count changes from 0 to its maximum count value.
In Timer Mode the PWM Outputs are unused and associated pins can be freed up for
alternative functions by reconfiguring the pin muxing.
18.4 Memory Mapped IO Registers
Registers listed are for Timers, starting at base address B0000800h.
Table 45. Summary of PWM Registers—0xB0000800
MEM
Address
Default Instance Name Name
0xB0000800 0000_0000h Timer1LoadCount Timer 1 Load Count
0xB0000804 0000_0000h Timer1CurrentValue Timer 1 Current Value
0xB0000808 0000_0000h Timer1ControlReg Timer 1 Control
0xB000080C 0000_0000h Timer1EOI Timer 1 End Of Interrupt
0xB0000810 0000_0000h Timer1IntStatus Timer 1 Interrupt Status
0xB0000814 0000_0000h Timer2LoadCount Timer 2 Load Count
0xB0000818 0000_0000h Timer2CurrentValue Timer 2 Current Value
0xB000081C 0000_0000h Timer2ControlReg Timer 2 Control
0xB0000820 0000_0000h Timer2EOI Timer 2 End Of Interrupt
0xB0000824 0000_0000h Timer2IntStatus Timer 2 Interrupt Status