Pre-class Assignment
Complete zyBook participation activities 10.1 and 10.2.
Announcements
- Lab 2 will be due Tuesday at 2:35pm
- Post on Ed or schedule office hours for help, especially if you haven’t gotten a working ECG signal yet (once you have a working ECG signal, the lab is mostly implementing IHR in MATLAB, which is relatively constrained by comparison to the first half of the lab)
- A couple groups pointed out that my example MATLAB code was missing an IHR. The missing IRH is 76.1905 at the end (further details)
Learning Objectives and Outcomes
In this lecture, you will...
- listen to a short discussion of the Check in survey results
- brainstorm examples of time ordered and data processing behavior in our labs thus far
- practice implementing basic SMs in RIMS
By the end of this lecture, you should be able to...
- discuss whether a behavior of an embedded system is time ordered or data processing
- create a state diagram for a simple state machine
- write and test basic state machine code in RIMS
Lecture Content
Time Ordered Vs. Data Processing Behavior
10.1 Time-ordered Behavior
What are some examples of time ordered and data processing behavior we have implemented in class so far? Take a few minutes to discuss with a partner.
Time Ordered |
Data Processing |
wait for input on keypad (or serial monitor) |
Instantaneous heart rate calculation |
debounce code (knowing when keypad was released) |
calculation in the calculator |
sampling of the ADC (ticker) |
peak detection algorithm |
Pulse Counter Example
