The embedded systems platform

Slides:



Advertisements
Similar presentations
Building Dependable Systems. R1. There is a single control button available for the user of the oven. If the oven is idle with the door closed and you.
Advertisements

Programmable Interval Timer
TLA. Replacing The Battery On the Back of the pager press in this button while moving the door away from the pager, then lift up. On the Back of the pager.
Chapter 4 The Embedded Computing Platform 金仲達教授 清華大學資訊工程學系 (Slides are taken from the textbook slides)
Converting Time Conventional 12-hour clock –Source of errors in medication administration –Each time occurs twice daily 10:00 a.m. 10:00 p.m.
5:47 1: Default Clock State PM Alarm off, time set to 5:47PM. Hour
Debouncing Switches Mechanical switches are one of the most common interfaces to a uC. Switch inputs are asynchronous to the uC and are not electrically.
Active Capture Design Space Ana Ramírez Chang BiD Seminar 3 November 2005.
Discrete Event Simulation Event-Oriented Simulations By Syed S. Rizvi.
Wireless Networks Lab – Callback Function 2015/6/30.
1 Chapter 13 Embedded Systems Embedded Systems Characteristics of Embedded Operating Systems.
Alarm Clock Robert Stuart. 1.Keep track of time. 2.When the time matches a stored value an alarm should go off. 3.Functionality that allows for the user.
New Mexico Computer Science For All More Looping in NetLogo Maureen Psaila-Dombrowski.
Sept EE24C Digital Electronics Project Design of a Digital Alarm Clock.
ELEC 1041 Digital Electronics Tutorial: Word Problems
JavaScript Events and Event Handlers 1 An event is an action that occurs within a Web browser or Web document. An event handler is a statement that tells.
1 CSC103: Introduction to Computer and Programming Lecture No 2.
PowerFlex 755 DeviceLogix
© 2000 Morgan Kaufman Overheads for Computers as Components Introduction  Example: model train controller.
Part I MVRT 2011 – 2012 Season Introduction to LabVIEW.
© 2000 Morgan Kaufman Overheads for Computers as Components I/O devices  I/O devices:  serial links  timers and counters  keyboards  displays  analog.
© 2000 Morgan Kaufman Overheads for Computers as Components The Embedded computing platform zCPU bus. zMemory. zI/O devices.
© 2008 Wayne Wolf Overheads for Computers as Components 2nd ed. Bus-Based Computer Systems Example: alarm clock 1.
Time Management.  Time management is concerned with OS facilities and services which measure real time, and is essential to the operation of timesharing.
Who Wants to be a Millionaire? Type your name and send
Standard 3-5: Indicator Indicator Understand that a digital clock shows the current time only Understand that a analog clock shows past, present.
Introduction 2 Smart Design. What is smart design? 2 Everything is designed except nature The packaging of a Band-Aid The curve of a bike frame The shape.
CSC 107 – Programming For Science. Today’s Goal  Know how to use and write for loops  Explain why to use for, while, & do-while loops  Convert between.
While and If-Else Loops ROBOTC Software. While Loops While loop is a structure within ROBOTC Allows a section of code to be repeated as long as a certain.
Senior DesignSoftware-1Seattle Pacific University High-level Software Design Context Diagram Connections between major components Synchronization with.
Senior Design Dec06-04 Diana Calhoun (Communication Coordinator) Matt Koch (Group Leader) Kelly Melohn (Communication Aide) Yesuratnam Thommandru (Group.
The embedded systems platform
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
18240 Element two - Components INPUTS OUTPUTS PURPOSE TYPICAL USE.
Networked Embedded Systems Pengyu Zhang & Sachin Katti EE107 Spring 2016 Lecture 4 Timers and Interrupts.
Lab 2 Microprocessor MPC430F2274 MSP-430 Architecture.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Introduction to Simulation What is a simulation? A system that represents or emulates the behavior of another system over time; a computer simulation is.
Visual Basic Fundamental Concepts
Application Case Study Security Camera Controller
Lecture 2 Interrupts.
Val Manes Department of Math & Computer Science
Programming & Scratch.
Power meter SB-DN-PM1P03 SB-DN-PM3P02.
Clocks, I/O devices, Thin Clients, and Power Management
Overheads for Computers as Components
EC6703 EMBEDDED AND REAL TIME SYSTEMS
Choose a Count down Time by Clicking a Button Below.
Introduction to Embedded Computing
Overheads for Computers as Components
Technology Literacy Hardware.
ELEC 1041 Digital Electronics Tutorial: Word Problems
Digital Time Pieces by youpresent.co.uk
Writing times in digital
Lesson 2: Introduction to Control programming using Labview
Formatting Output.
Data Types
Visual Basic..
CSCI1600: Embedded and Real Time Software
Processes and operating systems
MIPS interrupt continued
if-else Structures Principles of Engineering
Wireless Embedded Systems
Building Dependable Systems
LCC 6310 Computation as an Expressive Medium
2. ATP INITIALIZATION PLACE ATP SWITCH TO “1” OR “NORMAL” POSITION A
Who Wants to be a Millionaire?
Integrated Freezer F Ui
Presentation transcript:

The embedded systems platform Example: alarm clock © 2000 Morgan Kaufman Overheads for Computers as Components

Overheads for Computers as Components Alarm clock interface Alarm on Alarm off buzzer PM Alarm ready light set time set alarm hour minute button © 2000 Morgan Kaufman Overheads for Computers as Components

Overheads for Computers as Components Operations Set time: hold set time, depress hour, minute. Set alarm time: hold set alarm, depress hour, minute. Turn alarm on/off: depress alarm on/off. © 2000 Morgan Kaufman Overheads for Computers as Components

Alarm clock requirements © 2000 Morgan Kaufman Overheads for Computers as Components

Alarm clock class diagram 1 1 1 1 Lights* Display Mechanism 1 1 1 Buttons* Speaker* 1 © 2000 Morgan Kaufman Overheads for Computers as Components

Alarm clock physical classes Lights* Buttons* Speaker* digit-val() digit-scan() alarm-on-light() PM-light() set-time(): boolean set-alarm(): boolean alarm-on(): boolean alarm-off(): boolean minute(): boolean hour(): boolean buzz() © 2000 Morgan Kaufman Overheads for Computers as Components

Overheads for Computers as Components Display class Display time[4]: integer alarm-indicator: boolean PM-indicator: boolean set-time() alarm-light-on() alarm-light-off() PM-light-on() PM-light-off() © 2000 Morgan Kaufman Overheads for Computers as Components

Overheads for Computers as Components Mechanism class Mechanism Seconds: integer PM: boolean tens-hours, ones-hours: integer tens-minutes, ones-minutes: integer alarm-ready: boolean alarm-tens-hours, alarm-ones-hours: integer alarm-tens-minutes, alarm-ones-minutes: scan-keyboard() update-time() © 2000 Morgan Kaufman Overheads for Computers as Components

Update-time behavior update seconds with rollover display.set-time(current time) F Time >= alarm and alarm-on? Rollover? F T T update hh:mm with rollover alarm.buzzer(true) PM->AM AM->PM PM=true PM=false © 2000 Morgan Kaufman Overheads for Computers as Components

Scan-keyboard behavior Set-time and not set-alarm and hours compute button activations Alarm-on Increment time tens w. rollover and AM/PM alarm-ready= true Alarm-off alarm-ready= false alarm.buzzer(false) Increment time ones w. rollover and AM/PM save button states Set-time and not set-alarm and minutes © 2000 Morgan Kaufman Overheads for Computers as Components

Overheads for Computers as Components System architecture Includes: periodic behavior (clock); aperiodic behavior (buttons, buzzer activation). Two major software components: interrupt-driven routine updates time; foreground program deals with buttons, commands. © 2000 Morgan Kaufman Overheads for Computers as Components

Interrupt-driven routine Timer probably can’t handle one-minute interrupt interval. Use software variable to convert interrupt frequency to seconds. © 2000 Morgan Kaufman Overheads for Computers as Components

Overheads for Computers as Components Foreground program Operates as while loop: while (TRUE) { read_buttons(button_values); process_command(button_values); check_alarm(); } © 2000 Morgan Kaufman Overheads for Computers as Components

Overheads for Computers as Components Testing Component testing: test interrupt code on the platform; can test foreground program using a mock-up. System testing: relatively few components to integrate; check clock accuracy; check recognition of buttons, buzzer, etc. © 2000 Morgan Kaufman Overheads for Computers as Components