Refresh Count Register (Rfcr); 13.2.15 Notes On Accessing Refresh Control Registers - Hitachi SH7751 Hardware Manual

Superh risc engine
Table of Contents

Advertisement

13.2.14 Refresh Count Register (RFCR)

The refresh count register (RFCR) is a 10-bit readable/writable counter that counts the number of
refreshes by being incremented each time the RTCOR register and RTCNT counter values match.
If the RFCR register value exceeds the count limit specified by the LMTS bit in the RTCSR
register, the OVF flag is set in the RTCSR register and the RFCR register is cleared.
RFCR is initialized to H'0000 by a power-on reset, but is not initialized, and retains its contents, in
a manual reset and in standby mode.
Bit:
15
Initial value:
0
R/W:
Bit:
7
Initial value:
0
R/W:
R/W

13.2.15 Notes on Accessing Refresh Control Registers

When the refresh timer control/status register (RTCSR), refresh timer counter (RTCNT), refresh
time constant register (RTCOR), and refresh count register (RFCR) are written to, a special code
is added to the data to prevent inadvertent rewriting in the event of program runaway, etc. The
following procedures should be used for read/write operations.
Writing to RTCSR, RTCNT, RTCOR, and RFCR: A word transfer instruction must always be
used when writing to RTCSR, RTCNT, RTCOR, or RFCR. A write cannot be performed with a
byte transfer instruction.
When writing to RTCSR, RTCNT, or RTCOR, set B'10100101 in the upper byte and the write
data in the lower byte, as shown in figure 13.5. When writing to RFCR, set B'101001 in the 6 bits
starting from the MSB in the upper byte, and the write data in the remaining bits.
Rev. 3.0, 04/02, page 358 of 1064
14
13
0
0
6
5
0
0
R/W
R/W
12
11
0
0
4
3
0
0
R/W
R/W
R/W
10
9
0
0
R/W
R/W
2
1
0
0
R/W
R/W
8
0
0
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents