AnsweredAssumed Answered

How to create 13 PWM signals with 56F84789

Question asked by Ane Florez on Dec 15, 2016
Latest reply on Sep 12, 2017 by Ane Florez

Hi all,

I am willing to create 13 PWM signals with the MCU56F84789, using CodeWarrior v10.5. I have already created 12 signals, I use the PWMC1:PWMMC component for doing so, but as it only has 6 available channels (ch0-ch5), for creating a 13th signal, I have introduced another component PWMC2:PWMMC.

This is who part of my Events.c looks like:

void PWMC1_OnReload(void)

{

      PESL(PWMA, PWM_SM0_WRITE_VALUE_REG-,…);

      PESL(PWMA, PWM_SM1_WRITE_VALUE_REG-,…);

      PESL(PWMA, PWM_SM2_WRITE_VALUE_REG-,…);

      PWMC1_Load();

}

void PWMC2_OnReload(void)

{

      PESL(PWMA, PWM_SM3_WRITE_VALUE_REG-,…);

      PWMC2_Load();

}

It doesn’t work, but I don’t know why. Could someone help me please? Thank you in advance!

Outcomes