Presentation is loading. Please wait.

Presentation is loading. Please wait.

Portable/Programable Location System – Software Design By: Mark Moerdyk.

Similar presentations


Presentation on theme: "Portable/Programable Location System – Software Design By: Mark Moerdyk."— Presentation transcript:

1 Portable/Programable Location System – Software Design By: Mark Moerdyk

2 General System Design  MCU : MC9S08GT60  On Chip Resources  60K Flash,  4K Ram  Use  20K Flash  2K Ram

3 PopNet 2.0  San Juan Software  Multi-tasking kernel  Light weight  Enable networking  No task priority  Events sent one at a time to application ad other tasks in order they were sent  sequential

4 Tasks  PopAppTaskInit()  Initializes senors, A to D and any hardware  Starts NetWork  Execution Time = 20ms  PopAppTaskEventLoop()  Handles key, timer, message, and data  Period time ≈ 2ms  Execution time max = 1ms  Typical execution time = 100 µs

5 PopAppHandleKey  Verifies the button was pressed  Switch enabled  Execution time = 50 µs  Period = 1 ms

6 PopAppAudioChip()  Gets signal strength via LQI function  Case statement compares signal strength to determined message  Determines if needs to switch audio on chip  Plays audio  Period = 100 ms  Execution time = 10 ms

7 CPU Load  Max CPU load for main unit  L = (50 µs/1ms) + (10ms/100ms) + (1ms/2ms) = 65%  Avg CPU load for main unit  L = (50µs/1ms) + (10ms/100ms) + (100µs / 2ms) = 20%

8 Modules ModuleTasksPublic Functions PopAppOnOffLight.cPopAppTaskInit() PopAppTaskEventLoop() PopAppHandleKey PopAppHandleTimers PopAppDataIndication PopAppDefaultHandler PopNwkLqi PopStartTimer PopAppToggleLight iEvtId iKeyId popEvtId_t sPopEvtData_t sEvtData sPopNwkDataIndication_t *pIndication popTimerId_t iTimerId ExternalDeviceOn() ExternalDeviceOff() PopBsp.cPopBspTaskInit()PopAppHandleKey PopKeyInit ExternalDeviceOn() ExternalDeviceOff()

9 Data Flow Diagram PopBsp.c PopAppOnOffLight.c


Download ppt "Portable/Programable Location System – Software Design By: Mark Moerdyk."

Similar presentations


Ads by Google