Michael Nist. System Software Design  MCU (2): CY8CPLC20 8-bit  32 KB Flash, 2 KB SRAM  Bus Frequency: 24 MHz  Memory requirements:  Main Controller:

Slides:



Advertisements
Similar presentations
System Software Design Frank Mirabelli. Motorola MC9S12DP512 Bus Frequency 24 MHz Available Memory 512K bytes Flash EEPROM, 4K bytes EEPROM, 14K bytes.
Advertisements

Mark Schaumburg.  Dash Module for Formula Car  Sample pulse from engine for RPM  Display Information  Control gui  Can network interface  Request.
Industrial Automation and Control
A.k.a “THE A.U.M. DEVICE” (PRONOUNCED “OHM”) By B. Löwen Gruseck (EE) Gardy Lacombe (EE) Michael Sriprashad (EE) Sponsored by.
Parts & Functions of a Computer. 2 Functions of a Computer.
Module 2: Hardware and Terminology
1 A+ Guide to Managing and Maintaining Your PC, Fifth Edition Hardware Needs Software to Work Hardware  Physical components of a computer  Visible part.
Operating Systems  By the end of this session, you will know: What an Operating System is. The functions it performs.
BlueECG System Software Design Western Washington University By: Corey Williamson.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 1 Introducing Hardware.
UNIT - 1Topic - 1. An electronic device, operating under the control of instructions stored in its own memory unit, that can accept data (input), manipulate.
Types of Computers Mainframe/Server Two Dual-Core Intel ® Xeon ® Processors 5140 Multi user access Large amount of RAM ( 48GB) and Backing Storage Desktop.
The IT700 PIM only supports up to network layer, all other above layers must be executed by other processor. Therefore in the PLC control network two types.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
System Software Design Review.  MCU: NXP LPC2378 ARM7 32-bit  512 KB Flash, 8KB EEPROM and SRAM  Bus Frequency: 20 MHz  Approximate Memory requirements:
 Home Security and Lighting System  Western Washington University  Jonathon Ross  28 April, 2009.
System Software Design Colin Gatlin May 12, 2009 Western Washington University.
In a multitasking environment : what is a timeslice (quantum)? what is a context switch? When a large number of processes (jobs) are multitasking the actual.
Turbine Flow Meter Kevin Hooks Senior Design Project.
System Software Design and Documentation Zach Hill Western Washington University.
Digital Handheld Communication and Navigation Device
BABCA Software Operating Systems (OS) aka Systems Software A set of instructions that coordinate all the activities among computer hardware resources.
Vinh Le.  MCU: Freescale Kinetis K60512 ARM Cortex M4  Bus Frequency: 50MHz  Available Memory: ◦ 512KB Flash ◦ 64KB SRAM  Memory Required: ◦ 10KB.
SYSTEM SOFTWARE DESIGN JAMES ZUROSKE Pet Proximity Sensor.
Lost Item Pager System Design Russ Kinley 5/6/6008.
Ryan Hansgen. General System Design  MC9S08QE64CFT 24MHz Bus Frequency 64 K byte Flash EEPROM, 4.0 K byte RAM  Memory required 8 K bytes ROM 2 K bytes.
RFID Access Control System Lucius Knight. General System Design  Microcontroller  PSoC CY8C29466  24MHz Bus Frequency  Memory Available  32kB FLASH.
System Software Design Dane Kim May 4 th, 2009 EET 475, WWU.
BICYCLE SECURITY AND TRIP COMPUTER MATTHEW ROTHNIE WESTERN WASHINGTON UNIVERSITY 4/25/12.
By Jesse W. Spalding.  Microcontroller Choice  Motorola 9S12DP256B ◦ Set to 24 MHz for the Bus Frequency ◦ Memory  256K Bytes of ROM  12K Bytes of.
ATV INSTRUMENTATION DISPLAY System Design Ed Raezer Senior Project Western Washington University.
Multi-Access Lock Andrew Hall. General System Requirements MCU: MC9S12C128 Bus Frequency: 24MHz Memory Requirements: 11k bytes Flash EEPROM 3k bytes RAM.
System Software Design Engineer: Mac Gainor Western Washington University.
Machine Access System Software Design and Documentation Western Washington University By: Kevin Pogue.
Portable/Programable Location System – Software Design By: Mark Moerdyk.
WWU Taylor Reijm. LPC bit MCU 512kB Flash Memory 144-pin 20MHz oscillator Used to control TFT touch screen LCD and LCD controller. 1 GPIO used.
Operating Systems. Categories of Software System Software –Operating Systems (OS) –Language Translators –Utility Programs Application Software.
LED CUBE Preliminary System Software Design Fernando J. Garcia May
Humidity Sensing Fan Controller Jason Huft 05/11/10.
System Software Design Dan Sweet May 6 th, 2008 Western Washington University Bicycle Power Meter.
SGDRS Software System Design Justin A. King WWU EET Senior project 2013.
Automatic Pressure Canning System System Software Design By: Michael Drysdale.
Atmospheric Data Measuring Rocket Software Design & Description Matt Buonadonna ADaM Code Presentation.
GPS Enhanced PFD System Software Presentation Eric Grossmann.
Software Design Review Andres Rodriguez. General System Design  MCU: STM32F405  MCU Bus Frequency: 84MHz  Memory Requirements  Flash: ~ 10Kb  RAM:
System Software Design GPS Training System Jason Corbridge May 8, 2008 Western Washington University.
LED CUBE Preliminary System Software Design Fernando J. Garcia May
WESTERN WASHINGTON UNIVERSITY KENT SYKES 2009 Audio Field Recorder System Software Design.
ATV INSTRUMENTATION DISPLAY System Software Design Ed Raezer.
Wireless Heart Rate Monitor. On-Person Unit MC13213 (HCS08)  16 MHz Bus Frequency  On Chip Resources 60K of Flash 4K of RAM  Require Resources 15K.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
HOME CONTROL SYSTEM By: Justin E. Klumpp & Leo L.S. Wan Leo L.S. Wan.
System Software Design Doorbell Jukebox Henry Arbicor and Arthur Bingcang.
Voice Over IP – Software Western Washington University By: Jonathan R. Peterson.
Electronic Memory Game System Software Design Jack Sullivan May 08, 2007.
Conserve-A-Watt System Software Design Justin Rapozo.
Power Budget Automation System Team #40 Hai Vo, Ho Chuen Tsang, Vi Tran ECE 445 Senior Design April 30 st, 2013.
The Guardian: Refrigerator Contents Tracker Bryant Lampano Western Washington University Electronics Engineering Technology [Type the company name]
Automated Aquarium Controller System Software Design ETEC 474 Western Washington University By: Gregory Rose.
28 April 2005 Brushless DC Motor Controller Software Design Presentation Western Washington University Patrick Prendergast.
System Software Design Presentation Western Washington University Taylor Reijm.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
Wireless Optical USB Mouse
Wireless Heart Rate Monitor
System Software Design by Chan-Chia (James) Chang
By: Justin E. Klumpp & Leo L.S. Wan
The Programmable Logic Controller
Arduino Board.
Arduino म्हणजे काय?.
Presentation transcript:

