SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!)

Slides:



Advertisements
Similar presentations
SE3910 Week 2, Class 2 Today Real-Time Systems Embedded Systems Other ??? Week 3 Tuesday Lab Lab start TBA SE-2811 Slide design: Dr. Mark L. Hornick Content:
Advertisements

CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
OS Spring’03 Introduction Operating Systems Spring 2003.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
The 8051 Microcontroller and Embedded Systems
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Ch. 9 Interrupt Programming and Real-Time Sysstems From Valvano’s Introduction to Embedded Systems.
Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in.
Operating Systems.
SE3910 Week 2, Class 1 Today Basic Circuits Other ??? Tomorrow Lab 2, S365 (Complete prelab BEFORE) Thursday See ScheduleSchedule SE-2811 Slide design:
SE-3910 Real-time Systems Week 3, Class 1 – Beaglebone Documentation (cont.) – Review/Basic Circuits (cont.) Switches & Pull-up resistors How to burn up.
Virtual Plant Tour Stamping – c&p=n#/27;109http:// c&p=n#/27;109 –
CS2852 Week 2, Class 1 Today Generics (Section 051) Big-O runtime analysis Muddiest Point Lab Quiz Includes writing a method from ArrayList class (See.
Today Networking in Linux/C Lab Eclipse cross-compiling Measuring latency of 100% CPU busy-wait polling Sleeping busy-wait polling Interrupt-driven response.
Today Quiz Multithreading Options Qt socket buffers between threads Quiz today & Tuesday in lab SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
SE-3910 Real-time Systems Week 5, Class 1 – Quick-Quiz (Ungraded) – Lab 4 turn-in up - due Tuesday, Week 5 – Select when to use Polling or Interrupts –
13-Nov-15 (1) CSC Computer Organization Lecture 7: Input/Output Organization.
SE-3910 Real-time Systems Week 2, Class 3 – Return Quiz, Q’s on HW Assignment? – Signals – Audio! – Review/Basic Circuits Kirkhoff’s Current & Voltage.
SE-3910 Real-time Systems Week 5, Class 2 – Lab turn-in page is up! – Use interrupts in a Linux/C environment – Scheduling – Watchdog follow-up Watchdog.
SE-3910 Real-time Systems Week 1, Class 2 – Fine Print – Web page available – Review Quiz 0 – What is a Real-Time Embedded System? Embedded & Real-Time.
CSCI1600: Embedded and Real Time Software Lecture 16: Advanced Programming with I/O Steven Reiss, Fall 2015.
Today Return Quiz First true release of final project (Lab 8) Multithreading Options Qt socket buffers between threads SE-2811 Slide design: Dr. Mark L.
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
Unit 4: Processes, Threads & Deadlocks June 2012 Kaplan University 1.
Today Signals Nyquist Theorem (revisited) Audio Sampling Latency and Bandwidth Scheduling Theory SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Chapter 8 Input/Output An Hong 2015 Fall School of Computer Science and Technology Lecture on Introduction to.
SE3910 Week 6, Class 1 Week 6, Class 2 (Wednesday) Quiz Week 7, Class 2 (Wednesday) Half-Exam 2 Bring Calculator!! Qt GUI Design Analog and Digital Datarates.
SE3910 Week 8, Class 2 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 7, Class 2 (Wednesday) Half-Exam 2 Done.
SE3910 Week 8, Class 3 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 9 Lab: Individual demos of working sub-modules.
Operating System Overview
SE-3910 Real-time Systems Week 10, Class 2
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Slide design: Dr. Mark L. Hornick
SE-3910 Real-time Systems Week 10, Class 3 Loop jamming
CS501 Advanced Computer Architecture
Slide style: Dr. Hornick
Microprocessor Systems Design I
UNIT – Microcontroller.
Operating Systems (CS 340 D)
Polling vs. Interrupts CS2852 7/20/2018
CS 286 Computer Organization and Architecture
Polling vs. Interrupts CS2852 9/18/2018
Introduction to Realtime Systems (& Embedded Systems)
Advisor: Prof. Gandhi Puvvada
Internet-of-Things (IoT)
Advisor: Prof. Gandhi Puvvada
Interrupts Interrupt is a process where an external device can get the attention of the microprocessor. The process starts from the I/O device The process.
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Chapter 8 I/O.
Interrupts.
EE 472 – Embedded Systems Dr. Shwetak Patel.
Slide design: Dr. Mark L. Hornick
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
CSCI1600: Embedded and Real Time Software
SE-3910 Real-time Systems Week 10, Class 2
Processes David Ferry CSCI 3500 – Operating Systems
Polling vs. Interrupts CS2852 4/9/2019
Introduction to OS (concept, evolution, some keywords)
Polling vs. Interrupts CS2852 4/21/2019
Slide design: Dr. Mark L. Hornick
CSCI1600: Embedded and Real Time Software
Introduction to OS (concept, evolution, some keywords)
Chapter 13: I/O Systems.
Lecture 12 Input/Output (programmer view)
Interrupts.
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!) CS2852 5/22/2019 SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!) Lab 3 due Friday, Week 4 Lab 4 due Tuesday, Week 5 Exams in C CPU Speed CPU Utilization Polling vs. Interrupts SE3910 Class 2-3 Yoder PPT notes Spring 2014 Print 1, 9, 12, 14 Well-Known Ports 20 Generate I/O Materials Generate Pin Materials For Tuesday Lab: Quiz Lab Safety Checkout Tentative Class Objectives: Explain why writing a file causes a pin to “light” Explain why reading a file reads a 3.3/0V value from a pin Create programs using file I/O Create new capabilities for the GPIO library Create new kernel modules for the BeagleBone? - Because it’s cool - To give deeper hardware/software understanding - To give familiarity with the whole beagle-bone process Explore the Beaglebone OS source code Explain key design decisions made by Beaglebone / Linux OS writers Contrast these decisions with Classic Linux and Windows decisions Old Stuff: In-class: Explain the concept of rise time and fall time. Make sketch or figure: Using the oscilloscope, measure the time difference between two signals. For HW/class activity: Classify events as either being synchronous or asynchronous, periodic, aperiodic, or sporadic Objectives: Explain the difference between an embedded and non-embedded system Explain the difference between a real-time system and a non-real-time system Identify the key components of the Beaglebone platform Explain why the Beaglebone changes operating frequency under different power conditions Identify the key hardware interfaces of the beaglebone Explain the concept of a cape (daughterboard) Calculate the software GPIO pin number from an expansion port header definition Understand how to read a basic schematic Explain the concept of a dropping resistor Explain the concept of a pull up and a pull down resistor Short the beaglebone’s output to ground Connect the input directly to 5V Connect the input through a resistor to 5V Discuss peak voltage again Potential Topics Piazza Link to Schilling’s PDF Slides At end: Discuss two kinds of interrupt systems: Idle main “background” main SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling, Some from Dr. Hornick, etc. Dr. Yoder

