Skip to content

Atmel Studio 7 bare metal code projects for the Getting Started with tinyAVR 2-family ADC Hands-On training manual

Notifications You must be signed in to change notification settings

microchip-pic-avr-examples/attiny1627-training-12-bit-adc

Repository files navigation

MCHP

Getting Started with tinyAVR 2 Family ADC Hands-On

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.

Assignments

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

Related Documentation

Software Used

Hardware Used

Hardware Setup

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:

Configuration of Assignment 1,2,5

Requires:

  • ATtiny1627 Curiosity Nano Evaluation Kit
  • Force Click sensor

Configuration of Assignment 3,4

Requires:

  • ATtiny1627 Curiosity Nano Evaluation Kit

Configuration of Assignment 6

Requires:

  • ATtiny1627 Curiosity Nano Evaluation Kit
  • Force Click sensor
  • Two through-hole resistors, one 100 kΩ and one 33 kΩ

Operation

  • 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

Conclusion

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.

About

Atmel Studio 7 bare metal code projects for the Getting Started with tinyAVR 2-family ADC Hands-On training manual

Resources

Stars

Watchers

Forks

Packages

No packages published