Re: Leaves the mainloop???
I'll ask again - why does my program leave the mainloop?
porta.1 goes high and low..continuously
its a classic RMW (read modify write error) i expect the load on porta.1 exceeds the
ability of the pic to maintain the logic level.
if your chip has latx regs use them
'OUTPUT PORTA.4
'OUTPUT PORTA.1
'becomes
out1 var lata.4
out2 var lata.1
trisa = % 11101101
'HIGH PORTA.1
'becomes
out2=1
PAUSE 10000
mainloop:
'HIGH PORTA.4
out1=1
'LOW PORTA.1
out2=0
GOTO mainloop
Warning I'm not a teacher
Bookmarks