Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > Microcontrollers 8bit > Re: PIC16F916 *...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 839 of 862
Post > Topic >>

Re: PIC16F916 ****tA as input

by Tom <t.wyckoff@[EMAIL PROTECTED] > Apr 23, 2008 at 01:35 PM

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=0xFF, disabled LCD module by LCDEN=0 and configure
> analog as ANSEL=0x01. 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.  This will disable the 
comparator which wants to use RA0:RA3 as inputs.
 




 3 Posts in Topic:
PIC16F916 PortA as input
Dennis <danzhu_woo@[EM  2008-04-22 21:44:47 
Re: PIC16F916 PortA as input
Tom <t.wyckoff@[EMAIL   2008-04-23 13:35:39 
Re: PIC16F916 PortA as input
Dennis <danzhu_woo@[EM  2008-04-23 13:58:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:12:25 CST 2008.