Download presentation
Presentation is loading. Please wait.
Published byColleen Harrison Modified over 9 years ago
1
SYSTEM SOFTWARE DESIGN JAMES ZUROSKE Pet Proximity Sensor
2
General System Design MC13213 (HCS08) Includes the 9S08GT60 & MC1319x 16 MHz Bus Frequency 60K Flash 4K RAM My System Requires 17K Flash 2K RAM PopNet alone takes 16K Flash and 1k RAM Paging Required to save to Non-Volatile Memory during battery replacements: Only 2 pages.
3
Chaos Kernel Round Robin Non Pre-emptive Multitasking Kernel Once started, tasks run to completion Tasks will be skipped if they don’t have any pending events
4
Tasks PopPhyTaskInit PopBspTaskInit PopNwkTaskInit PopSerialTaskInit PopAppTaskInit PopPhyTaskEventLoop PopBspTaskEventLoop PopNwkTaskEventLoop PopSerialTaskEventLoop PopAppTaskEventLoop
5
PopPhyTaskEventLoop Handles interaction with the radio Places the radio in receive mode Places the radio in transmit mode and indicates when complete Returns the LQI (Link Quality Indicator) of received data Max Execution Time: 2.3 us
6
PopBspTaskEventLoop Contains drivers for all hardware (LCD, LEDs, Buzzer) except the radio and serial port Handles low power (sleep mode) and Non-Volatie Memory storage. Handles the timers Max Execution Time: 251us Average Time: 7us
7
PopNwkTaskEventLoop Handles starting, joining and leaving the network The base or gateway device will form the network The nodes and asset will join the network
8
SerialTaskEventLoop Handles communicating through the serial port I will not be using this and will have it disabled
9
PopAppTaskEventLoop Base Device Waits for data from asset device Determines location information based on data received or not received Displays location information on LCD periodically Handles button press for setting the alarm Turns buzzer on if alarm is set Routing Node Waits for data from asset device Passes data to Base device Asset Device Periodically sends out a response to whichever node its connected to Sleeps Max Execution Time: 500us Average Time: 48us
10
Modules ModuleTasksPublic Functions and Data PopNet.lib Contains: (PopAes.c, PopEvent.c, PopMain.c, PopMem.c, PopMgmt.c, PopNwk.c, PopNwk.h) PopNwkTaskInit PopNwkTaskEventLoop PopSetAppEvent() PopSetEvent() PopApp.cPopAppTaskInit PopAppTaskEventLoop PopBsp.cPopBspTaskInit PopBspTaskEventLoop PopStartTimer() PopEndTimer() extern const int_t cPopLcdRows; extern const int_t cPopLcdCols; extern const int_t cPopNumLeds; extern const index_t giPopNvNumPages; PopCfg.c
11
Modules Continued ModuleTaskPublic Functions and Data PopDefault.cPopDefaultHandler() PopSerial.cPopSerialTaskInit PopSerialTaskEventLoopN/A PopPhy.cPopPhyTaskInit PopPhyTaskEventLoop PopPhyLqi() LCD.c void LCDInit(void); void LCDWriteString(UINT8 line, UINT8 *str); void LCDClearDisplay(void); void LCDWriteChar(UINT8 ch); Led.c void setLedsMode(UINT8 u8mode, UINT16 u16value, UINT16 u16ledDelay, UINT8 flags); void setLed(UINT8 u8value, UINT8 flags);
12
LCD Dataflow
13
Dataflow Between Base and Asset
14
Dataflow Between Devices
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.