Intro to Bare Metal Programming - Episode 12: ADC (part 3) | Videos
Intro to Bare Metal Programming - Episode 12: ADC (part 3)
In this 12th episode of the AVR Bare Metal programming series, https://www.youtube.com/playlist?list=PLtQdQmNK_0DQ8KGcZ1BOPv-3RDPvtqJ1H , we will cover:
- Creating driver to take ADC measurements
- Set up thresholding window
- Learn about oversampling and decimation to increase effective ADC resolution from 12-bits to 14-bits
- Create driver to perform oversampling and decimation.
AVR121: Enhancing ADC Resolution By Oversampling App Note
https://mchp.us/3RH5mla
AVR64DD32 Datasheet
https://mchp.us/3Q1nUeU
AVR64DD32 Product Page
https://mchp.us/46f90Hm
AVR-DD Curiosity Nano Hardware User Guide
https://mchp.us/3PZZmmn
Timestamps:
00:00 In the previous video
00:21 In this video
01:24 Create ADC Control Functions
01:49 ADC Enable function
02:09 ADC Disable function
02:34 ADC Start Conversion function
03:07 ADC Stop Conversion function
03:40 ADC Is Conversion Done function
04:18 ADC Is Window Satisfied function
05:11 ADC Get Result function
05:31 Start Application code
05:37 Set up 1MHz Clock and Test Clock Output
06:24 Set up USART driver and test output
07:18 Set up ADC driver for single conversion with window threshold
09:35 Write code to start ADC Conversion, check for conversion complete, check if window satisfied, print result and whether window is satisfied
10:49 Test ADC driver with window threshold
11:44 Learning about Oversampling and Decimation (AVR121 App Note)
14:30 Implementing Oversampling and Decimation
14:34 ADC Start Oversampled Conversion function
15:44 ADC Get Oversampled Result function
18:14 Oversampling Application code
19:00 Test oversampling and observe effect of oversampling on thresholding window
19:28 Separate ADC Driver into header and source files
21:09 Test Driver works as expected
21:21 In the next video
To view this video, please click manage cookies below and accept functional cookies.
{"SalesForceSecurePath":"https://microchip.my.salesforce-scrt.com","EmbeddedServiceName":"Messaging_For_Microchip","SalesForcePath":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924","AgentAvailableHeader":"No problem. Chat with our engineering experts or schedule a call that's convenient for you.","ScheduleCallUrl":"https://microchip.my.site.com/schedulemeetingportal/s/","SalesforceOrgId":"00Do0000000KAkK","JsUrl":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924/assets/js/bootstrap.min.js"}