03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHIP-SELECT UNIT<br />

In the previous equations, a stop value of 1023 (03FFH) results in a physical ending address of<br />

0FFBFFH (memory) or 0FFBFH (I/O). These addresses do not represent the top of the memory<br />

or I/O address space. To have a chip-select enabled to the end of the physical address space, the<br />

ISTOP control bit must be set. The ISTOP control bit overrides the stop address comparator output<br />

(see Figure 6-2 on page 6-3).<br />

6.4.4 Enabling and Disabling Chip-Selects<br />

The ability to enable or disable a chip-select is important when multiple memory devices share<br />

(or can share) the same physical address space. Examples of where two or more devices would<br />

occupy the same address space include shadowed memory, bank switching and paging.<br />

The STOP register holds the CSEN control bit, which determines whether the chip-select should<br />

go active. A chip-select never goes active if its CSEN control bit is cleared.<br />

Chip-selects can be disabled by programming the stop address value less than the start address<br />

value or by programming the start address value greater than the stop address value. However,<br />

the ISTOP control bit cannot be set when chip-selects are disabled in this manner.<br />

6.4.5 Bus Wait State and Ready Control<br />

Normally, the bus ready input must be inactive at the appropriate time to insert wait states into<br />

the bus cycle. The Chip-Select Unit can ignore the state of the bus ready input to extend and complete<br />

the bus cycle automatically. Most memory and peripheral devices operate properly using<br />

fifteen or fewer wait states. However, accessing such devices as a dual-port memory, an expansion<br />

bus interface, a system bus interface or remote peripheral devices can require more than fifteen<br />

wait states to complete a bus cycle.<br />

The START register holds a four-bit value (WS3:0) that defines the number of wait states to insert<br />

into the bus cycle. Figure 6-7 shows a simplified logic diagram of the wait state and ready<br />

control functions.<br />

6-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!