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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,637件の閲覧回数
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 件の賞賛
1 解決策
1,574件の閲覧回数
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 件の賞賛
6 返答(返信)
1,575件の閲覧回数
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 件の賞賛
1,571件の閲覧回数
547351265
Contributor II

Thanks 

0 件の賞賛
1,586件の閲覧回数
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 件の賞賛
1,632件の閲覧回数
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Zhang,

 

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

 

Best regards,

Tomas

0 件の賞賛
1,625件の閲覧回数
547351265
Contributor II

MC56F83763

Thanks for your reminder .

0 件の賞賛
1,610件の閲覧回数
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 件の賞賛