ELEC 5260 Final Project 2010

ELEC 5260 Final Project 2010 - resource. • Task T4:...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ELEC 5260 Final Project Due Monday, May 3, 2010 (50 points) Exercise the ARM/Keil RTX Real-Time Executive on the uCdragon board, demonstrating it with the following application (similar to the Mentor Graphics “Nucleus” example from class.) Task T1: Via a mailbox, send a message every 10 seconds to Task T2. The message is to be the square of the number of messages sent thus far. Display the number of messages sent on the LCD. When the message count reaches 20, reset the message count to 0 (to keep the squares from becoming too large.) Task T2: Receive messages from Task T1 and on the LCD display the most recent message. This process should wait and execute only when a message is received. Task T3: Display and increment a number once per second on the LCD, beginning at 0, for a period of 20 seconds. The “counter” should be considered a resource that needs to be locked by acquiring a semaphore, which is to be released at the end of the count. This will ensure that only T3 is changing the count. Task T4 is to use this same semaphore and
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: resource. • Task T4: Display and decrement a number once per second on the LCD, beginning at 20, until the count reaches 0. This is the same “counter” resource used by task T3, and therefore needs to be locked by acquiring the semaphore and then releasing it at the end of the count. • Task T5: Signal an “event” to task T6 every 30 seconds and display the number of events signaled on the LCD. • Task T6: Display on the LCD the number of detected “events” signaled by task T5. For example, the LCD screen should look like the following after five message have been sent and received, one of either P3/P4 at a count of 15, and with P5 having signaled P6 8 times. Msgs sent = 5 Last msg received = 25 Counter = 15 Events signaled = 8 Events detected = 8 RTX mailbox functions are to be used to send and receive messages. RTX semaphore functions are to be used to control access to the counter resource. RTX event functions are to be used to signal and detect events....
View Full Document

This note was uploaded on 09/23/2011 for the course ELEC 6260 taught by Professor Nelson,v during the Summer '08 term at Auburn University.

Ask a homework question - tutors are online