You are on page 1of 9

Introduction to I/O

TEAM PRESENTATION

Khan,Zahirul Haque Haque,Md Ashiqul Mahi,Shakir Anwar Haque,Md Ashiqul Khan,Zahirul Haque
17-33725-1 17-33578-1
17-35363-3 17-33578-1 17-33725-1
Serial No: 04 Serial No: 04 Serial No: 09 Serial No: 04 Serial No: 04

Khan,Zahirul Haque Haque,Md Ashiqul Khan,Zahirul Haque Haque,Md Ashiqul Khan,Zahirul Haque
17-33725-1 17-33578-1 17-33725-1 17-33578-1 17-33725-1 2
Serial No: 04 Serial No: 04 Serial No: 04 Serial No: 04 Serial No: 04
Programmed I/O
 The Microcomputer sets it’s program to drive the
external devices by a register to configure the I/O port
is called programmed I/O.

 DDR : Data-direction register.

 I/O ports are two types:


1. Individually configured.
2. All bits are parallelly configured in I/O.
3
Programmed I/O
The data register contains actual input or output data.
 Input and output data are defined as ‘1’ and ‘0’.
0 enables the port as input port.
1 enables the port as output port.

Example- In a 8-bit DDR 54 10 is defined at corresponding port


as…
0 0 1 1 0 1 1 0

4
Standard I/O

Data Bus

Input
Device

I/O Port CPU Memory

O/P
Device

Address Bus

IO/ M
Standard I/O

Data Bus

Input
Device

I/O Port CPU Memory


8

O/P
Device

Address Bus

6
Conditional programmed I/O

7
Unconditional Programmed I/O

▪ The microprocessor can send data to an external device at any


time during unconditional I/O
Example: Typing on keyboard

▪ Playing songs or videos

8
0 0 1 1 0 1 1 0

You might also like