User Tools

Site Tools


rtes:topics:arduino:interrupts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rtes:topics:arduino:interrupts [2017/10/24 14:14] – [Lecture Material] adminrtes:topics:arduino:interrupts [2018/11/08 12:16] (current) – [2) Generate f = 3 kHz] admin
Line 7: Line 7:
  
  
-We use part of the excellent material from [[http://courses.cs.washington.edu/courses/csep567/10wi/|"CSE P567, Design and Implementation of Digital Systems (Winter 2010)"]] \\ by Carl Ebeling, Computer Science and Engineering Program, University of Washington +We use part of the excellent material from [[http://courses.cs.washington.edu/courses/csep567/10wi/|"CSE P567, Design and Implementation of Digital Systems (Winter 2010)"]] by Carl Ebeling, Computer Science and Engineering Program, University of Washington 
 /* /*
   * Lecture 6: {{:envmon:ws2015:session_03:lecture6_atmega328_arduino.pdf|Introduction to the ATmega328 and Arduino}}   * Lecture 6: {{:envmon:ws2015:session_03:lecture6_atmega328_arduino.pdf|Introduction to the ATmega328 and Arduino}}
Line 14: Line 14:
   * Lecture 6: {{ :rtes:topics:arduino:lecture6_atmega328_arduino.pdf |}}   * Lecture 6: {{ :rtes:topics:arduino:lecture6_atmega328_arduino.pdf |}}
   * Lecture 7: {{ :rtes:topics:arduino:lecture7_timers_interrupts.pdf |}}   * Lecture 7: {{ :rtes:topics:arduino:lecture7_timers_interrupts.pdf |}}
 +
 +  *  [[https://www.microchip.com/wwwproducts/en/ATmega328p|ATmega328P web page]]
 +  * {{http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega328_P%20AVR%20MCU%20with%20picoPower%20Technology%20Data%20Sheet%2040001984A.pdf|ATmega328P Datasheet (pdf)}}
 +  * {{http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_Summary.pdf|ATmega328P Datasheet Summary (pdf)}}
  
 From the introduction to ATmege328 ("Lecture 6") we just need: From the introduction to ATmege328 ("Lecture 6") we just need:
Line 24: Line 28:
   * Addressing modes   * Addressing modes
   * Instructions   * Instructions
 +
 +==== Interrupt and Context Switch ====
 +
 +A very good explanation is found here:
 +  * https://www.quora.com/What-is-the-difference-between-context-switching-and-interrupt-handling
 + 
 ===== Lab / Exercises / Homework ===== ===== Lab / Exercises / Homework =====
  
Line 34: Line 44:
  
 Modify the code from the instructable above to generate a frequency of 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.8bit-era.cz/arduino-timer-interrupts-calculator.html
 +
 ===== Links ===== ===== Links =====
  
rtes/topics/arduino/interrupts.1508854442.txt.gz · Last modified: 2017/10/24 14:14 by admin