Lecture 3 - IO - Shlomo
Lecture 3 - IO - Shlomo
381-1-0103
1
Lecture 3 – I/O
Shlomo Greenberg
Not-working
Retriggerable circuit
Timer is reset every predefined duration.
7
Intel 82C54 Hardware
Timer
Intel 82C54 Hardware Timer
8
Output Latch
Modes of Operation
11
Three sub-methods:
Register-mapped I/O
Port-mapped I/O (IO mapped IO)
Memory mapped I/O
Very similar, but that Port-mapped I/O is
more suited to microcontrollers.
Port-Mapped IO
33
IO/M
Port-Mapped IO
34
Multiplexer channel
Selector channel
Block-multiplexer channel
Multiplexer Channel
54
Slow devices
IOP can transfer data much faster than
each IO devices, and hence IO devices
are multiplexed
Each devices is handled via a sub-
channel, usually with a dedicated
hardware
Devices’ parameters are saved in
memory, and fetched each sub-channel
transfer
Multiplexer Channel –
55
Modes of Operation
Byte-interval
Operation is divided into short intervals. In
each interval, a single IO device is served
Transfer of 1 byte each interval (data,
status, control)
Device is connected to IOP only for the
transaction period (~100us)
Burst
Device is connected till all transactions with
the current device are done
Hard switching if transactions take too long
Selector Channel
56
WR
WR data – what is going to be presented
WR command – erase screen/ which screen to use
Usually, have 2 types of registers, controlled by RS
RD – status register (where applicable)
Size of address bus depends on the number of
registers supported.
LED / Lamp
69
8255
Intel 8255 Input / Output
Interface Circuit
I/O devices: Keyboard, Printer, Mouse, and more
Functions of interface circuit:
Select the I/O port