pic18f4550 and temp sensor

Status
Not open for further replies.

HakBot

New Member
Hello,

I have an interface board build around the pic18f4550 chip. This is the board I have: **broken link removed**

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?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…