KL03Z: Getting into VLLS0 from VLPR?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KL03Z: Getting into VLLS0 from VLPR?

Jump to solution
525 Views
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

Labels (1)
0 Kudos
1 Solution
451 Views
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

View solution in original post

0 Kudos
2 Replies
452 Views
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 Kudos
451 Views
sarastout-grand
Contributor III

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

Sara

0 Kudos