130 likes | 240 Views
Wireless Fencing. 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
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%