ELEC 5260 Final Project 2010

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

Info icon This 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
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern