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.

MikroC Pro, ADC and external voltage source

Status
Not open for further replies.

Veketti

Full Member level 3
Joined
Sep 14, 2014
Messages
164
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Activity points
1,700
Dear All,

I was wondering that how to read ADC correctly in MikroC Pro when external voltage reference is applied? In MikroC help it says that ADC_Read -function doesn't work if external voltage reference is used. One of my projects where I'm using LM35 temperature sensor I added MCP1525 precise 2.5V voltage reference to pic and used ADC_Read function. I got senseful readings. Now I'm wondering that is those readings somehow wrong or why does it say in help that it doesn't work?

Thank you in advance.
 

Simply remove external reference and you will see the same results.
Write your own ADC_Read function where external reference will be used.
 

Only if registers are configured to use Vref+ and Vref- pins for reference voltages the ADC will use it else it uses internal Vref+ and Vref- of 5V and 0V.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top