Hello Everyone,
We are trying to design a system which has a real time clock, heart rate and a step count into it. We have used CC2650, TI RTOS, CCS 6.1, AFE 4400 and MPU 9250 and designed our own PCB using sensor tag schematics.
We stuck in the middle, Individually we are able to run all 3 sub tasks but after merging them into a single RTOS code, they hampers each other interrupts.
If system is receiving drdy interrupt of heart rate, it will not allow any other interrupt to come after 4 to 5 minutes irrespective of priority of drdyinterrupt(higher or lower than accelerometer & RTC). This can be due to the fact that the time gap between 2 Afe interrupt(drdy) is 2ms while in case of accelerometer it is 3s and in case of RTC it is 10s.
I have also tried to slow down drdy interrupt, by introducing delay inside while loop but in this case we will not able to get accurate data from process data (functions which check data is accurate or garbage), so only time and accelerometer will work since no drdy interrupt. Similar is the case when I somehow busy this drdy interrupt.
If you need any further information please do let me know and do feel free to suggest some appropriate solutions.
Regards