417
12.2
Register Descriptions
12.2.1
Timer Counter (TCNT)
Bit
:
7
6
5
4
3
2
1
0
Initial value :
0
0
0
0
0
0
0
0
R/W
:
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
TCNT is an 8-bit readable/writable* up-counter.
When the TME bit is set to 1 in TCSR, TCNT starts counting pulses generated from the internal
clock source selected by bits CKS2 to CKS0 in TCSR. When the count overflows (changes from
H'FF to H'00), an internal reset, a NMI interrupt (only WDT1), or an interval timer interrupt
(WOVI) is generated, depending on the mode selected by the WT/
IT
bit in TCSR.
TCNT is initialized to H'00 by a reset, in hardware standby mode, or when the TME bit is cleared
to 0. It is not initialized in software standby mode.
Note: * TCNT is write-protected by a password to prevent accidental overwriting. For details see
section 12.2.4, Notes on Register Access.
12.2.2
Timer Control/Status Register (TCSR)
TCSR0
Bit
:
7
6
5
4
3
2
1
0
OVF
WT/
IT
TME
—
—
CKS2
CKS1
CKS0
Initial value :
0
0
0
1
1
0
0
0
R/W
:
R/(W)
*
R/W
R/W
—
—
R/W
R/W
R/W
Note:
*
Only a 0 may be written to this bit to clear the flag.
TCSR1
Bit
:
7
6
5
4
3
2
1
0
OVF
WT/
IT
TME
PSS
RST/
NMI
CKS2
CKS1
CKS0
Initial value :
0
0
0
0
0
0
0
0
R/W
:
R/(W)
*
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Note:
*
Only a 0 may be written to this bit to clear the flag.
Содержание H8S/2645
Страница 4: ......
Страница 16: ......
Страница 58: ...26 ...
Страница 110: ...78 ...
Страница 120: ...88 ...
Страница 132: ...100 ...
Страница 160: ...128 ...
Страница 172: ...140 ...
Страница 235: ...203 Transfer SAR or DAR DAR or SAR Block area First block Nth block Figure 8 8 Memory Mapping in Block Transfer Mode ...
Страница 418: ...386 ...
Страница 444: ...412 ...
Страница 530: ...498 ...
Страница 562: ...530 ...
Страница 642: ...610 ...
Страница 662: ...630 ...
Страница 688: ...656 ...
Страница 756: ...724 ...
Страница 784: ...752 ...
Страница 812: ...780 ...
Страница 837: ...805 A 2 Instruction Codes Table A 2 shows the instruction codes ...
Страница 1152: ...1120 ...