S32K118 Power management issues

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

S32K118 Power management issues

1,119件の閲覧回数
zhaowei961
Contributor III

When the power consumption mode is switched, the receiving of the serial port is affected. The serial port uses the interrupt mode. Even the switch from RUN to RUN also affects the receiving of the serial port. What's the matter?Can anybody help me?thank you very much.

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

1,016件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi zhaowei961@163.com,

The power manager switches the system clock (in run modes) as you can see below, therefore, it does affect the performance of every peripheral, and it disables the system clock in stop modes. . 

pastedImage_2.png

pastedImage_4.png

But, if the MCU is in RUN mode already, the driver does not switch the mode:

pastedImage_5.png

Could you elaborate on how exactly it affects the LPUART in your application?

Regards,

Daniel

0 件の賞賛

1,016件の閲覧回数
zhaowei961
Contributor III

EM截图_2020218211738.png1.png2.png

0 件の賞賛

1,016件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi zhaowei961@163.com,

I see that you are disabling the interrupt before it switches to RUN.

If you want to disable interrupts before the MCU switches power modes, you can mask them.

s32_core_cm4.h

DISABLE_INTERRUPTS()

ENABLE_INTERRUPTS() 

BR, Daniel

0 件の賞賛

1,016件の閲覧回数
zhaowei961
Contributor III

   like abve code,I use uart0 interrupt in this way,after I send change power mode command  several times,uart0 goes wrong.

0 件の賞賛

1,016件の閲覧回数
zhaowei961
Contributor III

 

0 件の賞賛