Min and Max Mode 8259
Min and Max Mode 8259
Min and Max Mode 8259
Write cycle:
1. At T1 state ALE =1, this indicates that a valid address is latched on the address bus
and also M / IO’= 1, which indicates the memory operation is in progress.
2. In T2, the processor sends the data to be written to the addressed location.
3. The data is buffered on the bus until the middle of T4 state.
4. The WR’=0 becomes at the beginning of T2.
5. The BHE’ and A0 signals are used to select the byte or bytes of memory or I/O word.
6. During T2 DEN’ =0, which enables, transceivers and DT/R’ = 1 ,which indicates that
the data is transferred by the processor to the addressed device.
Maximum mode:
MEMORY INTERFACING:
Memory is an integral part of a microcomputer system. There are two main types of
memory.
(i) Read only memory (ROM): As the name indicates this memory is available only for
reading purpose. The various types available under this category are PROM, EPROM,
EEPROM which contain system software and permanent system data.
(ii) Random Access memory (RAM): This is also known as Read Write Memory. It is a
volatile memory. RAM contains temporary data and software programs generally for
different applications.
While executing particular task it is necessary to access memory to get instruction codes and
data stored in memory. The microprocessor should be able to read from or write into the
specified register. The basic concepts of memory interfacing involve three different tasks
such as selection of the required chip, identify the required register and enable the appropriate
buffers.
1. Arrange the available memory chips so as to obtain 16-bit data bus width. The upper 8-
bit bank is called ‘odd address memory bank’ and the lower 8-bit bank is called ‘even
address memory bank’.
2. Connect available memory address lines of memory chips with those of the
microprocessor and also connect the memory RD and WR inputs to the corresponding
processor control signals. Connect the 16-bit data bus of the memory bank with that of
the microprocessor 8086.
3. The remaining address lines of the microprocessor, BHE and A0 are used for decoding
the required chip select signals for the odd and even memory banks. CS of memory is
derived from the O/P of the decoding circuit. The address map of the system should be
continuous as far as possible, i.e. there should be no windows in the map. A memory
location should have a single address corresponding to it, i.e. absolute decoding should
be preferred, and minimum hardware should be used for decoding. Mostly, linear
decoding are used to minimise the required hardware.
EXAMPLE:
Interface two 4K x 8 EEPROM and two 4K x 8 RAM Chips with 8086. Select suitable
maps.
Solution:
After reset, the the IP and CS are initiated to form FFFF0H, hence this address must
lie in the EEPROM. The address of RAM may be selected anywhere in the 1MB address
space of 8086, but we will select the RAM address such that the address map is
continuous.
8259 PIC (PROGRAMMABLE INTERRUPT CONTROLLER)
ICW1
ICW2-
ICW3
ICW4:
OCW1
OCW2
OCW3