Sir,
I made power supply using a transformer 12-0-12 a rectifier by 1N4007 , capacitor 1000mf/25v a 7805 regulator. The O/P of regulator is connected to MCU directly and 104 is used across each of the MUC's Vcc and Gnd (4 MCU's are in project). I used laser torch works on this 5 volts with a resistor 800 ohm.
I don't have CRO. so by DMM only i have to solve it. and my code simple
This code is for main door it opens by typing the keys as follows.
mov a,#10001000b
here:
l1: jb p0.0,l1
l2: jb p0.1,l2 ;key pad
l3: jb p0.2,l3
mov r0,#20d
loop:
rr a
mov p1,a ; main door opens
acall time:
djnz r0 loop
acall longtime: ;wait for few sec
mov r1,#20d
loop1:
rl a
mov p1,a ; main door closes
acall time:
djnz r1 loop1
When any light of room is made on the door opens and closes itself. actually it should not happen.
And when buzzer relay on then also some other door opens, the code is same as posted for others.
can you please help me further.
---------- Post added at 22:30 ---------- Previous post was at 22:29 ----------
Sir,
I made power supply using a transformer 12-0-12 a rectifier by 1N4007 , capacitor 1000mf/25v a 7805 regulator. The O/P of regulator is connected to MCU directly and 104 is used across each of the MUC's Vcc and Gnd (4 MCU's are in project). I used laser torch works on this 5 volts with a resistor 800 ohm.
I don't have CRO. so by DMM only i have to solve it. and my code simple
This code is for main door it opens by typing the keys as follows.
mov a,#10001000b
here:
l1: jb p0.0,l1
l2: jb p0.1,l2 ;key pad
l3: jb p0.2,l3
mov r0,#20d
loop:
rr a
mov p1,a ; main door opens
acall time:
djnz r0 loop
acall longtime: ;wait for few sec
mov r1,#20d
loop1:
rl a
mov p1,a ; main door closes
acall time:
djnz r1 loop1
When any light of room is made on the door opens and closes itself. actually it should not happen.
And when buzzer relay on then also some other door opens, the code is same as posted for others.
can you please help me further.