Texas Instruments Tiva C-Series MCU-Based Application

developing a real-time embedded system using a Tiva C-Series MCU for a medical device. The system needs to maintain precise timing for data acquisition. How can I ensure reliable and continuous data sampling in real-time without missing data points?
1 Reply
Umesh Lokhande
Umesh Lokhande8mo ago
Hi, @embeddedshiksha39035 you can use FeeRTOS or TI-RTOS on Tiva C Series MCU. Let's say if you choose FreeRTOS then the following checklist may help you achieve reliable and continous data. * If you need a precise sample rate set up a hardware TIMER with your interval and use the TIMER interrupt to read the input pins. - Your data acquisition task must run at the highest priority configured in the FreeRTOS. If you want to guarantee the time delay. You will still have to adjust for some jitter due to task context overhead. If you use the sensor interrupt request to sample the sensor data. Interrupt latency (i.e. SYSTICK or whatever timer you use for the RTOS timebase)_ has to be taken into account for your soft timer. Callbacks inside interrupt service routines can be a killer for low latency. - You might want to look at task notifications instead of regular semaphores. Notifications require less processing time as long as it is between two tasks only. - Leverage the use of Xstreambuffer and task Notifications Hope this may help you. Best wishes!