1TE663/723 HT2021 - Lab 5 summary
Uwe Zimmermann Uwe Zimmermann
1.32K subscribers
128 views
0

 Published On Nov 21, 2021

A summary of the learning outcomes of Lab 5 in our course on microcontroller programming.

00:00 construction on the breadboard
01:50 the code structure
02:50 display() - showing a number between 0 and 9999
03:40 init() - initializing the hardware
04:20 configuration of TIMER0
05:50 configuration of the ADC
10:00 right align versus left align of the ADC result (ADLAR)
15:40 using the ADC as an 8-bit converter
17:30 pulse-width modulation with TIMER1
18:30 configuration of TIMER1
23:30 setting up the PWM output pins
26:10 compiling and testing the code
26:30 LED dimming with PWM
27:00 looking at PWM on an oscilloscope
32:30 theory of PWM generation
34:00 the inverted mode of the PWM generation
34:45 the difference between fast PWM and phase-correct PWM

show more

Share/Embed