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
 
Tools
Old 7th July 2006, 05:28 PM   #1
Default pic18f4550 and temp sensor

Hello,

I have an interface board build around the pic18f4550 chip. This is the board I have: http://www.create.ucsb.edu/~dano/CUI/

I have previously been using this board to control an rc servo. I would like to use this board to create a temperature monitor for my pc. I found the Microchip TC1047A sensor and I think it would work well for this project. My question is just about connection and usage. Do I connect the sensor to an analog input, do an analog-digital conversion and then just read the registers and im done? Somethign like this:

while (ADCON0bits.NOT_DONE); // Wait for conversion
buffer[0] = ADRESL;
buffer[1] = ADRESH;

and the result of the conversion will be stored in buffer[0] and buffer[1]. Is this correct?
HakBot is offline  
Reply

Tags
pic, sensor, temp

Thread Tools
Display Modes




All times are GMT. The time now is 04:17 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker