351
11.1.4
Register Configuration
Table 11.2 summarizes the WDT registers.
Table 11.2
WDT Registers
Address
*
1
Write
*
2
Read
Name
Abbreviation
R/W
Initial Value
H'FFF8C H'FFF8C Timer control/status register
TCSR
R/(W)
*
3
H'18
H'FFF8D Timer counter
TCNT
R/W
H'00
H'FFF8E H'FFF8F Reset control/status register
RSTCSR
R/(W)
*
3
H'3F
Notes:
*
1 Lower 20 bits of the address in advanced mode
*
2 Write word data starting at this address.
*
3 Only 0 can be written in bit 7, to clear the flag.
11.2
Register Descriptions
11.2.1
Timer Counter (TCNT)
TCNT is an 8-bit readable and writable up-counter.
Bit
Initial value
Read/Write
7
0
R/W
6
0
R/W
5
0
R/W
4
0
R/W
3
0
R/W
0
0
R/W
2
0
R/W
1
0
R/W
Note: The method for writing to TCNT is different from that for general registers to prevent
inadvertent overwriting. For details see section 11.2.4, Notes on Register Access.
When the TME bit is set to 1 in TCSR, TCNT starts counting pulses generated from an internal
clock source selected by bits CKS2 to CKS0 in TCSR. When the count overflows (changes from
H'FF to H'00), the OVF bit is set to 1 in TCSR. TCNT is initialized to H'00 by a reset and when
the TME bit is cleared to 0.
Содержание H8/3060
Страница 10: ......
Страница 16: ......
Страница 114: ...66 ...
Страница 132: ...84 ...
Страница 144: ...96 ...
Страница 170: ...122 ...
Страница 212: ...164 ...
Страница 268: ...220 ...
Страница 332: ...284 ...
Страница 396: ...348 ...
Страница 494: ...446 ...
Страница 698: ...650 ...
Страница 729: ...681 H8 3062F ZTAT or H8 3062F ZTAT R mask version Ports 1 2 5 LED 600 Ω Figure 22 5 Sample LED Circuit ...
Страница 748: ...700 H8 3064F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 8 Sample LED Circuit ...
Страница 777: ...729 H8 3062F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 14 Sample LED Circuit ...
Страница 810: ...762 ...
Страница 994: ...946 ...