I am NOT familiar with the chip you are using, but just yesterday I was near to pulling out my few remaining hairs before realizing that I had not set my TRIS registers to output. Is this necessary on the 18LF66K80?
I am NOT familiar with the chip you are using, but just yesterday I was near to pulling out my few remaining hairs before realizing that I had not set my TRIS registers to output. Is this necessary on the 18LF66K80?
Try adding this:
http://www.picbasic.co.uk/forum/showthread.php?t=18529
Then check the warnings during compile. It will tell you how to make all pins digital.
You set port D to digital but I see nothing for port A.
Robert
Bookmarks