Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

code help?

Status
Not open for further replies.

nabil13

New Member
my hardware is :
sensor(LM35)>external ADC(0808)>pic(16f877a)>pc

i do not know how to start the pic program, can any one guide me...
 
Do you need to use the external ADC? The PIC you have chosen has a built-in 10 bit converter which seems better than an ADC0808. Both are 8-channel.

is excellent and covers how to do this with the 877.
 
my hardware is :
sensor(LM35)>external ADC(0808)>pic(16f877a)>pc

i do not know how to start the pic program, can any one guide me...

You need to understand how to do each line of the following. Start with the datasheets. If you are using a compiler read the manual that talks about the libraries you will be using.
Code:
start:
   setup PIC IO ports
   setup ADC
   setup UART
   etc...
loop:
   read ADC
   calculate temperature based on above reading
   fomat string with temperature data
   output string to UART
   goto LOOP
 
Last edited:
Do you need to use the external ADC? The PIC you have chosen has a built-in 10 bit converter which seems better than an ADC0808. Both are 8-channel.

It's presumably a school assignment, it looks like India (which I'm guessing is the area where he's from?) is trying to move a bit more modern, but have simply crossed out the antique processor in the old question, and replaced it with PIC.

He's the second one with such a silly request.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top