That's interesting. I also thought the WeakPullups could do something but never had this problem before. Nice finding.
So I guess doing the ADC while sleeping would also have do the trick.
Since it's working... don't fix it![]()
That's interesting. I also thought the WeakPullups could do something but never had this problem before. Nice finding.
So I guess doing the ADC while sleeping would also have do the trick.
Since it's working... don't fix it![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Nothing whacky there.
The WPUA register defaults to %00111111 on power-up.
If you do WPUA.3 = 1
nothing changes, because that bit is already a 1.
You have to disable pull-ups on the pins you don't want pulled-up.
The numbers over each bit show the POR/BOR defaults.
![]()
DT
For once you' re wrong (& I've got you on a minor technicality!) - there was something whacky - ME!
I guess (me aside) the other whacky thing was even with weak pullups enabled ...my ADC pin still functioned.....albeit only down to a reading of 008 (whenever I've set an ADC pin wrong prior...I've had very "something oviously wrong with my config" type results ...this one was more obscure!)
Anyway, apologies for the schoolboy error....
Last edited by HankMcSpank; - 19th May 2011 at 22:31.
must do mistake from time to time... this is the best way to learn![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks