MCA MODULE 3 PPT
MCA MODULE 3 PPT
AND APPLICATIONS
OBJECTIVE
Pin diagram
LCD Commands
Program
FEATURES
◎ To turn the 7-segment displays off and on. There are two pins
on each of the the 7-segment displays which correspond to
common anode.
◎ If these pins are set to +5V the 7-segment display is on. If these
SEVEN SEGMENT DISPLAY
INTERFACING WITH 8051
P3.5
P3.7 Oran P3.3 P3.1
P3.6 P3.4 P3.2 P3.0 Address
Red g e Blue Green
0 0 1 0 0 0 1 0 22 H
0 0 1 0 1 0 0 0 28 H
1 0 0 0 1 0 0 0 88 H
1 0 0 0 0 0 1 0 82 H
INTERFACING OFSTEPPER MOTOR
PROGRAMME
Label Operand Comments
Here: MOV P3, # 22 H Send 22 H to port 3
ACALL Delay Call Delay subroutine
MOV P3, # 28 H Send 28 H to port 3
ACALL Delay Call Delay subroutine
MOV P3, # 88 H Send 88 H to port 3
ACALL Delay Call Delay subroutine
MOV P3, # 82 H Send 82 H to port 3
ACALL Delay Call Delay subroutine
SJMP Here Jump to level Here