This hands-on training goes through assignments that give a general introduction to the ADC module. Some of the assignments are more specific to the 12-bit ADC and demonstrates the added features such as the PGA. Basic theory related to each assignment is introduced at the beginning of each assignment, the functionality is then verified through the MPLAB Data Visualizer. Every assignment is provided with a preconfigured code, where most code is already in place and only essential modules for the specific assignment need to be configured. A solution for each assignment is also provided. All assignment except assignment 4 has a preconfigured workspace that can be loaded for the Data Visualizer.
This hands-on training covers the following topics:
- Assignment 1: Single-Ended ADC
- Assignment 2: Understanding ADC modes
- Assignment 3: ADC Resolution from 12-bit to 17-bit
- Assignment 4: Read Temperature
- Assignment 5: Differential ADC
- Assignment 6: Using the PGA
- Atmel Studio 7.0.2397 or later
- Atmel Studio ATtiny_DFP version 1.7.330 or later
- MPLAB® Data Visualizer Stand-alone version 1.0.675 or later
- Microchip ATtiny1627 Curiosity Nano Evaluation Kit
- Microchip Curiosity Nano Base for Click boards™
- Force Click board
- Micro-USB cable (Type-A/Micro-B)
- Two through-hole resistors, one 100 kΩ and one 33 kΩ
The assignments have some differences in hardware setup and are explained in the training manual. The different setups along with related figures are listed here:
Requires:
- ATtiny1627 Curiosity Nano Evaluation Kit
- Force Click sensor
Requires:
- ATtiny1627 Curiosity Nano Evaluation Kit
Requires:
- ATtiny1627 Curiosity Nano Evaluation Kit
- Force Click sensor
- Two through-hole resistors, one 100 kΩ and one 33 kΩ
- Connect the ATtiny1627 Curiosity Nano to a computer using a USB cable
- Download the zip file or clone the example to get the source code
- Open either an assignment folder to do training or solution folder for finished code
- Open the .atsln file with Atmel Studio
- For assignments, add the necessary code, see training manual
- Press Start Without Debugging (CTRL+ALT+F5) to run the application
When you have finished this training you should have a basic understanding of the key features of the 12-bit ADC used in the ATtiny1627.