by Dennis <danzhu_woo@[EMAIL PROTECTED]
>
Apr 23, 2008 at 01:58 PM
On Apr 23, 6:35=A0am, Tom <t.wyck...@[EMAIL PROTECTED]
> wrote:
> Dennis wrote:
> > Hi,
>
> > Is there anyone using PIC16F916's lower half of ****tA (RA0~RA3) as
> > digital inputs? I have problem on these pins. I actually have RA0 as
> > analog input and RA1~RA4 as digital input. RA1~RA3 stuck low all the
> > time regardless the condition on the pin while RA4 is ok. I configured
> > the ****t as TRISA=3D0xFF, disabled LCD module by LCDEN=3D0 and
configure=
> > analog as ANSEL=3D0x01. Did I miss anything on RA1~RA3? I also
> > reassigned these 2 of the inputs to RA5 and RA6, they worked fine.
> > Many thanks.
>
> > Dennis
>
> Probably the same thing I had with other multi-function pins.
> In your case, make sure CMCON0 is set to 0x07. =A0This will disable the
> comparator which wants to use RA0:RA3 as inputs.
That's exactly the right fix! It works now. Thank you so much. You
saved me days of work of trying to get sup****t from Microchip.