BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
173 / 1149
Rev.1.02
6.5.2
The start timing of the counter
By placing the timer channel starting the TSmn position bit of register m(TSm), the timer count register
mn (TCRmn) enters the run Enabled state.
The operation from the count Enabled state to the timer count register mn (TCRmn) begins to count as shown
in Table 6-6.
Table 6-6 Runs from the count enable state to the timer count register mn (TCRmn) starting to count
The operating mode of the timer
Run after
the TSmn
position
"1"
•
Interval timer mode
No action is taken from the time the start of detection (TSmn=1) is generated until
the count clock is generated.
The value of
the
TDRmn
register is loaded into the
TCRmn
register by the first
count clock and the count is decremented by subsequent count clocks (see
"Operation of the 6.5.3(1) Interval Timer Mode").
•
Event counter pattern
Load the value of the TDRmn register into the TDRmn register by writing "1" to the
TSmn bit.
If the input edge of TImn is detected, the count is decremented by a subsequent
counting clock. (See "6.5.3(2).)
Run of the event counter pattern").
•
Capture mode
No action is taken from the time it is detected and triggered until the counting clock
is generated.
"0000H"
is
loaded into the
TCRmn
register by the first counting clock and counted
incrementally by subsequent counting clocks (refer to the operation of "6.5.3(3)
capture mode (interval measurement of input pulses)").
•
Single count mode
By writing "1" to the TSmn bit in the state where the timer stops running (TEmn=0),
you enter the one that starts triggering, etc
Pending state.
No action is taken from the time it is detected and triggered until the counting clock
is generated.
The value of the TDRmn register is loaded into the TCRmn register by the first
counting clock, and subsequent meters are passed
Counts the number of clocks to decrement (see "6.5.3(4)
Operation of single count
mode").
•
Capture &
Single Count mode
By writing "1" to the TSmn bit in the state where the timer stops running (TEmn=0),
you enter the one that starts triggering, etc
Pending state.
No action is taken from the time it is detected and triggered until the counting clock
is generated.
"0000H" is loaded into the TCRmn register by the first counting clock and is
performed by subsequent counting clocks
Increment count (see "6.5.3(5)
Capture
&
Single Count Mode Run (Measurement of
High Level Width)").