Hi all ,,
I have a problem through executing this program that there is no error but no output that I can get this is the circuit and the program I want the led to be on when I press the switch anyone can help
This is the code
program sensor_test
main :
TRISB=00000011
PORTB=0
while true
if PORTB.0=1
then
PORTB.2=1
else if PORTB.1=0
then
PORTB.3=1
end if
end if
wend
end.
i have the schismatic for this in Proteus but i don't know how to upload it
I have a problem through executing this program that there is no error but no output that I can get this is the circuit and the program I want the led to be on when I press the switch anyone can help
This is the code
program sensor_test
main :
TRISB=00000011
PORTB=0
while true
if PORTB.0=1
then
PORTB.2=1
else if PORTB.1=0
then
PORTB.3=1
end if
end if
wend
end.
i have the schismatic for this in Proteus but i don't know how to upload it