Hi,
Please find attached a demo for KL05 showing how to configure CPU and LPTMR using the Processor Expert to go to VLLS1 mode and then wake up by LPTMR. LPTMR is configured using TimerUnit_LDD component and it's set to use internal LPO 1kHz clock which is running in VLLS1-3.
See the PDF file in the archive with the description of the settings.
If you would like to use VLLS0 you would need to provide external clock and change the settings in the CPU and TimerUnit component configuring LPTMR that this external clock is used.
Tha KL05 manual says: "The LPTMR can be clocked from the internal reference clock, the internal 1 kHz LPO,
OSCERCLK, or an external 32.768 kHz crystal. In VLLS0 mode, the clocking option is
limited to an external pin with the OSC configured for bypass (external clock) operation."
Just a note - in all VLLS modes the processor resets and re-initializes completely because SRAM content is not preserved.
If you don't want to go through reset, you can use LLS mode instead, for example LLS0.
best regards
Petr Hradsky
Processor Expert Support Team