Matthew
Have you remembered your TRISA statement?
Otherwise you have a dud PIC - or some other kind of hardware miswire... Your code will work correctly as expected... I have quickly tried it myself since I've a breadboard in front of me... the appended code works as expected... compile it and try for yourself...
Melanie
Bookmarks