Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

16F876A PORTA analog/digital

Status
Not open for further replies.

cannella

Newbie level 1
Joined
Aug 26, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
ITALY
Activity points
1,287
16f876a ra3 pin as digital

Recently i found a problem to menage the PORTA pins, in fact if i make the register config to:
ADCON1=0b10000101; //set RA0 and RA1 to analog, RA3 as Vref+, VSS as Vref-.
ADCON0=0b11000001; //analog conversion on the RA0 and internal RC for the A/D.

...and when i try to change the Vref+ by a trimmer doesn't change the reference range for the analog value on the RA0 pin, in this case LM35 temperature sensor.

What is the problem?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top