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
- Summer '08
- Pixel, Liquid crystal display, Display resolution, LCD screen, Native resolution