130 likes | 248 Vues
This document outlines a wireless fencing system powered by a microcontroller operating at 16 MHz. It utilizes on-chip resources including 60KB of Flash and 4KB of RAM, with functional requirements of 15KB Flash and 2KB RAM. The system employs a non-preemptive multitasking kernel, executing various tasks such as Power Up, Transmitter, Base, Send, and Alert tasks, each with specified periods and execution times. The CPU load for both the transmitter and base modules is calculated, ensuring efficient operation while updating scores on the LCD and triggering LED alerts.
E N D
Microcontroller • 16 MHz Bus Frequency • On Chip Resources • 60K of Flash • 4K of RAM • Require Resources • 15K of Flash • 2K of RAM
Popnet • Non-preemptive multitasking kernel • Tasks are not prioritized • Little endian • Power up • 20 ms
Tasks • Transmitter • Start task • Wait task • Send task • Base • Start task • Wait task • Alert task
Start task • Description: • Initiates the program • Period: once • Execution time: 10ms
Wait task • Transmitter Description: • Waits for a signal from the other transmitter • Period: 10ms • Execution time: 3ms • Base description: • Waits for a signal from the transmitters • Period : 6ms • Execution time : 3ms
Send task • Description: • The transmitters send a signal to the base module if a touch has occurred. • Period: 3 ms • Execution time: 1ms
Alert task • When a signal has come from the transmitters to the base, the base will update the score on the LCD and light up an LED. • Period: 3ms • Execution time: 1 ms
CPU Load • Maximum CPU load for the transmitter • L = 3/10 + 1/3 = 66% • Maximum CPU load for the base • L = 3/6 + 1/3 = 83%