I have isolated the problem even more, it is not an instruction problem, it is a PORT A problem. If I set PortA.3 high and then set PortA.5 high, PortA.3 will ALWAYS go low. For example if I do this instructions:
PortA.3 = 1
PortA.5 = 1
or
TXLCD = 1
MCLRLCD = 1
or
@ bsf PORTA,3
@ bsf PORTA,5
PortA.3 will ALWAYS go low after PortA.5 goes high.
But if I reverse the instructions (first set PortA.5 then set PortA.3) it works OK.
I don't have the slightest idea what is happening, but it is affecting my program only when used on PICs date coded 08XX.
I hope anyone can help me solve this problem.
Thanks,
Gabriel
Bookmarks