Operation; Endian/Access Size And Data Alignment; Figure 13.5 Writing To Rtcsr, Rtcnt, Rtcor, And Rfcr - Hitachi SH7751 Hardware Manual

Superh risc engine
Table of Contents

Advertisement

15
14
RTCSR,
RTCNT,
1
0
RTCOR
15
14
1
0
RFCR

Figure 13.5 Writing to RTCSR, RTCNT, RTCOR, and RFCR

Reading RTCSR, RTCNT, RTCOR, and RFCR: A 16-bit access must always be used when
reading RTCSR, RTCNT, RTCOR, or RFCR. Undefined bits are read as 0.
13.3

Operation

13.3.1

Endian/Access Size and Data Alignment

The SH7751 Series supports both big-endian mode, in which the most significant byte (MSByte)
is at the 0 address end in a string of byte data, and little-endian mode, in which the least significant
byte (LSByte) is at the 0 address end. The mode is set by means of the MD5 external pin in a
power-on reset by means of the
little-endian mode if it is high.
A data bus width of 8, 16, or 32 bits can be selected for normal memory, 16 or 32 bits for DRAM,
32 bit for synchronous DRAM, and 8 or 16 bits for the PCMCIA interface. Data alignment is
carried out according to the data bus width and endian mode of each device. Accordingly, when
the data bus width is narrower than the access size, multiple bus cycles are automatically
generated to reach the access size. In this case, access is performed by automatically incrementing
addresses to the bus width. For example, when a long word access is performed at the area with an
8-bit bus width in the SRAM interface, each address is incremented one by one, and then access is
performed four times. In the 32-byte transfer, a total of 32-byte data is continuously transferred
according to the set bus width. The first access is performed on the data for which there was an
access request, and the remaining accesses are performed in 32-byte boundary data using
waparound. During these transfers, the bus is not released and refresh operation is not performed.
In the SH7751 Series, data alignment and data length conversion between the different interfaces
is performed automatically. Quadword access is used only in transfer by the DMAC.
The relationship between the endian mode, device data length, and access unit, is shown in tables
13.8 to 13.13.
13
12
11
10
1
0
0
1
13
12
11
10
1
0
0
1

pin, big-endian mode being set if the MD5 pin is low, and
9
8
7
6
0
1
9
8
7
6
Write data
Rev. 3.0, 04/02, page 359 of 1064
5
4
3
2
Write data
5
4
3
2
1
0
1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents