AGCB
Member
I'm trying to understand the use of the ANSELx registers on a 18F46K22. I read that the ANSEL registers do not affect digital outputs. What type of situation could there be where you would want a digital output and an analog input on the same pin? Doesn't the TRISx bits determine this anyway?
And concerning the PBADEN bits in the config settings, Doesn't setting or clearing the ANSELB bits over ride those settings? So, why set or clear PBADEN bit anyway?
I have read and reread the data sheet but still don't have a good grip on this (actually no grip at all !!) . If there's an easy explanation, I'd like to hear it. Thanks Aaron
And concerning the PBADEN bits in the config settings, Doesn't setting or clearing the ANSELB bits over ride those settings? So, why set or clear PBADEN bit anyway?
I have read and reread the data sheet but still don't have a good grip on this (actually no grip at all !!) . If there's an easy explanation, I'd like to hear it. Thanks Aaron