Hi i have this piece of code and was wondering where it returns the value?
i just wanted to check also that this means that the number 1 is put into the member named GO.Code:void ReadPOT(void) { ADCON0bits.GO = 1; // Start AD conversion while(ADCON0bits.NOT_DONE); // Wait for conversion return; }//end ReadPOT
I'm not sure how NOT_DONE as a member would detect whether the AD conversion has completed - does anyone have any idea? how can using a dot operator here check a bit inside the ADCON0 register?
Thanks



LinkBack URL
About LinkBacks


