Memory Card Interface; Data Size And Data Alignment; Figure 6.16 Access Sizes And Data Alignment Control - Renesas H8S/2158 User Manual

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

6.7

Memory Card Interface

A CP expansion area can be set to the CF expansion area (memory card mode) by setting both the
CPCSE bit in BCR2 to 1 and the CFE bit in BCR to 1. In memory card mode, the bus width is
fixed to 16 bits. In this mode, signal pins other than CPCS1 and CPCS2 are common to the basic
bus interface, but their signal waveforms differ. The number of access states and waveforms of the
strobe signals (CPOE and CPWE) can be controlled by the WMS21, WMS20, WC22, WC21, and
WC20 bits in WSCR2 and the OWEAC and OWENC bits in BCR2.
6.7.1

Data Size and Data Alignment

The data sizes for the CPU and other internal bus masters are byte, word, and longword. The BSC
has a data alignment function, and controls whether the upper data bus (D15 to D8) or lower data
bus (D7 to D0) is used when the CF expansion area is accessed in memory card mode according to
the accessed data size.
Figure 6.16 illustrates the data alignment control. In CF expansion area access, the upper data bus
(D15 to D8) and lower data bus (D7 to D0) are used. The amount of data that can be accessed at
one time is one byte or one word: a longword access is performed as two word accesses.
Byte size
Byte size
Word size
Longword
size

Figure 6.16 Access Sizes and Data Alignment Control

• Even address
• Odd address
1st bus cycle
2nd bus cycle
Upper data bus
Lower data bus
D15
D8 D7
Rev. 3.00 Jan 25, 2006 page 137 of 872
Section 6 Bus Controller
D0
: Even data
: Odd data
REJ09B0286-0300

Advertisement

Table of Contents
loading

Table of Contents