English
Language : 

SH7059 Datasheet, PDF (292/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
11. Advanced Timer Unit-II (ATU-II)
11.2.5 Timer Status Registers (TSR)
The timer status registers (TSR) are 16-bit registers. The ATU-II has 11 TSR registers: one each for channels 0, 6 to 9, and
11, two each for channels 1 and 2, and one for channels 3 to 5. For details of channel 10, see section 11.2.26, Channel 10
Registers.
Channel
0
1
2
3
4
5
6
7
8
9
11
Abbreviation
TSR0
TSR1A, TSR1B
TSR2A, TSR2B
TSR3
TSR6
TSR7
TSR8
TSR9
TSR11
Function
Indicates input capture, interval interrupt, and overflow status
Indicate input capture, compare-match, and overflow status
Indicates input capture, compare-match, and overflow status
Indicate cycle register compare-match status
Indicates down-counter output end (low) status
Indicates event counter compare-match status
Indicates input capture, compare-match, and overflow status
The TSR registers are 16-bit readable/writable registers containing flags that indicate free-running counter (TCNT)
overflow, channel 0 input capture or interval interrupt generation, channel 3, 4, 5, and 11 general register input capture or
compare-match, channel 6 and 7 compare-matches, channel 8 down-counter output end, and channel 9 event counter
compare-matches.
Each flag is an interrupt source, and issues an interrupt request to the CPU if the interrupt is enabled by the corresponding
bit in the timer interrupt enable register (TIER).
Each TSR is initialized to H'0000 by a power-on reset, and in hardware standby mode and software standby mode.
Timer Status Register 0 (TSR0)
TSR0 indicates the status of channel 0 interval interrupts, input capture, and overflow.
Bit:
15
14
13
12
11
10
9
8
—
—
—
—
—
—
—
—
Initial value:
0
0
0
0
0
0
0
0
R/W:
R
R
R
R
R
R
R
R
Bit:
Initial value:
R/W:
7
IIF2B
0
R/(W)*
6
IIF2A
0
R/(W)*
5
IIF1
0
R/(W)*
Note: * Only 0 can be written to clear the flag.
4
OVF0
0
R/(W)*
3
ICF0D
0
R/(W)*
2
ICF0C
0
R/(W)*
1
ICF0B
0
R/(W)*
0
ICF0A
0
R/(W)*
• Bits 15 to 8—Reserved: These bits are always read as 0. The write value should always be 0.
Rev.3.00 Mar. 12, 2008 Page 202 of 948
REJ09B0177-0300