Question about Leopard MPC5643L

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

Question about Leopard MPC5643L

1,428件の閲覧回数
pabloprieto
Contributor I

Hi guys,

I have a problem when I program my MPC5643L and is that all the DIOS get high level. I have two PWM that control two valves and when I program the MCU, the PWMs are activated. Any one knows if exist any configuration option to avoid this issue. I am working now in changing hardwardly the polarity of the signal, but this will be my last chance.

Any idea. Thanks in advance

Best regards

Pablo

ラベル(1)
0 件の賞賛
返信
5 返答(返信)

1,240件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

During and after reset almost all GPIO pins are in high-z state, until you configure the PCR registers, for example weak pull-down/up etc.

The PWM module control the output once the PA field in PCR register is set for PWM function and when PWM.OUTEN register  is configured. In that case the polarity of the PWM output is done by PWM.SUBx.OCTRL[POLx] bits.

Regards,

Petr

0 件の賞賛
返信

1,240件の閲覧回数
pabloprieto
Contributor I

Hi Petr,

Are you sure that During and after reset almost all GPIO pins are in high-z state, because I'm trying with a pull down and it is not working, I always obtain high level.

Regards

Pablo

0 件の賞賛
返信

1,240件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi Pablo,

The state of the pin can be checked against a Pin summary table of the device Reference manual (chapter 3.4; http://cache.freescale.com/files/32bit/doc/ref_manual/MPC5643LRM.pdf) and/or SIUL PCR register description (chapter 47.5.2.8).

Maybe the external circuitry connected to the pin pulls it high and weak internal pull-down is not enough to hold it down.

Regards,

Petr

0 件の賞賛
返信

1,240件の閲覧回数
pabloprieto
Contributor I

Hi Petrs,

We have solved the problem. We were using very weak pull down. Now with an stronger one, it works perfectly, thank you very much for your support.

Best regards

Pablo

0 件の賞賛
返信

1,240件の閲覧回数
pabloprieto
Contributor I

Thanks Petr,

I will try with a pull down.

Regards,

Pablo

0 件の賞賛
返信