KL03Z: Getting into VLLS0 from VLPR?

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

KL03Z: Getting into VLLS0 from VLPR?

ソリューションへジャンプ
1,415件の閲覧回数
sarastout-grand
Contributor III

Hello,

I'm having trouble getting from VLPR mode, where I stay most of the time, to VLLS0 mode. However, I read in the user's manual that the PMPROT register can only be written once. I would need to write to it to get to VLPR and then again to get into VLLS0.

Is there a way around this or am I misunderstanding the manual?

Thanks,

Sara

ラベル(1)
0 件の賞賛
返信
1 解決策
1,341件の閲覧回数
mjbcswitzerland
Specialist V

Sara

PMPROT is a protection register and not a control register. If you want to 'allow' all low power modes you can simply write it once after each reset to allow all of the modes that you will be using.

Eg.

MC_PMPROT = (MC_PMPROT_AVLP | MC_PMPROT_ALLS | MC_PMPROT_AVLLS1 | MC_PMPROT_AVLLS2 | MC_PMPROT_AVLLS3); // allow all low power modes

Regards

Mark

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,342件の閲覧回数
mjbcswitzerland
Specialist V

Sara

PMPROT is a protection register and not a control register. If you want to 'allow' all low power modes you can simply write it once after each reset to allow all of the modes that you will be using.

Eg.

MC_PMPROT = (MC_PMPROT_AVLP | MC_PMPROT_ALLS | MC_PMPROT_AVLLS1 | MC_PMPROT_AVLLS2 | MC_PMPROT_AVLLS3); // allow all low power modes

Regards

Mark

0 件の賞賛
返信
1,341件の閲覧回数
sarastout-grand
Contributor III

Thanks Mark! I wasn't thinking about it that way. That makes a lot of sense!

Sara

0 件の賞賛
返信