Sep 3, 2009 #1 G guesslsc85 Newbie level 5 Joined Aug 11, 2009 Messages 9 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,349 Could anyone help on settings of PIC12F609 in order to make all GPIO to digital I/O? PIC12F609 has CMCON0 and CMCON1 register, how to set GPIO 0, 1, 2 output to digital I/O? *If using PIC12F629, it is equivalent to setting CMCON=0x07. Thanks for replying.
Could anyone help on settings of PIC12F609 in order to make all GPIO to digital I/O? PIC12F609 has CMCON0 and CMCON1 register, how to set GPIO 0, 1, 2 output to digital I/O? *If using PIC12F629, it is equivalent to setting CMCON=0x07. Thanks for replying.
Sep 4, 2009 #2 hugo Full Member level 6 Joined Dec 31, 1999 Messages 322 Helped 49 Reputation 98 Reaction score 23 Trophy points 1,298 Location canada Activity points 2,148 Hi, Try this : CMCON0 = 0 // turn off comparators ANSEL = 0b11110100 // turn off analog inputs