Starting from:

$25

ECEN5013-Homework 5 Solved

[Problem 1 -] Task creation and I2C on TI TIVA 

For this problem you need to get FreeRTOS working on the TI TIVA board and be able to read temperature values from the TMP102 sensor used in project 1.

 

The requirements are

●       Create three tasks in FreeRTOS - Temperature Task, LED Task, Logger Task

●       The temperature task should read temperature values from the TMP102 sensor at a frequency of 1Hz.  

●       The temperature value read along with a timestamp should be passed as a structure to the logger task using FreeRTOS IPC mechanism.

●       The LED Task should toggle LEDs D1 and D2 on the TIVA board at a frequency of 10Hz, and pass a structure containing a time stamp, toggle count and your name to the Logger task using a FreeRTOS mechanism.

●       The logger task should receive the messages from both the above tasks and log these values to UART so that the logs can be viewed on the HOST machine.

●       You can use either TIVA hardware timers or FreeRTOS soft timers to get the required timing for the tasks and timestamps.

●       The timestamps should have millisecond resolution.

 

BONUS: Create an alert task which would be notified only when temperature goes above some​      threshold (preferably using some FreeRTOS API). This task must log some kind of alert statements to UART until temperature is out of the normal range

More products