To me, comments are really important. So, on the long run... coding like that
May indeed avoid to open the datasheet all the time, one thing is sure, it's easier to modify/understand later.Code:ADCON0 = %00000001 ' 0-------- VCFG1, Vref- 0 = AVss (1=AN2) ' -0------- VCFG2, Vref+ 0 = AVdd (1=AN3) ' --0000--- CHS<3:0>, Channel select -- 0 ' ------0-- Go/Done, don't care for now ' -------1- ADON, Enable ADC
Bookmarks