If Dave's suggestion does not pan out, it could be a read-modify-write problem (which makes sense for RA5 to always work since it is the last pin you updated. Try this instead and let us know
Code:
B1 VAR BYTE
TRISA = 0
loop:
B1 = 0
GOSUB blueon
pause 500
B1 = %00111111
gosub blueon
pause 500
goto loop
blueon:
PORTA = B1
RETURN
If this works, you will need to be careful as this also updates RA6 and RA7. If it does work, however, there are workarounds to leave these two pins as they were found. Let us know.
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks