+ Post New Thread
Results 21 to 21 of 21
-
17th April 2018, 12:00 #21
Awards:
- Join Date
- Jul 2009
- Location
- Aberdyfi, West Wales, UK
- Posts
- 11,504
- Helped
- 3805 / 3805
- Points
- 70,347
- Level
- 64
Re: Strange behaviour from microcontroller pin
The unused bits are always read as zero so no matter which justification or 'shift and OR/Add' should leave a bit stuck at '1'.
It certainly looks like a configuration error, most likely due to the clock being set several times faster than recommended. I would guess (only Microchip know exactly how it works) that reading back the ADC before acquisition is completed leaves a residual bit set in the comparator tree and that's what gets returned in the result.
Brian.PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.
-
17th April 2018, 12:00
+ Post New Thread
Please login