English
Language : 

MC9S12E64CFUE Datasheet, PDF (536/606 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 18 Multiplexed External Bus Interface (MEBIV3)
18.4 Functional Description
18.4.1 Detecting Access Type from External Signals
The external signals LSTRB, R/W, and AB0 indicate the type of bus access that is taking place. Accesses
to the internal RAM module are the only type of access that would produce LSTRB = AB0 = 1, because
the internal RAM is specifically designed to allow misaligned 16-bit accesses in a single cycle. In these
cases the data for the address that was accessed is on the low half of the data bus and the data for
address + 1 is on the high half of the data bus. This is summarized in Table 18-15.
Table 18-15. Access Type vs. Bus Control Pins
LSTRB
1
0
1
0
0
1
0
1
AB0
0
1
0
1
0
1
0
1
R/W
Type of Access
1
8-bit read of an even address
1
8-bit read of an odd address
0
8-bit write of an even address
0
8-bit write of an odd address
1
16-bit read of an even address
1
16-bit read of an odd address
(low/high data swapped)
0
16-bit write to an even address
0
16-bit write to an odd address
(low/high data swapped)
18.4.2 Stretched Bus Cycles
In order to allow fast internal bus cycles to coexist in a system with slower external memory resources, the
HCS12 supports the concept of stretched bus cycles (module timing reference clocks for timers and baud
rate generators are not affected by this stretching). Control bits in the MISC register in the MMC sub-block
of the core specify the amount of stretch (0, 1, 2, or 3 periods of the internal bus-rate clock). While
stretching, the CPU state machines are all held in their current state. At this point in the CPU bus cycle,
write data would already be driven onto the data bus so the length of time write data is valid is extended
in the case of a stretched bus cycle. Read data would not be captured by the system until the E clock falling
edge. In the case of a stretched bus cycle, read data is not required until the specified setup time before the
falling edge of the stretched E clock. The chip selects, and R/W signals remain valid during the period of
stretching (throughout the stretched E high time).
NOTE
The address portion of the bus cycle is not stretched.
MC9S12E128 Data Sheet, Rev. 1.07
536
Freescale Semiconductor