7 years, 9 months ago.

PwmOut remap and timer

My processor is EFM32GG990F1024.

In the datasheet I saw that I can use the pin PC0 as PWMOUT. To do this I have to map TIM0_CC1 on location 4.

I thought to change the structure PinMap_PWM in the PeripheralPins.c, but I saw that the current configuration is related only to TIM2 timer.

/************PWM***************/
const PinMap PinMap_PWM[] = {
    {PA8,  PWM_CH0, 0},			/* TIM2_CC0 - LOC 0 */
    {PA9,  PWM_CH1, 0},			/* TIM2_CC1 - LOC 0 */
    {PA10, PWM_CH2, 0},			/* TIM2_CC2 - LOC 0 */
    {PA12, PWM_CH0, 1},			/* TIM2_CC0 - LOC 1 */
    {PA13, PWM_CH1, 1},			/* TIM2_CC1 - LOC 1 */
    {PA14, PWM_CH2, 1},			/* TIM2_CC2 - LOC 1 */
    {PC8,  PWM_CH0, 2},			/* TIM2_CC0 - LOC 2 */
    {PC9,  PWM_CH1, 2},			/* TIM2_CC1 - LOC 2 */
    {PC10, PWM_CH2, 2},			/* TIM2_CC2 - LOC 2 */
    {NC  , NC   , 0}
};

Therefore, I can configure the pin PC0 as PwmOut ? If so, how?

Be the first to answer this question.