MPC5746C : Stop mode entry

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5746C : Stop mode entry

1,234 次查看
neojung
NXP Employee
NXP Employee

Hello Sir,

 

During testing STOP mode entry/exit on MPC5746C(Maskset : 1N06M), I found that device can't enter to STOP mode when a SPI channel is configured as slave.

 

===> Here is failure mode...

DSPI_2.MCR.R = 0x00010001;
DSPI_2.MODE.CTAR_SLAVE[0].R = 0x38000000;

MC_ME.MCTL.R = 0xA0005AF0; /* Enter STOP mode and key */
MC_ME.MCTL.R = 0xA000A50F; /* Enter STOP mode and inverted key */
while (MC_ME.GS.B.S_MTRANS) {} /* Wait for STOP mode transition to complete */ ==> stuck at here

 

===> I found a workaround...

DSPI_2.MCR.R = 0x00010001;
DSPI_2.MODE.CTAR_SLAVE[0].R = 0x38000000;

DSPI_2.MCR.R = 0x80010001; /////////////////////////////////////////////////////////workaround

MC_ME.MCTL.R = 0xA0005AF0; /* Enter STOP mode and key */
MC_ME.MCTL.R = 0xA000A50F; /* Enter STOP mode and inverted key */
while (MC_ME.GS.B.S_MTRANS) {} /* Wait for STOP mode transition to complete */

 

 

Anyway, I found a workaround and it was reconfigure it's mode as SPI master.

Is this phenomenon is expected working?

Hope to receive any feedback!

 

Best regards,

Neo

标签 (1)
0 项奖励
回复
1 回复

1,032 次查看
martin_kovar
NXP Employee
NXP Employee

Hi Neo,

I tested this use case with MPC5775K and the behavior is the same. I had searched reference manual, but I did not find any notice about switching (D)SPI to master mode when you want to switch micro to stop mode.

When I have more time, I will try to investigate this behavior deeper and eventually contact application engineers and them about this point.

Regards,

Martin

0 项奖励
回复