5 Assignment 4: Read Temperature

In this assignment, temperature measurement with the ADC will be demonstrated. The ATtiny1627 has an on-chip temperature sensor available. This sensor allows for basic temperature sensing, and no extra hardware is needed.

A temperature measurement can be done by initializing the ADC, selecting internal reference, selecting the temperature sensor as input, and acquiring the data by running a 12-bit single-ended conversion.

The Microchip Studio Solution Assignment4 includes the required starting point for this assignment and should be available in the training material folder at the following path: Assignment4.

  • Objectives
    • Configure the ADC for temperature measurement with the on-chip temperature sensor
    • Find the results through debugging in Microchip Studio