Michael Nist

System Software Design  MCU (2): CY8CPLC20 8-bit  32 KB Flash, 2 KB SRAM  Bus Frequency: 24 MHz  Memory requirements:  Main Controller: 24 KB Flash, 2 KB SRAM  Outlet Controller: 24 KB Flash, 2 KB SRAM  Resources Used:  Main Controller: 13 GPIO, PLC  Outlet Controller: 5 GPIO, PLC

Timeslice Kernel - Tasks  Start Task  Key Task  User Interface Task  Transmit/Receive Task  WaitForSlice

Start Task  Initializes the system on startup and sets initial registers.  Execution Time:  100 mS  Period:  Runs only on startup

Key Task  Recognizes key presses on the push buttons and changes to the state of the user switches  Performs switch de-bouncing  Execution Time:  <5 uS  Period  20 mS (Sporadic)

UI Task  Handles the user inputs  Maintains the current state of the system  Writes to the LCD  Execution Time:  5 mS  Period  100 mS

Transmit/Receive Task  Handles the communication between controllers  Receives power measurement calculations  Transmits instructions to turn the appliance on/off  Execution Time:  10 mS  Period  1 Sec

WaitForSlice Task  Fills time between slice periods

CPU Load  L = 5uS/20mS + 5mS/100mS + 10mS/1S = 6.03%

Modules ModuleTaskPublic Functions and Data Main.cStart Task WaitForSlice UI Task CurrentPower PLC.cTX/RX TaskTogglePower() Button.cKey TaskButtonUp ButtonDown ButtonLeft ButtonRight ButtonOK SwitchEn

Data Flow Buttons LCD TX/RX Task Key Task UI Task ButtonUp ButtonDown ButtonLeft ButtonRight ButtonOK SwitchEn TogglePower() CurrentPower Hardware Powerline PLC.c Main.c Button.c

Kernel – Outlet Control Unit  Start Task  Key Task  WaitForSlice  Transmit/Receive Task  Power Measurement Task  Switch Task

Transmit/Receive Task  Handles the communication between controllers  Transmits power measurement calculations  Receives instructions to turn the appliance on/off  Execution Time:  10 mS  Period  1 Sec

Power Measurement Task  Acquires data from ADC sensing current  Acquires data from ADC sensing voltage  Performs calculations to determine power usage then stores the value  Execution Time:  150 mS  Period:  1 sec

Switch Task  Activates or deactivates the relay to switch the outlet on/off if register set  Execution Time:  10 uS  Period  1 sec

CPU Load  L = 5uS/20mS + 10mS/1S + 150mS/1S + 10mS/1S = 17.03%

Modules ModuleTaskPublic Functions and Data Main.cStart Task WaitForSlice PLC.cTX/RX TaskSendPower() Button.cKey TaskSwitchEn SwitchOverride Power.cPower Measurement TaskVrms Irms Power GetPower() Switch.cSwitch TaskTogglePower() GetState() PowerState

Data Flow Current ADC Voltage ADC Hardware Powerline Power Task Switch Task TX/RX Task Relay Key TaskSwitches SendPower() Vrms Irms Power SwitchOn SwitchOverride PowerState GetPower() TogglePower()GetState() PLC.c Power.c Button.c Switch.c