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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top