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/17 13:51] – [Lecture Material] adminrtes:topics:arduino:interrupts [2018/11/08 12:16] (current) – [2) Generate f = 3 kHz] admin
Line 3: Line 3:
 ===== Lecture Material ===== ===== Lecture Material =====
 <WRAP center round important 60%> <WRAP center round important 60%>
-This lecture is related to interrupts of the AVR **[[rtes:topics:arduino:ATmega328|ATmega328]]** microcontroller.+This lecture is related to interrupts \\ of the AVR **[[rtes:topics:arduino:ATmega328|ATmega328]]** microcontroller.
 </WRAP> </WRAP>
  
  
-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}}
   * Lecture 7: {{:envmon:ws2015:session_03:lecture7_timers_interrupts.pdf|ATmega328 Timers and Interrupts}}   * Lecture 7: {{:envmon:ws2015:session_03:lecture7_timers_interrupts.pdf|ATmega328 Timers and Interrupts}}
 +*/
 +  * Lecture 6: {{ :rtes:topics:arduino:lecture6_atmega328_arduino.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 16: 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://www.quora.com/What-is-the-difference-between-context-switching-and-interrupt-handling
 + 
 ===== 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 \\ http://www.instructables.com/id/Arduino-Timer-Interrupts/?ALLSTEPS  
 + 
 + 
 +==== 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/?ALLSTEPS +http://www.8bit-era.cz/arduino-timer-interrupts-calculator.html
  
 ===== Links ===== ===== Links =====
rtes/topics/arduino/interrupts.1508248311.txt.gz · Last modified: 2017/10/17 13:51 by admin