If you are using the internal osc you might want to setup the osccon register. I don't see it in your code.
If you are using the internal osc you might want to setup the osccon register. I don't see it in your code.
Regards
CharlieM
Using PBP3
MCSPX
Bookmarks