This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Monitoring slow analog signals like temperature

Other Parts Discussed in Thread: MOTORWARE

Our board has 4 temperature channels that require monitoring. As you know, the motor control loop monitors the current and voltage channels, and runs at 20 KHz.

Is there a standard way to sample slow signals separately from the 20 KHz motor control sampling? Or should I just add the 4 temperature channels to HAL_setupAdcs() and ignore most of the samples?

  • this is dicussed in the tutorials a bit

    C:\ti\motorware\motorware_1_01_00_13\docs\tutorials\motorware_hal_tutorial.pdf

    I think the *proper way* to do this to have a separate ADC sampling that you run in the background - especially for 4 channels - but you can just add to the main motor control  ADC sequence and use the values in the background task when required. Will waste a few cycles each interrupt so just be careful if you are running into MIPS limitations.