Programming using On – Chip ports in 8051
Programming using On – Chip ports in 8051
Exp.No:
Programming using On–Chip ports in 8051
Date:
Aim
To write an assembly language program to use digital input and digital output ports
of 8051 microcontroller.
Software/Hardware Required:
8051 Microcontroller Kit
Algorithm
Digital Outputs using Port 1:
Flowchart
PROGRAM
Digital Outputs using Port 1:
Label Mnemonics Comments
MOV P1,#00 Configure Port 1 as Output
MOV P1,#55 Output 0s and 1s alternatively on P1
HERE: SJMP HERE Loop here continuously
Output:
Address Data
4150H
Result