Pin 15 usage looks a bit suspect.
Try using an actual port value (i.e. porta.5 or whatever).
And 15 looks to be porta.7, which is OSC2. If you're using an external oscillator, this won't work. Even if you're using the internal oscillator, if it's not configured right, the pin won't work as advertised.





Bookmarks