I'm new at asking questions on this forum so please forgive me if my format needs to be cleaned up. I have a PIC 12F683 datasheet. I'm trying to understand how, for instance, ANSEL=0 to set I/O to digital is obtained from a datasheet.
I have searched the web for some clues, but all I seem to find is "it just is." That's not helping me. I just need a little help getting past the bridge between the datasheet information and the actual code that manipulates these ports. Page 39 of "Programming PICs in Basic and page 32 (4-2) of the datasheet makes no sense to me... I'm not the first to post this sort of question from what I have found, but they didn't provide specifics. I'm hoping what I have provided will be enough for one of you folks to see what my question is and help.
I can see on page 31 (4.1 of the datasheet) that the TRISIO register determines direction and it seems clear that applying a "1" to that register will make the corresponding GPIO pin an input and so forth. But when it comes to the ANSEL=0 I'm lost- can't seem to make sense of this. Can someone please throw me a bone?