BS_General purpose timers
RM0082
322/844
Doc ID 018672 Rev 1
Note:
This table just illustrates the use of prescaler and its different value on a particular Input
Frequency. The table in this shows the value with 66.5 MHz as Timer clock.Timer Max
period = (65536 xTimer Resolution).
17.2.5 TIMER_STATUS_INT_ACK
register
The TIMER_STATUS_INT_ACK (Status and Interrupt Acknowledge Timer) is a RW register
which indicates the raw interrupt sources status, prior to any masking. The
TIMER_STATUS_INT_ACK bit assignments are given in
.
[05]
ENABLE
1’h0
Timer enable.
Setting this bit, the GPT is enabled. Once enabled, an
initialization phase is performed before starting to count,
and capture registers (TIMER_REDG_CAPT and
TIMER_FEDG_CAPT) and counter register
(TIMER_COUNT) are cleared.
Clearing this bit, the GPT is disabled, and capture as well
as counter registers are frozen. After reset the GPT is
disabled and all interrupt sources are masked.
[04]
MODE
1’h0
Operation mode.
This bit allows to select the operation mode of the GPT,
according to encoding.
1‘b0 = Auto-reload mode.
1‘b1 =Single-shot.
[03:00]
PRESCALER
4’h0
Prescaler configuration.
This 4 bit field controls the prescaler configuration,
according to encoding.
Table 257.
PRESCALER configuration
Value
Division Scale
Frequency [MHz]
Resolution [ns]
Max time [ms]
4‘b0000
1
66.5
15.04
0.971
4‘b0001
2
33.25
30.08
1.971
4‘b0010
4
16.625
60.15
3.942
4‘b0011
8
8.313
120.30
7.884
4‘b0100
16
4.156
240.20
15.768
4‘b0101
32
2.078
481.20
31.538
4‘b0110
64
1.039
962.41
63.071
4‘b0111
128
0.520
1924.81
126.143
4‘b1000
256
0.260
3849.62
252.285
4‘b1001 to
4‘b1111
Not allowed
Not allowed
Not allowed
Not allowed
Table 256.
Timer_Control register bit assignments (continued)
Bit
Name
Reset value
Description