GlobalLogic
Embedded Starter
Kit
ADC and TempSensor
Training 04
Bare Metal
Trainings
Contents
 Assignments and Goals
 Theory
 Practice
 Individual task
01.11.2021 18:53 Bare Metal – Training 04 2
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
Temperature Sensor at
Starter Kit schematics
01.11.2021 18:53 Bare Metal – Training 04 4
What is ADC
01.11.2021 18:53 Bare Metal – Training 04 5
ADC Internal Structure
01.11.2021 18:53 Bare Metal – Training 04 6
Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 7
Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 8
Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 9
Using ADC in polling mode
01.11.2021 18:53 Bare Metal – Training 04 10
Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 11
Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 12
Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 13
Using ADC in interrupt mode
01.11.2021 18:53 Bare Metal – Training 04 14
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

Bare metal training_04_adc_temp_sensor

  • 1.
    GlobalLogic Embedded Starter Kit ADC andTempSensor Training 04 Bare Metal Trainings
  • 2.
    Contents  Assignments andGoals  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
  • 4.
    Temperature Sensor at StarterKit schematics 01.11.2021 18:53 Bare Metal – Training 04 4
  • 5.
    What is ADC 01.11.202118:53 Bare Metal – Training 04 5
  • 6.
    ADC Internal Structure 01.11.202118:53 Bare Metal – Training 04 6
  • 7.
    Using ADC inpolling mode 01.11.2021 18:53 Bare Metal – Training 04 7
  • 8.
    Using ADC inpolling mode 01.11.2021 18:53 Bare Metal – Training 04 8
  • 9.
    Using ADC inpolling mode 01.11.2021 18:53 Bare Metal – Training 04 9
  • 10.
    Using ADC inpolling mode 01.11.2021 18:53 Bare Metal – Training 04 10
  • 11.
    Using ADC ininterrupt mode 01.11.2021 18:53 Bare Metal – Training 04 11
  • 12.
    Using ADC ininterrupt mode 01.11.2021 18:53 Bare Metal – Training 04 12
  • 13.
    Using ADC ininterrupt mode 01.11.2021 18:53 Bare Metal – Training 04 13
  • 14.
    Using ADC ininterrupt mode 01.11.2021 18:53 Bare Metal – Training 04 14
  • 15.
    Individual task • ControlLED 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

  • #16 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).