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.

MSPM0C1104: how many PWM be supported?

Part Number: MSPM0C1104


Hi, experts:

     As shown in <MSPM0C110x, MSPS003 Mixed-Signal Microcontrollers>, P1:

Three timers supporting up to 14 PWM channels

• One 16-bit advanced timers with deadband support up to 8 PWM channels 

but in P34, only support 8 pwm in total:

Two independent channels for TIMGx and  four independent channels for TIMAx, I'm confused about this, and in CCS Theia 1.3.1 I can only set max 8 pwm channels, can you clarify it? Thanks.

Bill

  • Hi, bill.liao

    Here is the example .syscfg file that have max 14 PWM output configuration.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/3858.timx_5F00_timer_5F00_mode_5F00_pwm_5F00_edge_5F00_sleep.syscfg

    A error that TIMA0,CC2N conflicts with the SWD interface. You need to disable the SWD interface to use this PWM normally.

    BR,

    Helic

  • Hi, Helic:

          If TIMG14 is set to 4 channels of PWM, it will come out a compile error:

    [38]"C:/ti/ccstheia131/ccs/tools/compiler/ti-cgt-armllvm_3.2.1.LTS/bin/tiarmclang.exe" -c @"syscfg/device.opt" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"C:/Users/bill.liao/workspace_ccstheia/test_pwm" -I"C:/Users/bill.liao/workspace_ccstheia/test_pwm/Debug" -I"C:/ti/mspm0_sdk_2_00_00_03/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_00_00_03/source" -gdwarf-3 -MMD -MP -MF"syscfg/ti_msp_dl_config.d_raw" -MT"syscfg/ti_msp_dl_config.o" -I"C:/Users/bill.liao/workspace_ccstheia/test_pwm/Debug/syscfg" @"syscfg/device.opt" -o"syscfg/ti_msp_dl_config.o" "syscfg/ti_msp_dl_config.c"
    [39]subdir_rules.mk:31: recipe for target 'syscfg/ti_msp_dl_config.o' failed
    [40]syscfg/ti_msp_dl_config.c:136:3: error: use of undeclared identifier 'DL_TIMERG_CAPTURE_COMPARE_2_INDEX'
    [41] DL_TIMERG_CAPTURE_COMPARE_2_INDEX);
    [42] ^
    [43]syscfg/ti_msp_dl_config.c:138:88: error: use of undeclared identifier 'DL_TIMERG_CAPTURE_COMPARE_2_INDEX'
    [44] DL_TimerG_setCaptCompUpdateMethod(PWM_0_INST, DL_TIMER_CC_UPDATE_METHOD_IMMEDIATE, DL_TIMERG_CAPTURE_COMPARE_2_INDEX);
    [45] ^
    [46]syscfg/ti_msp_dl_config.c:143:3: error: use of undeclared identifier 'DL_TIMERG_CAPTURE_COMPARE_3_INDEX'
    [47] DL_TIMERG_CAPTURE_COMPARE_3_INDEX);
    [48] ^
    [49]syscfg/ti_msp_dl_config.c:145:88: error: use of undeclared identifier 'DL_TIMERG_CAPTURE_COMPARE_3_INDEX'
    [50] DL_TimerG_setCaptCompUpdateMethod(PWM_0_INST, DL_TIMER_CC_UPDATE_METHOD_IMMEDIATE, DL_TIMERG_CAPTURE_COMPARE_3_INDEX);
    [51] ^
    [52]4 errors generated.
    [53]gmake: *** [syscfg/ti_msp_dl_config.o] Error 1
    [54]gmake: Target 'all' not remade because of errors.
    [55]**** Build Finished ****