Part Number: SENSOR-CONTROLLER-STUDIO
Other Parts Discussed in Thread: CC2650STK
Hi,
I try to use cc2650stk sensortag with cc debugger devpack to sample a square wave signal that around 30kHz. Currently, I use sensor controller studio for testing codes, which is shown below,
// Select ADC input
adcSelectGpioInput(AUXIO_A_SENSOR_OUTPUT);
// Schedule the first execution
fwScheduleTask(1);
// Enable the ADC (fixed reference, 2.7 us sample time, manual trigger)
adcEnableSync(ADC_REF_VDDS_REL, ADC_SAMPLE_TIME_2P7_US, ADC_TRIGGER_MANUAL);
// Sample the sensor and store the ADC value
adcGenManualTrigger();
adcReadFifo(output.adcValue);
// Disable the ADC
adcDisable();
// Schedule the next execution
fwScheduleTask(1);
Then, I use the Task Testing module in Sensor Controller studio to monitoring "output.adcValue" and export about the 1000 output variables by using "save post-iteration vectors".
However, when I do FFT in Matlab for the exported data, the results do not show any main frequency components. Is it because the task testing will affect the sampling period of ADC (display the output.adcValue first, then doing sampling)?