help on ASM code for LM35DZ and PIC16F877A

Status
Not open for further replies.

freedoms

Newbie level 5
Joined
Sep 26, 2007
Messages
8
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,342
asm coding for pic(16f877a) microcontroller adc

HI Everyone,

I'm doing a digital thermometer by using LM35DZ temperature sensor and PIC 16F877A microcontroller. Can anyone teach me how to use the ADC inside 16F877A to convert the output of the LM35DZ or can anyone share the code how to interface between the ADC and LM35DZ. Pls advise!

Thanks for your help....
 

pic16f877a asembler codes examples

Check the PIC datasheet and the microchip website for the application notes.
 

lm35dz

You should be able to find a lot of examples on the web.
 

adc en assembler con 16f877a

1. Enable the necesary pin as input, and configure as analog.
2. configure the ADC: read all about the configuration registers of ADC in the datasheet (select the channel, select the sample time,...)
3. read the ADC (enable ADC), and wait the data converted, this can be done by a loop or an interruption.

In google there is a lot of examples search by:
ADC example pic16f877
 

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…