Using Freertos Build Following System System Consist Three Tasks Keypad Task Key Pressed T Q43790144
Using FreeRTOS build the following system:
The system should consist of three tasks.
- Keypad Task
- When a key has been pressed this task should scan the keypad tofind out what key has been pressed.
- Initially do NOT use interrupts – this task should just loopand scan the keypad each time.
- It should then pass on the ascii code of the key pressed to theKey Display Task.
- Key Display Task
- When keys are pressed on the keypad this task should displaythem on the LCD.
- Once the screen is full this task should clear the screen andcontinue displaying the next pressed keys from position 0again.
- This process should happen continuously.
- Temperature task
- Using the provided ADC library this task should display thetemperature on the LCD if it changes by more than 1 degree C.
- The LCD should be cleared before displaying theTemperature.
- The Temperature should remain on the screen for 2 seconds.
- The temperature sensor (lm35) should be polled everysecond.
Other Requirements:
- The system should only react to a key press and not arelease.
- After displaying the temperature the LCD should go back to thekey press display it had before as if nothing had happened.
- If a key was pressed while the temperature was being displayedthis should be captured and be on the display when the temperaturefinishes displaying.
HINT:
- Investigate the use of an RTOS queue to send the key ascii codefrom the Keypad Task to the Key Display Task.
- Protect access to the LCD….
Expert Answer
Answer to Using FreeRTOS build the following system: The system should consist of three tasks. Keypad Task When a key has been pre…
OR