Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 2nd November 2004, 08:18 AM   (permalink)
Default Reading between ADC0804 with PIC16F84A?

I want to do a temperature sensor project. I using LM35DZ which is analog reading. so to convert the analog to digital i was found that the ADC0804 is suitable for this case... so how i want to read ADC0804 output from PIC16F84A?? Maybe has some website will introduce to me?

TQ
__________________
The world without engineer is the world without control!
amady is offline  
Old 2nd November 2004, 09:13 AM   (permalink)
Default Re: Reading between ADC0804 with PIC16F84A?

Quote:
Originally Posted by amady
I want to do a temperature sensor project. I using LM35DZ which is analog reading. so to convert the analog to digital i was found that the ADC0804 is suitable for this case... so how i want to read ADC0804 output from PIC16F84A?? Maybe has some website will introduce to me?
It's not something I've ever done, but it's usually a simple syncronous serial protocol and quite straight forward - the ADC0804 datasheet should give details. But if you do a web search you may well find existing code.

However, it seems a pretty pointless exercise in the 21st century, why not choose a current PIC rather than an obselete one?. The 16F819 is essentially a 16F628 with a ten bit A2D - do the job for less money and with fewer parts?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 3rd November 2004, 12:15 AM   (permalink)
Default

Quote:
The 16F819 is essentially a 16F628 with a ten bit A2D
I was has both PIC, so how i want to implement the conversion from analog to digital? can you give some code example :lol: . Example: if my temperature is reading 10oCelcius (b'00000001') how i want to get the reading from PIC? All the pin I/O (such as: PortB (8 I/O)) must to be use? :roll:

or

On your tutorial has all this thing? if has, which tutoarial that you was done?

TQ ops:
__________________
The world without engineer is the world without control!
amady is offline  
Old 3rd November 2004, 06:42 AM   (permalink)
Default

Quote:
Originally Posted by amady
Quote:
The 16F819 is essentially a 16F628 with a ten bit A2D
I was has both PIC, so how i want to implement the conversion from analog to digital? can you give some code example :lol: . Example: if my temperature is reading 10oCelcius (b'00000001') how i want to get the reading from PIC? All the pin I/O (such as: PortB (8 I/O)) must to be use? :roll:
My analogue tutorial shows how to use the A2D converter, it's based on the 16F876/7, but the code requires almost no changes for the 16F819.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:12 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker