I cannot shift to Very-Low-Leakage Stop (VLLSx) mode.

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

I cannot shift to Very-Low-Leakage Stop (VLLSx) mode.

跳至解决方案
747 次查看
shuto
Contributor I

I would like to realize a standby state in VLLS1 mode on our in-house developed board using MCF51JF128, but it does not shift to VLLS1 mode.
Power consumption is equivalent to normal STOP mode. (approx. 280 µA)
The program is written in CodeWarrior (11.1).
The actual code is as follows
SMC_PMPROT |= ( SMC_PMPROT_AVLLS_MASK | SMC_PMPROT_AVLP_MASK); // AVLLS = 1 SMC_PMCTRL = SMC_PMCTRL_STOPM(4); // STOPM = '100'
SMC_VLLSCTRL = SMC_VLLSCTRL_VLLSM(1); // VLLSM = '001'
SIM_SOPT4 |= SIM_SOPT4_STOPE_MASK; // STOPE = 1
SIM_SOPT4 &= ~SIM_SOPT4_WAITE_MASK; // WAITE = 0 MTIM0_SC = 0;
asm(stop #0x2000); // same as PE_STOP()
PE_NOP();
PE_NOP();

If you search on the web, you will find documents that describe the transition by __wfi() or asm("WFI") instruction, but it causes a compile error in our environment.
Any sample or steps to move to VLLSx mode?

0 项奖励
回复
1 解答
686 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi shuto 

I don't know where you got the command of wfi? I checked the UM, here is the instruction of entering VLLSx mode:

ZhangJennie_0-1695616448417.png

You need to check Table 18-7 for the configuration before entering VLLS mode

STOP instruction usage is in derivative.h. You will see it if you create a CF V1 project

ZhangJennie_1-1695616561531.png

UM download link: https://www.nxp.com/docs/en/reference-manual/MCF51JF128RM.pdf

Have a nice day,

Jun Zhang

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
656 次查看
shuto
Contributor I

Hi ZhangJennie, thank you for contacting me.
I tried it based on the information you provided, but it still doesn't work.
After that, I decided to use another device to build a system with low power consumption, so work on this device was temporarily ended.
I would like to try the information you taught me again if I have time.
thank you very much.
shuto

0 项奖励
回复
687 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi shuto 

I don't know where you got the command of wfi? I checked the UM, here is the instruction of entering VLLSx mode:

ZhangJennie_0-1695616448417.png

You need to check Table 18-7 for the configuration before entering VLLS mode

STOP instruction usage is in derivative.h. You will see it if you create a CF V1 project

ZhangJennie_1-1695616561531.png

UM download link: https://www.nxp.com/docs/en/reference-manual/MCF51JF128RM.pdf

Have a nice day,

Jun Zhang

 

 

0 项奖励
回复