rtes:topics:arduino:interrupts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rtes:topics:arduino:interrupts [2017/10/17 13:47] – [Interrupts] admin | rtes:topics:arduino:interrupts [2018/11/08 12:16] (current) – [2) Generate f = 3 kHz] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Interrupts ====== | ====== Interrupts ====== | ||
- | |||
- | Based on AVR [[rtes: | ||
===== Lecture Material ===== | ===== Lecture Material ===== | ||
+ | <WRAP center round important 60%> | ||
+ | This lecture is related to interrupts \\ of the AVR **[[rtes: | ||
+ | </ | ||
- | We use part of the excellent material from [[http:// | ||
+ | We use part of the excellent material from [[http:// | ||
+ | /* | ||
* Lecture 6: {{: | * Lecture 6: {{: | ||
* Lecture 7: {{: | * Lecture 7: {{: | ||
+ | */ | ||
+ | * Lecture 6: {{ : | ||
+ | * Lecture 7: {{ : | ||
+ | |||
+ | * [[https:// | ||
+ | * {{http:// | ||
+ | * {{http:// | ||
From the introduction to ATmege328 (" | From the introduction to ATmege328 (" | ||
Line 14: | Line 23: | ||
* AVR memory | * AVR memory | ||
* Interrupts | * Interrupts | ||
- | * I/O ports, pin circuity | + | * I/O ports, pin circuitry |
We don't need: | We don't need: | ||
* Addressing modes | * Addressing modes | ||
* Instructions | * Instructions | ||
+ | |||
+ | ==== Interrupt and Context Switch ==== | ||
+ | |||
+ | A very good explanation is found here: | ||
+ | * https:// | ||
+ | |||
===== Lab / Exercises / Homework ===== | ===== Lab / Exercises / Homework ===== | ||
- | Let us work on Arduino Timer Interrupts based on material from instructables | + | ==== 1) Time Interrupts ==== |
+ | |||
+ | Let us work on Arduino Timer Interrupts based on material from instructables | ||
+ | |||
+ | |||
+ | ==== 2) Generate f = 3 kHz ==== | ||
+ | |||
+ | Modify the code from the instructable above to generate a frequency of f = 3 kHz. | ||
+ | |||
+ | ==== The Lazy Ones use this ==== | ||
- | * http://www.instructables.com/id/Arduino-Timer-Interrupts/? | + | http://www.8bit-era.cz/arduino-timer-interrupts-calculator.html |
===== Links ===== | ===== Links ===== |
rtes/topics/arduino/interrupts.1508248031.txt.gz · Last modified: 2017/10/17 13:47 by admin