Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
8XC196Kx,8XC196Jx,87C196CA microcontroller family user's manual.1995.pdf
Скачиваний:
68
Добавлен:
23.08.2013
Размер:
3.97 Mб
Скачать

8XC196Kx, Jx, CA USER’S MANUAL

15.6.2 Write Strobe Mode

The write strobe mode eliminates the need to externally decode highand low-byte writes to external 16-bit RAM in 16-bit bus mode. When the write strobe mode is selected, the device generates WRL# and WRH# instead of WR# and BHE#. WRL# is asserted for all low byte writes (even addresses) and all word writes. WRH# is asserted for all high byte writes (odd addresses) and all word writes. In the 8-bit bus mode, WRH# and WRL# are asserted for both even and odd addresses. Figure 15-13 shows write strobe mode timing.

ALE

 

 

 

 

 

 

 

 

 

ALE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Valid

 

 

 

 

 

 

 

 

 

 

 

 

WRL#

 

 

 

 

 

 

 

WRL# and WRH#

 

 

 

 

 

 

WRH#

 

 

 

 

 

 

 

 

 

AD7:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Valid

 

 

 

 

 

Address Low

Data Out

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AD15:0

 

 

Address

 

Data Out

 

 

AD15:8

 

 

 

Address High

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-bit Bus Cycle

 

 

 

 

 

 

8-bit Bus Cycle

A3089-01

Figure 15-13. Write Strobe Mode

15-24

INTERFACING WITH EXTERNAL MEMORY

Figure 15-14 shows a 16-bit system with two EPROMs and two RAMs. It is configured to use the write strobe mode. ALE latches the address; AD15 is the chip-select signal for the EPROMs and RAMs. WRL# is asserted during low byte writes and word writes. WRH# is asserted during high byte writes and word writes. Note that RAM devices do not use AD0. WRL# and WRH# determine whether the low byte (AD0=0) or high byte (AD0=1) is selected.

VCC

 

 

 

 

 

 

BUSWIDTH

 

A15

CS#

CS#

CS#

CS#

 

 

 

 

 

 

 

74AC

A14:8

 

 

 

 

AD15:8

373

A13:7

A13:7

A12:7

A12:7

 

 

 

LE

 

 

 

 

 

 

 

 

D15:8

 

D15:8

 

ALE

 

 

16K×8

16K×8

8K×8

8K×8

8XC196

 

 

EPROM

EPROM

RAM

RAM

 

 

(High)

(Low)

(High)

(Low)

 

 

 

 

 

 

 

D7:0

 

D7:0

 

LE

A7:1

 

 

 

 

AD7:0

74AC

A6:0

A6:0

A6:0

A6:0

 

 

373

 

 

 

 

 

 

 

 

OE#

OE#

OE# WE#

OE# WE#

RD#

 

 

 

 

 

 

WRH#

 

 

 

 

 

 

WRL#

 

 

 

 

 

 

 

 

 

 

 

 

A3090-01

Figure 15-14. 16-bit System with Single-byte Writes to RAM

15-25

8XC196Kx, Jx, CA USER’S MANUAL

15.6.3 Address Valid Strobe Mode

When the address valid strobe mode is selected, the device generates the address valid signal (ADV#) instead of the address latch enable signal (ALE). ADV# is asserted after an external address is valid (see Figure 15-15). This signal can be used to latch the valid address and simultaneously enable an external memory device.

ADV#

 

 

 

 

 

 

 

ADV#

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WR# or RD#

 

 

 

 

 

 

WR# or RD#

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BHE#

 

 

 

 

Valid

 

AD7:0

 

Addr

 

Data Out

 

 

 

 

 

 

 

Low

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AD15:0

 

Address

Data Out

 

AD15:0

 

 

 

Address High

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-bit Bus Cycle

 

 

 

 

 

8-bit Bus Cycle

A3092-01

Figure 15-15. Address Valid Strobe Mode

The difference between ALE and ADV# is that ADV# is asserted for the entire bus cycle, not just to latch the address. Figure 15-16 shows the difference between ALE and ADV# for a single read or write cycle. Note that for back-to-back bus access, the ADV# function will look identical to the ALE function. The difference becomes apparent only when the bus is idle. Because ADV# is high during these periods, external memory will be disabled, thus saving power.

AD15:0

Address

Data

 

ADV#

 

 

 

ALE

 

 

 

RD#/WR#

 

 

 

 

 

Bus Idle

Next Bus Cycle

 

 

 

A3093-01

Figure 15-16. Comparison of ALE and ADV# Bus Cycles

15-26

INTERFACING WITH EXTERNAL MEMORY

Figure 15-17 and Figure 15-18 show sample circuits that use address valid strobe mode. Figure 15-17 shows a simple 8-bit system with a single flash. It is configured for the address valid strobe mode. This system configuration uses the ADV# signal as both the flash chip-select signal and the address-latch signal.

RD#

 

74AC

A14:8

 

OE#

AD14:8

 

 

 

 

373

 

 

A14:8

8XC196

 

LE

 

 

32K×8

 

 

 

Flash

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(28F256)

ADV#

 

 

 

 

 

 

 

CS#

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D7:0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LE

 

 

 

AD7:0

 

 

74AC

A7:0

 

 

 

 

 

 

 

A7:0

 

 

373

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Applies to the 8XC196KS, KT devices in bus timing modes 1 and 2 only.

A3132-01

Figure 15-17. 8-bit System with Flash

15-27

8XC196Kx, Jx, CA USER’S MANUAL

Figure 15-18 shows a 16-bit system with two EPROMs. This system configuration uses the ADV# signal as both the EPROM chip-select signal and the address-latch signal.

 

VCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BUSWIDTH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CS#

 

 

 

 

CS#

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

74AC

A14:8

 

 

 

A15:8

 

 

 

AD15:8

 

 

 

 

 

 

A13:7

 

 

 

A13:7

 

 

 

 

 

 

373

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADV#

 

 

 

 

 

LE

 

 

 

D15:8

 

D7:0

16K×8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16K×8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8XC196

 

 

 

LE

 

 

 

EPROM

 

 

 

 

EPROM

 

 

 

 

 

 

 

 

 

 

 

 

 

(High)

 

 

 

 

(Low)

 

 

 

AD7:0

 

 

 

 

74AC

A7:1

A7:1

 

 

 

 

 

 

 

 

 

 

A6:0

 

 

A6:0

 

 

 

 

 

 

 

373

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OE#

OE#

RD#

A3095-01

Figure 15-18. 16-bit System with EPROM

15-28

Соседние файлы в предмете Электротехника