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.

Need code for temperature measuring using lm35 on pic 16f872

Status
Not open for further replies.

sjjm

Junior Member level 1
Joined
Apr 17, 2006
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,410
using lm35 on pic 16f872

hello

nid some. I am usin a sensor lm35 to measure temperature and feeding this to a pic 16f872 thru RA0 which is an A/D port. Is it ok if i directly input the voltage from the sensor to the pic. The voltage is in mV e.g a temperature of 26 degrees gives a voltage of 260mV. Am tryin to avoid an amplifier.
Also if someone can help me with the neccessary code to do the measurement. I also need to display theis temperature on two 7 segment LED displays.

help
 

Re: using lm35 on pic 16f872

you should really do a search first but heres a link to get you started
 

Re: using lm35 on pic 16f872

Below is the ADC reading routine for 16F87x. If you need more details, please PM me with specifications.

Cheers

Ravi
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top