Problem 1: Connect a temperature sensor to pin of your choice using the scheme given in Lab 5. You may also use the temperature sensor given in MSP430. Connect a 2-digit 7-segment display as in Lab 4. The display is used to display the temperature value measured by the temperature in 0C.
What is a program in C which achieves the following tasks:
- Initially the 7-segment display digits are all off.
- Every second the program does an A/D conversion
- After every 3 samples, the samples are averaged and the resulting digital value corresponding to the average measured temperature is displayed on the 7-segment display. To display values correctly, you need to calibrate the system.