m2v2 cda 3104 low power modes interrupts (wake...
TRANSCRIPT
![Page 1: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/1.jpg)
M2v2 CDA 3104
Low Power Modes
Interrupts (Wake up)
![Page 2: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/2.jpg)
How can this be modified to run for 1 year on a battery?
From the last lecture:
![Page 3: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/3.jpg)
GOING LOW POWER
1
23
![Page 4: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/4.jpg)
https://embeddedcomputing.weebly.com/ultra-low-power-with-msp430.html
Use Hardware Interrupt (PUSH2) to WakeUp a processor put to sleep
![Page 5: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/5.jpg)
![Page 6: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/6.jpg)
![Page 7: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/7.jpg)
![Page 8: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/8.jpg)
![Page 9: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/9.jpg)
![Page 10: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/10.jpg)
1% active per day is approximately 14.4 minutes operation in 24 hours
![Page 11: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/11.jpg)
![Page 12: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/12.jpg)
![Page 13: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/13.jpg)
![Page 14: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/14.jpg)
Ok, so we enter a Low Power Mode which shuts down parts of the processor.
So how do we wake up from the Low Power Mode?
Easy, use a hardware Interrupt to restart the processor and execute the Interrupt Service Routine – ISR
Interrupts hardware are built directly into the processor – each device block has this hardware
![Page 15: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/15.jpg)
http://processors.wiki.ti.com/index.php/MSP430_Design_Workshop
What is an Interrupt?
![Page 16: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/16.jpg)
![Page 17: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/17.jpg)
![Page 18: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/18.jpg)
![Page 19: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/19.jpg)
Four steps to get interrupts to work….
![Page 20: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/20.jpg)
![Page 21: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/21.jpg)
![Page 22: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/22.jpg)
![Page 23: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/23.jpg)
![Page 24: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/24.jpg)
![Page 25: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/25.jpg)
![Page 26: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/26.jpg)
![Page 27: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/27.jpg)
![Page 28: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/28.jpg)
![Page 29: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/29.jpg)
![Page 30: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/30.jpg)
The Code is simpler than all the details
Take a look at blinking the LED using a timer
How simple can it get?
![Page 31: M2v2 CDA 3104 Low Power Modes Interrupts (Wake up)web.eng.fiu.edu/watsonh/IntroMicros/M2Architecture/... · O_toggl eOatputœlPi . Interrupt Vectors & Priorities (F5529) Memo Flash](https://reader033.vdocuments.us/reader033/viewer/2022060513/5f2b99cca3b7a576e8705216/html5/thumbnails/31.jpg)
Toggle LED using Timer Interrupt Service Routine
Video of loading and running this code: