Microprocessor Microcontrollers Memory Design
Microprocessor Microcontrollers Memory Design
For example, for this configuration, if we consider this configuration and the
don’t care states as zeroes, the following holds
MVI A, 98H :
OUT 83H
Q. For the example in the previous slide, after calculating the base address, can you write an Assembly level program
that reads 100 2 Byte integers using Port A and Port B and stores them in Memory Locations starting from 2000H
at intervals of 1ms. Assume that you have a subroutine delay located at 4000H written for you which causes the delay
when invoked.
The 8255 modes of operation : I/O Mode Mode 0
Port A, port B provide simple I/O operation. The two halves of port C can be
either used together as an additional 8-bit port, or they can be used as individual
4-bit ports.
This mode is selected when the most significant bit (D7) in the control register is 1.
In the input mode, the 8255 gets data from the external peripheral ports
and the CPU reads the received data via its data bus. The CPU first
selects the 8255 chip by making CS low. Then it selects the desired port
using A0 and A1 lines. The CPU reads the data from the external
peripheral device via the system data bus.
In the output mode, the 8255 first sends the data on its data bus. The
CPU first selects the 8255 chip by making CS low. Then it selects the
desired port using A0 and A1 lines. The CPU then writes the data to the
external peripheral device via the system data bus.
Two ports i.e. port A and B can be used as 8-bit i/o ports.
Each port uses three lines of port C as handshake signal
and remaining two signals can be used as i/o ports.
Interrupt logic is supported.
Input and Output data are latched
Mix and Match (Mode 0 and Mode 1) and input/output
possible