AND be sure you correctly set the config fuses. See the FAQ about that.
AND be sure you correctly set the config fuses. See the FAQ about that.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Pete and Steve thank for your reply.
Pete I do have the cmcon = 7 at tie top of my code.
And Steve I set the fuses to XT,MCLR to reset,Watchdog Timer on,Power-up Timer off.
But I still don't get anything.
Willie
Set MCLR to OFF, so it is an I/O pin, (otherwise you need a 5K resistor from MCLR (GP3) to +5V). Depends on your application. Do you need RESET? If not, then disable it and you get another input to use (GP3).
CMCON = 7 ' this turns the COMPARATOR off
ANSEL = 0 ' this turns the A/D convertors off
And don't forget that if you decide to use GP3 it is INPUT ONLY.
BTW - ALWAYS read the Datasheet!!! Look at the first few pages where is shows all the functions for each pin (especially the pin that is causing problems). If there are more functions than just "I/O" then you MUST go to those sections in the datasheet to see what the defaults are. Usually I/O is NOT the default. It's a little tedious at first, but saves a lot of headaches later. And usually you will find the answer quicker than asking here (but when you are really stuck, this forum is a life saver).
regards,
Jim
Bookmarks