15-13
INTERFACING WITH EXTERNAL MEMORY
.
The BUSWIDTH signal can be used in numerous applications. For example, a system could store
code in a 16-bit memory device and data in an 8-bit memory device. The BUSWIDTH signal
could be tied to the chip-select input of the 8-bit memory device (shown in Figure 15-13 on page
15-24). When BUSWIDTH is low, it enables 8-bit bus mode and selects the 8-bit memory device.
When BUSWIDTH is high, it enables 16-bit bus mode and deselects the 8-bit memory device.
15.3.1 Timing Requirements for BUS WIDTH
When using BUSWIDTH to dynamically change between 8-bit and 16-bit bus widths, setup and
hold timings must be met for proper operation (see Figures 15-4 and 15-5, and Table 15-4). Be-
cause a decoded, valid address is used to generate the B USWIDTH signal, the setup time is spec-
ified relative to the address being valid. This specification, TAVGV, indicates how much time an
external device has to decode the valid address and generate a valid BUS WIDTH signal. As
shown in Figure 15-5, the 8XC196MH has an additional BUSWIDTH setup tim ing specification.
This specification, TLLGV, indicates how much time an external device has to ge nerate a valid
BUSWIDTH signal after ALE falls.
BUSWIDTH must be held valid until the minimum hold specification, TCLGX (for 8XC196MC,
MD) or TLLGX (for 8XC196MH), has been met. Refer to the datasheet for the current TAVGV,
TCLGX, and TLLGX specifications.
Table 15-4. BUSWIDTH Signal Timing Definitions
Symbol Definition
TAVGV Address Valid to BUSWIDTH Setup
Maximum time the external d evice has to assert or deassert BUSW IDTH after the microcon-
troller outputs the address.
TCLGXBUSWIDTH Hold after CLKOUT Low
Minimum time the level of the BUSWIDTH signal must be valid after CLKOUT falls.
TLLGV†† ALE Low to BUSW IDTH Setup
Maximum time the external d evice has to assert or deassert BUSW IDTH after ALE falls.
TLLGX†† BUSWIDTH Hold af ter ALE Low
Minimum time the level of the BUSWIDTH signal must be valid after ALE falls.
TXTAL11/FXTAL1
All AC timing s are refer enced to TXTAL1.
This specification applies to the 8XC196MC, MD microcont rollers only.
†† This specification applies to the 8XC196MH microcontroller only.