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.

MSPM0G3507: ADC triggering from TIMA0 Repeated Counter

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Hi,

Is TIMA0 Repeated Counter event valid to use to trigger ADC measurement?

It is missing in CCS syscfg, but actually works on my bench.
Is it just not full functionality of CCS syscfg interface, or it is not recommended for use?

image.png

  • Hi Serhii,

    Is TIMA0 Repeated Counter event valid to use to trigger ADC measurement?

    Yes, this is valid and requires user do some unique operation.

    Refer to the attached API to enable repeat counter features for EVENT publisher. The Sysconfig tool right now not support it.

    B.R.

    Sal

  • Hello,

    Add one more related question, known SYSCONFIG suppression repeat numbers are limited from 1 to 4, is any possible to suppress any other counts such like numbers= 50, numbers=120......, because register is 8bit and SPEC has no warning to prohabit. if possible, is any example code?

    Thanks

  • Hi EK,

    because register is 8bit and SPEC has no warning to prohabit.

    You are correct, no limitation to be smaller than 4. I will raise an internal thread to take a fix in sysconfig tools.

    Just call the API to overwrite the RCLD register value before timer start should work.

    __STATIC_INLINE void DL_Timer_setRepeatCounter(
        GPTIMER_Regs *gptimer, uint8_t repeatCount)
    {
        gptimer->COUNTERREGS.RCLD = (repeatCount);
    }

    B.R.

    Sal

  • Hello,

    Does the setting really work on ADC12 hardware block? In my application, high-frequency PWM events need to be suppressed 250 times to allow once GPIO action as well as one time CPU interruption, if really can do, that's great helpful.

    Thanks to valuable response.

  • Hi EK,

    I do not see any concerning here. Please let me know if you find any issues.

    B.R.

    Sal