[SOLVED] Pic12f675 analog input

Status
Not open for further replies.

Saikatdas1

Newbie level 5
Joined
Apr 7, 2011
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,345
Hi,
I want to use the analog comparator of PIC12F675 in '100' mode,that is with internal voltage reference for Vin+ .Now my question is,to use Gp1 pin as analog input for Vin- ,do I need to do anything with ANSEL register?My program clears the ANSEL register in the beginning of the program and I am not using A/D converter.Do I need to do anything else with ANSEL to use it in '100' comparator mode?

Thanks in advance.
 

Hi,
No you don't need to change ANSEL after clearing it in the start. when you select '100' mode in CMCON, it will configure GP1 as analog
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…