R01UH0823EJ0100 Rev.1.00 Page 817 of 1823
Jul 31, 2019
RX23W Group 29. Low-Power Timer (LPT)
Figure 29.3 Example of Initial Settings
Start of initialization
Set the ELC
Set the interrupt controller
Set the LPWUCR.LPWKUPEN bit to 1
Set the LPTCR1.LPCMRE0 bit to 1
Set the period to the LPTPRD register
Set the compare value to the LPCMR0 register
Set the LPTCR2.LPCNTSTP bit to 0
Set the LPTCR3.LPCNTRST bit to 1
Is the LPTCR3.LPCNTRST bit 0?
End of initialization
No
Yes
• Refer to section 15, Interrupt Controller (ICUb) for details
on the corresponding interrupt vector number.
• ELOPC.LPTMD[1:0] bits: Output the compare match event
• ELSR8 register: Specify the LPT compare match event
signal
• ELCR.ELCON: Enable the ELC function
• Enable wakeup from software standby mode by using the
low-power timer
• Enable compare match 0
• Supply clock to the low-power timer
• Clear the divider and counter
Set the division ratio to the LPTCR1.LPCNTPSSEL[2:0] bits
Set the clock source of the low-power timer to the
LPTCR1.LPCNTCKSEL bit