I don't see you initialising this chip. Last I checked it had twelve registers... let's set them up the way you'd like to see them.... then and only then you can perform I/O.
Have you remembered to GROUND A2, A1 and A0 to match your IOCCTRL Byte?
Have you remembered to leave TP floating?
Have you remembered to GROUND all THREE Vss pins?
Have you remembered Rext and Cext for your external Clock, or alternatively cross-connected it to Fosc of your PIC?
Bookmarks