I cleared the ANSELH register to 0 and all is right with the world...Thanks for the help.Originally Posted by mister_e
Ron
I cleared the ANSELH register to 0 and all is right with the world...Thanks for the help.Originally Posted by mister_e
Ron
Great to know it's working. It's not often i saw TWO ANSEL registers so.. kinda interesting to know it exist![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
An interesting aside to this saga. Jeff from Melabs emailed me back about this quirk. This is important for anyone using Analog inputs with digital outputs. When the uP is commanded to change a bit, it reads, modify,writes the entire port. Since Analog bits are read as zero, when the port is rewritten, any Analog bit will be written as a zero. Even if it was used as a digital high output,as was in my case. Verrrry interesting!
Ron
Bookmarks