TC72 SPI Thermometer
TC72 is a SPI slave device reading and converting analog temperature to digital formats. The temperature reading ranges from -55 to +125 degree Celsius. With these temperature values, it also has a fraction temperature value. The fraction is 0.25 degree Celsius per step. Fraction reading has only 3 points, 0.25, 0.50 and 0.75 degree Celsius.I don't cover its technical detail here. In the previous post, I put some detail of this device with programming interface to PIC16F818.
In this example, I use ATMega32 functioning as a master SPI reading temperature from TC72 and displays the temperature.
a sample of this program The temperature reading is -32.00 degree Celsius. |
Programming For TC72
The overall programming interface lists below:
- Set up the SPI to master mode
- Select SPI clock and data sampling mode
- Set up digital output for display
- Send the command to TC72
- Read temperature from TC72
- Display the result
Atmel Studio 7 C source code lists here.
Schematic Diagram
Schematic Diagram of this example |
No comments:
Post a Comment