1 obscure idea

Originally Posted by
modifyit
When the pic16f876a starts up Pins C.1 and C.2 go high for a split second before returning to the desired low state. Does anyone know if this is just the nature of this chip, or if there is a register I can change to keep this from happening.
When I watch the port in a simulator program I can see the pin being held high on startup, so I'm guessing it is not a hardware issue.
For reference I have the following port initialization at the beginning of the code:
PORTC=%00000000
TRISC=%00000000
Thanks for any insight
While I believe Paul hit the Duck when he said the simulator had to make a decision as to startup status . . . I was thinking about the order of listing PORTC and TRISC, it seems to me you should tell the program to make the ports outputs before driving them low. <B> and maybe I'm just talking out of my hat!</B>
JS
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks