2. Contents
Assignments and Goals
Theory
Practice
Individual task
01.11.2021 18:53 Bare Metal – Training 04 2
3. Assignments and Goals
• Temperature Sensor at Starter Kit schematics
• ADC Internal Structure
• Using ADC in polling mode
• Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 3
7. Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 7
8. Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 8
9. Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 9
10. Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 10
11. Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 11
12. Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 12
13. Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 13
14. Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 14
15. Individual task
• Control LED light intensity vs TempSensor
value
• Read Temp Sensor value from
microcontroller
• Connect external potentiometer to
microcontroller and read voltage, use
onboard LEDs to show value
• Try to read more than one ADC channel
01.11.2021 18:53 Bare Metal – Training 04 15
Editor's Notes
Teacher should provide task for each group and control the result.
Something like: blink 2 times red, one time – blue and green simultaneously, 3 times – all leds (in a cycle).