Q. The figure below uses an 8085 based system to track the sun, and position the Solar
Photovoltaic module in the direction of the sun. The solar module is attached to a DC
motor and the sun is tracked by two light sensors at two sides of the solar photovoltaic
module. If both the sensor sends ‘1’ the motor is to be stopped. If only sensor1 sends ‘1’
the motor is to be rotated in one direction and if only sensor2 sends ‘1’ the motor is to be
rotated in the other direction. For a DC motor “10” at the supply pins rotates the motor in
one direction and “01” rotates the motor in the other direction. As per the connection
shown on the right, write a program for the proper operation of the system.
soln
The Program gets input from the input port depending on the incident solar radiation,
compares with the predefined data for different solar radiation, and sends the corresponding
data out as shown in the above table.
START: IN 30H
ANI A0H
MOV B, A
SUI 80H
JNZ LABEL1
MVI A, 02H
OUT 31H
JMP START
LABEL1: MOV A, B
SUI 40H
JNZ LABEL2
MVI A, 01H
OUT 31H
JMP START
LABEL2: MVI A, 00H
OUT 31H
JMP START
Photovoltaic module in the direction of the sun. The solar module is attached to a DC
motor and the sun is tracked by two light sensors at two sides of the solar photovoltaic
module. If both the sensor sends ‘1’ the motor is to be stopped. If only sensor1 sends ‘1’
the motor is to be rotated in one direction and if only sensor2 sends ‘1’ the motor is to be
rotated in the other direction. For a DC motor “10” at the supply pins rotates the motor in
one direction and “01” rotates the motor in the other direction. As per the connection
shown on the right, write a program for the proper operation of the system.
soln
The Program gets input from the input port depending on the incident solar radiation,
compares with the predefined data for different solar radiation, and sends the corresponding
data out as shown in the above table.
START: IN 30H
ANI A0H
MOV B, A
SUI 80H
JNZ LABEL1
MVI A, 02H
OUT 31H
JMP START
LABEL1: MOV A, B
SUI 40H
JNZ LABEL2
MVI A, 01H
OUT 31H
JMP START
LABEL2: MVI A, 00H
OUT 31H
JMP START
Comments
Post a Comment