Whole-class Quiz! (1) Select all that are real-time systems Video Game CS2852 5/22/2019 Whole-class Quiz! (1) Select all that are real-time systems Video Game Aircraft Autopilot Refinery Process Control Cash Register Smartphone Discussion: Why do we pick these options? Are there any proceses that are not real-time? Why does the book re-define real-time systems? What are the practical implications? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

Whole-class Quiz! (2) Select all that are embedded systems Video Game CS2852 5/22/2019 Whole-class Quiz! (2) Select all that are embedded systems Video Game Aircraft Autopilot Refinery Process Control Cash Register Smartphone Discussion: What is the key difference between an embedded system and a non-embedded system? Does this clarify our answers? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

Whole-class Quiz! (3) Where do I find GPIO 49? CS2852 5/22/2019 Whole-class Quiz! (3) Where do I find GPIO 49? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

CPU Speed Fact: Question: CS2852 5/22/2019 CPU Speed Fact: The Beaglebone can operate at 275 MHz, 500 MHz, 600 MHz, or 720 MHz http://beaglebone.cameon.net/home/set-cpu-speed Question: Why should I care? Depending on discussion, model transistor as “capacitor” Or simply discuss “switching” cost Switches/s * energy/switch = power (energy/time) SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

Tasking What happens when the CPU runs out of tasks to process? What should I do about it? (Give at least two possible answers.) SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling

Utilization Factor Formal Definition How to compute % non-idle processing How to compute ui = ei/pi ei – execution time, worst case pi – execution period SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling

Question How should I set the utilization factor? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling

Utilization Factor Theory: See Ch. 3 (from Laplante and Ovaske 4E, p. 12) SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling

What is the Zone Type for this system? CS2852 5/22/2019 A system has 4 processes, as is described below. What is the overall utilization? Task 1: Measure wheel slip (p1=100ms, e1=12ms) Task 2: Measure traction capabilities of wheel (p2=50ms, e2=5ms) Task 3: Monitor system diagnostics (p3=200ms, e3=5ms) Task 4: Send system messages over network (p4=25ms, e4=1ms) What is the Zone Type for this system? Supposing overloaded, how do we fix it? Also, what other “bottlenecks” might cause us to miss deadlines? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

Question while(true) { } How can we make task1() more punctual? CS2852 5/22/2019 Question while(true) { task1() task2() task3() } How can we make task1() more punctual? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

Switch de-bouncing How can we avoid multiple presses? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling

(Board code) CS2852 5/22/2019 Do on board. SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder

Interrupt Definitions CS2852 5/22/2019 Interrupt Definitions Interrupt An event in hardware that triggers the processor to jump from its current program counter to a specific point in the code. Interrupt Service Routine (ISR) The function that is called or the particular assembly code that is executed when the interrupt happens is called the Interrupt Service Routine (ISR). Interrupt flag (IFG) this is the bit that is set that triggers the interrupt, leaving the interrupt resets this flag to the normal state. Interrupt Enable Control bit that tells the processor that a particular interrupt should or should not be ignored. Interrupt Vector Table A table in memory which maps ISRs to interrupts. SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling Dr. Yoder