1 / 15

Remote Control Thermostat System Software Presentation

Remote Control Thermostat System Software Presentation. By Jesse W. Spalding. General System Design. Microcontroller Choice Motorola 9S12DP256B Set to 24 MHz for the Bus Frequency Memory 256K Bytes of ROM 12K Bytes of RAM 4K Bytes of EEPROM MicroC/OS Kernel Timeslice Period of 1ms

osgood
Download Presentation

Remote Control Thermostat System Software Presentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Remote Control ThermostatSystem Software Presentation By Jesse W. Spalding

  2. General System Design • Microcontroller Choice • Motorola 9S12DP256B • Set to 24 MHz for the Bus Frequency • Memory • 256K Bytes of ROM • 12K Bytes of RAM • 4K Bytes of EEPROM • MicroC/OS Kernel • Timeslice Period of 1ms • Semaphores to communicate between tasks

  3. More About the Kernel • MicroC/OS-II Real Time Preemptive Multitasking Kernel • By Jean J. Labrosse • Portable and Reusable Design

  4. Kernel Tasks and Priority • Start Task • Setup Task • Time and Temp Task • DAA Task • Key Task

  5. Start Task • Description • Initializes System • Creates Other Tasks • Priority: 4 • Period of Task is once at start up • Estimated Execution Time is approximately 150ms

  6. Control Task • Description • The task controls and deciphers the different modules. It does the intertask communication between them all. It interprets user’s inputs both home user and phone user. It controls the DTMF input and the phone line interface over the DAA. Will also control the relays. • Priority: 5 • Execution Time: approximately 3.75ms • Period: 10ms • CPU Load: approximately 0.375

  7. TimeTemp Task • Description • It gets information from the RTC (which includes temperature) and also receives alarm which are set up • Priority: 6 • Execution Time: 40us • Period: Every Second • CPU Load: .00004

  8. DAA Task • Description: This task samples the RING pin (pin 8) on the DAA for a valid ring. If it does it sets a flag. • Priority: 7 • Execution Time: 50us • Period: 20ms • CPU Load: .0025 • Code designed by: Leo Wan

  9. Key Task • Description • Scans for a valid key input on Port H. Updates the keypad buffer if a key is pressed and verified • Priority: 8 • Execution Time: 50us • Period: 10ms • CPU Load: 0.005 • Code designed by: Todd Morton & Thomas Chia

  10. CPU Load Approximate Total • Max CPU Load: • 0.375+0.0004+0.0025+0.005 = 0.3829 • Average CPU Load: • Approximately 0.3

  11. Modules 1

  12. Modules 2

  13. Keypad Flow Diagram

  14. LCD Flow Diagram

  15. Control Task Flow Diagram

More Related