Refresh Timer Counter (Rtcnt); Refresh Time Control Register (Rtcor) - Hitachi H8S/2678 Series Reference Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

4.2.11

Refresh Timer Counter (RTCNT)

Bit
7
Initial value
0
Read/Write
R/W
RTCNT is an 8-bit readable/writable up-counter.
RTCNT counts up using the internal clock selected by bits RTCK2 to RTCK0 in REFCR.
When RTCNT matches RTCOR (compare match), the CMF flag in REFCR is set to 1 and
RTCNT is cleared to H'00. If the RFSHE bit in REFCR is set to 1 at this time, a refresh cycle is
started. If the RFSHE bit is cleared to 0 and the CMIE bit in REFCR is set to 1, a compare match
interrupt (CMI) is generated.
RTCNT is initialized to H'00 by a reset and in hardware standby mode. It is not initialized in
software standby mode.
4.2.12

Refresh Time Control Register (RTCOR)

Bit
7
Initial value
1
Read/Write
R/W
RTCOR is an 8-bit readable/writable register that sets the period for compare match operations
with RTCNT.
The values of RTCOR and RTCNT are constantly compared, and if they match, the CMF flag in
REFCR is set to 1 and RTCNT is cleared to H'00.
RTCOR is initialized to H'FF by a reset and in hardware standby mode. It is not initialized in
software standby mode.
6
5
0
0
R/W
R/W
6
5
1
1
R/W
R/W
4
3
0
0
R/W
R/W
4
3
1
1
R/W
R/W
2
1
0
0
R/W
R/W
2
1
1
1
R/W
R/W
0
0
R/W
0
1
R/W
117

Advertisement

Table of Contents
loading

Table of Contents