Part Number: TMS320F280049C
Tool/software: Code Composer Studio
I am using the TI CLA code example "cla_ex1_background_task" project to model my code. Task7 is a one time initialization task which work fine. Task1 is a data acquisition task which will read a sample from an external ADC whne the hardware is ready. Currently I am generating a data sample in Task1. Task8 is a Background Task that processes the data acquired in Task1. The Background Task is interrupted by Task1 every 33.3.uS. The structure of the Background Task is a While loop with an if statement as such:
while(1)
{
If (dataready) //dataready is set in Task1 when a sample is read/generated
{
my processing code here (not sophisticated). There are some while loop conditional statements that are also not working.
}
}
This code does not work. No matter what the state of the "dataready" variable is, the code falls through the if statement. Maybe interrupting the Background Task is causing the problem?
The dataready variable is a global CLA variable. When I purposely set dataready to false/0, it still falls through. Anyone have any ideas. I'm missing something. I have the algorithm working in CPU code. Are there limitations in CLA code that I am not aware of?
Thanks
Steve Hadad
Ametek Aerospace