Humidity Sensing Fan Controller Jason Huft 05/11/10.

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

Programmable Interval Timer
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
Input/Output (I/O) Ports and Interfacing
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
BlueECG System Software Design Western Washington University By: Corey Williamson.
ECE 477 Design Review Team 2  Spring 2010 Digi-Brush Josh LongCaleb Ayew-ewKatie Schremser.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
8279 KEYBOARD AND DISPLAY INTERFACING
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
Example 11 Analog-to-Digital Converter Lecture L5.1.
Michael Nist. System Software Design  MCU (2): CY8CPLC20 8-bit  32 KB Flash, 2 KB SRAM  Bus Frequency: 24 MHz  Memory requirements:  Main Controller:
8279 KEYBOARD AND DISPLAY INTERFACING
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.
Turbine Flow Meter Kevin Hooks Senior Design Project.
System Software Design and Documentation Zach Hill Western Washington University.
Digital Handheld Communication and Navigation Device
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.
Lab 3: ADC.
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.
Lab 1 Summary.
Portable/Programable Location System – Software Design By: Mark Moerdyk.
LED CUBE Preliminary System Software Design Fernando J. Garcia May
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.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
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.
KEYBOARD/DISPLAY CONTROLLER - INTEL Features of 8279 The important features of 8279 are, Simultaneous keyboard and display operations. Scanned keyboard.
Conserve-A-Watt System Software Design Justin Rapozo.
Software Overview Walking Robot by Sharon Davis Kernel MicroC/OSII.
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.
Wireless Optical USB Mouse
Wireless Heart Rate Monitor
System Software Design by Chan-Chia (James) Chang
By: Justin E. Klumpp & Leo L.S. Wan
Introduction to Microprocessors and Microcontrollers
Arduino म्हणजे काय?.
Presentation transcript:

Humidity Sensing Fan Controller Jason Huft 05/11/10

General System Requirements MCU: HC9S08QE32, 44 pin package Bus Frequency: approximately 50 MHz Internal clock source. Timeslice Kernel – Timeslice Period: 100 ms Memory Available: – 32k EEPROM – 2k RAM Memory Requirement: – 8-10k EEProm – 2k RAM

Timeslice Kernel Tasks Startup Task Push-Button Task Display Task Humidity Detect Task Fan Control Task Timing Task WaitForSlice

Start Task Sets initial state of the system and initializes the registers. Execution Time: – 100ms worst case. Period: – Once at Startup

Push-Button Task Waits and recognizes a key press on a push- button switch. De-bounces the switch. Period: 20ms (sporatic) Execution Time: 10μs Changes state from key press – Off – On (can recognize multiple presses of this key) – Automatic

Humidity Detect Task Observes changing voltage from the sensor Converts the voltage into digital information Passes voltage level as a hex output to the MCU. Period 100ms Execution Time 5μs

Display Task Writes information to LCD display Takes timing information from timer task Also reports current state if in On or Automatic State. Period: 100ms Execution Time: about 5ms.

Fan Control Task Interrupts information from the Humidity Detect Task to choose if the fan should be on/off in automatic state. Calls fan activated/deactivate based on state. Period: 20ms (sporadic) Execution Time: 20us max (10 us average)

Timing Task Keeps track of remaining time in the on state. Mostly internal clock. Receives information from Push-Button Task Changes system state if certain conditions are met. Period: 100ms Execution Time: 20us or so

Wait for Slice Fills the remaining time in each slice period. Included to assist in proper task timing and debugging. Period: 100ms Execution Time: Varies based on how many other tasks need to execute in one slice period.

Modules ModuleTasksPublic Functions & Data Humidity.cStartup Task Humidity Detect Task Relay-Control Task WaitForSlice HumidityLevel FanActive() FanDeactivate() AtDInit() LcdInit() HumidityRead() ButtonInit() Button.cPush-Button TaskOnPressedMultiple CurrentFanState LCD.c Written by Todd Morton Display TaskLcdClrDisplay() LcdDispString() LcdMoveCursor() LcdDispByte() Time.cTiming TaskClockInit() TimeRemaining OCDelay.cOCDelay() GetmSCnt() Start08.c Written by Freescale mc9s08qe128.c Written by Freescale

CPU Load Max CPU Load – 20us/100ms + 20us/20ms + 5ms/20ms + 10us/20ms + 5us/100ms = * 100 = % Max CPU load - 20us/100ms + 5ms/100ms + 10us/20ms + 5us/100ms = 5.12% average CPU Load

Main Dataflow Diagram

Dataflow Diagram: Continued

AtD Converter Dataflow Diagram A-to–D I/O pin ADP0 Ts = 100ms A\D Converter Humidity Detect Task AtDInit() HumidityRead() ADCCFG ADCSC1 AD0 HumidityLevel