
Originally Posted by
SCC_699
Do I need to define / configure all of the ports on the chip or just the ports used in the program? I don't recall defining the ports that way for the 16f and it seemed to compile fine and run well except for the wide range in the counts from the timer loop.
Hi,
The compiler did it for you ... as your first projects were using the DEFAULT config provided !!!
For "bigger" chips the compiler DEFAULT config lines are not so numerous as the offered features ... it's you to define what you want !!!
You, of course, have to define all ports as I or Os , and initialize them ... if you do not want to get unexpected behaviour.
May be a "midrange" series chip as a second one ( if i understood your post ...) as a 16F628, 16F648 ,16F876a or 16F877a could help for the transition ... with their "limited bunch" ( lol ! ) of peripherals ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks