Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
USART
Communication
SPI
uC Core (CPU)
GPIO (set as
input)
Inputs
ADC
PWM (via
Timers)
Outputs
GPIO (set as 3/
output)
Microcontroller Basics
Questions
Driver
2. Eliminates the application’s need to
know about the specifics of the
hardware.
Hardware (I/O, Uart, etc.) 4. Protocol layer also collects data from
an application and transmits it
Device Driver Programming
Considerations:
Questions
1. What is an interrupt?
Execute program
Switch context to execute
Interrupt Service Routine (ISR)
Questions
Example 1:
Interrupt 1 1 10 20 5 15 5
Interrupt 2 2 5 50 15 20 30
Example 2:
Interrupt 1 1 10 50 5 15 35
Interrupt 2 2 5 10 15 20 -10
Example 3:
Interrupt 2 1 5 10 10 15 -5
Interrupt 1 2 5 50 15 25 25
1.Measuring timing
• Using an oscilloscope or a logic analyzer
• Using special software to collect timing data
Questions
1. Who has used IDEs like AVR Studio, mikroC, Keil etc.?
Target
Questions
Questions
Questions