PWM23(Output polarity Inverted) channel masked,PWM23 output 1.Can PWM23 output 0?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM23(Output polarity Inverted) channel masked,PWM23 output 1.Can PWM23 output 0?

Jump to solution
1,618 Views
547351265
Contributor II

PWM23(Output polarity Inverted) channel masked,PWM23 output 1.

Can PWM23 output 0 ( PWM23 Output polarity Inverted & channel masked )?

And what should I do ?

Thanks.

0 Kudos
1 Solution
1,555 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls refer to the above figure, in default, the POLA bit is cleared, in the case, if you set the MASK bit, PWM_A output signal will be logic 0.

If the POLA is set, in the case, if you set the MASK bit, PWM_A output signal will be logic 1.

The only way I think is that you clear the IPOL bit before you set mask bit so that the PWM_A output signal will be logic 0 after masking.

Hope it can help you

BR

XiangJun Rong

xiangjun_rong_0-1606290302376.png

 

 

 

 

 

 

View solution in original post

0 Kudos
6 Replies
1,556 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls refer to the above figure, in default, the POLA bit is cleared, in the case, if you set the MASK bit, PWM_A output signal will be logic 0.

If the POLA is set, in the case, if you set the MASK bit, PWM_A output signal will be logic 1.

The only way I think is that you clear the IPOL bit before you set mask bit so that the PWM_A output signal will be logic 0 after masking.

Hope it can help you

BR

XiangJun Rong

xiangjun_rong_0-1606290302376.png

 

 

 

 

 

 

0 Kudos
1,552 Views
547351265
Contributor II

Thanks 

0 Kudos
1,567 Views
547351265
Contributor II

Thanks for your advice .

when set  PWM1A  Output polarity Inverted:

PWMA->SM1OCTRL |=0X0400; // PWM1A  Output polarity Inverted

We write the MASK register to mask the PWM signals .

The PWM1A output always high ( 1 logic ).

 

 

0 Kudos
1,613 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Zhang,

 

Could you please specify which part number is your question related to?

 

Best regards,

Tomas

0 Kudos
1,606 Views
547351265
Contributor II

MC56F83763

Thanks for your reminder .

0 Kudos
1,591 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Zhang,

Of course, you can write the MASK register to mask the PWM signals. If you want to update the PWM signals immediately after you write, pls set the corresponding UPDATE_MASK bit, then write the corresponding MASKA, MASKB or MASKX, the corresponding PWMA_xA, PWMA_xB, PWMA_xX will update immediately.

Hope it can help you

BR

XiangJun Rong

 

 

xiangjun_rong_0-1606100598857.png

 

0 Kudos