1 of 14

I/O PORTS OF 8051

BY

Ms.S.Preethi

Assistant Professor (SRG)

ECE Department

Kongu Engineering College

2 of 14

PIN DIAGRAM

3 of 14

Functions of Ports

PORT 0

  • Normal bidirectional I/O Port
  • Address/data interfacing for accessing external memory
  • Multiplexed address and data bus

4 of 14

Functions of Ports

PORT 1

  • Normal bidirectional I/O Port

PORT 2

  • Normal bidirectional I/O Port
  • Used for higher order addresss bus(A8-A15)

5 of 14

Functions of Ports

PORT 3

  • Normal bidirectional I/O Port
  • Each of its port pin has special functions

6 of 14

Port-1 Internal Structure

7 of 14

� Writing ‘1’ to output Pin P1.X

8 of 14

Writing ‘0’ to output Pin P1.X

9 of 14

Reading ‘high’ at Input pin P1.X

10 of 14

Reading ‘low’ at Input pin P1.X

11 of 14

Port 0-Internal Structure

12 of 14

Port 2-Internal Structure

13 of 14

Port 3-Internal Structure

14 of 14

Thank you