User’s Manual
C166S V1 SubSystem
The External Bus Interface
User’s Manual
8-11
V 1.6, 2001-08
External Data Bus Width
The EBC can operate on 8-bit- or 16-bit-wide external memory/peripherals. A 16-bit data
bus uses PORT0, while an 8-bit data bus only uses P0L, the lower byte of PORT0. This
saves on address latches, bus transceivers, bus routing, and memory-related increases
in transfer time. The EBC can control word accesses on an 8-bit data bus as well as byte
accesses on a 16-bit data bus.
Word accesses on an 8-bit data bus are automatically split into two subsequent byte
accesses in which the low byte is accessed first, then the high byte. The assembly of
bytes to words and the disassembly of words into bytes is handled by the EBC, and is
transparent to the CPU and the programmer.
Byte accesses on a 16-bit data bus require that the upper and lower half of the memory
can be accessed individually. In this case, the upper byte is selected with the Byte High
Enable BHE signal, while the lower byte is selected with the A0 signal. The two bytes of
the memory can be enabled independently of each other, or together when accessing
words.
When writing bytes to an external 16-bit device that has a single CS input and two WR
enable inputs (for the two bytes), the EBC can generate these two write control signals
directly. This saves the external combination of the WR signal with A0 or BHE. In this
case, pin WR serves as WRL (WRite Low byte) and pin BHE serves as WRH (WRite
High byte). Bit WRCFG in register SYSCON selects the operating mode for pins WR and
BHE. The respective byte will be written on both data bus halves.
When reading bytes from an external 16-bit device, whole words may be read and the
C166S automatically selects the byte to be input and discards the other. However, care
must be taken when reading devices that change state when being read such as FIFOs,
interrupt status registers, etc. In this case, individual bytes should be selected using BHE
and A0.
Note: PORT1 becomes available for general-purpose IO when none of the BUSCON
registers selects a demultiplexed bus mode. PORT0H becomes available for
general-purpose IO when only the 8-bit demultiplexed bus mode is selected.
Table 8-2
Bus Mode Versus Performance
Bus Mode
Transfer Rate
(Speed factor for
byte/word/dword access)
System Requirements
Free IO
Lines
8-bit Multiplexed
Very low
( 1.5 / 3 / 6 ) Low (8-bit latch, byte bus)
P1H, P1L
8-bit Demultipl.
Low
( 1 / 2 / 4 )
Very low (no latch, byte bus) P0H
16-bit Multiplexed High
( 1.5 / 1.5 / 3 )
High (16-bit latch, word bus) P1H, P1L
16-bit Demultipl.
Very high
( 1 / 1 / 2 )
Low (no latch, word bus)
---
Содержание C166S V1 SubSystem
Страница 10: ...User s Manual C166S V1 SubSystem User s Manual I 6 V 1 6 2001 08...
Страница 16: ...User s Manual C166S V1 SubSystem Introduction User s Manual 1 6 V 1 6 2001 08...
Страница 126: ...User s Manual C166S V1 SubSystem Central Processing Unit User s Manual 3 96 V 1 6 2001 08...
Страница 178: ...User s Manual C166S V1 SubSystem Memory Organization User s Manual 4 52 V 1 6 2001 08...
Страница 206: ...User s Manual C166S V1 SubSystem Instruction Set User s Manual 5 28 V 1 6 2001 08...
Страница 306: ...User s Manual C166S V1 SubSystem Detailed Instruction Set User s Manual 6 100 V 1 6 2001 08...
Страница 362: ...User s Manual C166S V1 SubSystem The External Bus Interface User s Manual 8 40 V 1 6 2001 08...
Страница 452: ...User s Manual C166S V1 SubSystem General Purpose Timer Unit User s Manual 12 44 V 1 6 2001 08...
Страница 454: ...User s Manual C166S V1 SubSystem Instruction Index User s Manual 13 2 V 1 6 2001 08...
Страница 459: ......