LM35--ADC0809--PIC--7 Segments

Status
Not open for further replies.

supiper

Member level 3
Joined
Jan 26, 2007
Messages
64
Helped
15
Reputation
30
Reaction score
5
Trophy points
1,288
Location
TUNISIA
Activity points
1,659
adc0809

Hi all,

I need a code for PIC (16F876 or 16F877) to display temperature on two 7 segments. I use LM35 as sensor, ADC0809 for conversion and PIC for display.

I need your help urgently,
 

adc0809 con display diagrama

PIC16F877 HAS BUILT IN ADC.USE IT
 

lm35 pic

faraz101 said:
PIC16F877 HAS BUILT IN ADC.USE IT

Don't post in all caps.

Yes the PIC16F877 has a built in ADC, it is easier to use than to interface an external ADC.
 

interfacing lm35 with pic

PIC16F877 has an external ADC why are you pulling an external one? But if you have to go for another external one then you show the schematic (upload) then it will be easy to help you writing code.
 

lm35 pic interface

supiper said:
I need a code for PIC (16F876 or 16F877) to display temperature on two 7 segments. I use LM35 as sensor, ADC0809 for conversion and PIC for display.
I can provide you a code on 16F819. LM35 is interfaced to 16F819 directly to RA0 and the 2 digit display is driven by 16F819. This is a single chip solution.

Cheers

Ravi
 

pic16f adc require pull down


Can you provide code on 16F819? Thanks,
 

lm35 + pic

supiper said:
Can you provide code on 16F819?
I have attached a PIC819.asm code. This has the ADC, scaling, etc. You will have to modify it to suite your needs.

Cheers

Ravi
 

    supiper

    Points: 2
    Helpful Answer Positive Rating
pic16f876 lm35 led display schematics

Do you really need a 40 pin PIC the PIC16F818/9 have 5 ADC channels on port a and you are left with 8 pins on port B to drive your LED display you can use RA6 and RA7 as display select, all you do is place your data for the first display on port B that is connected to the 7 segments of both displays, you display one display at a time by pulling the cathode low for some mill seconds then the data for the second display on port B and pull down the second display cathode see diagram
 

    supiper

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…