
GD32L23x User Manual
393
Mode
Description
Deep-sleep2 mode
LPTIMER interrupts cause the device to exit the Deep-sleep 2
mode.
18.4.14.
Interrupts
The following events can generate an interrupt/wake-up event, if they are enabled through
the LPTIMER_INTEN register:
LPTIMER_IN1 error
LPTIMER_IN0 error
The falling and rising edges of LPTIMER_IN0 and LPTIMER_IN1 overlap error
The high level of LPTIMER_IN0 and LPTIMER_IN1 overlap error
LPTIMER_INx(x=0,1) high level counter overflow
Input high level counter max value register update interrupt
LPTIMER counter direction change up to down
LPTIMER counter direction change down to up
Counter auto reload register update
Compare value register update
External trigger edge event
Counter auto reload register match
Compare value register match
If the interrupt flag in the LPTIMER_INTF register is set before its corresponding interrupt
enable bit in the LPTIMER_INTEN register is set, the interrupt is invalid.
Table 18-5. LPTIMER interrupt events
Interrupt event
Description
LPTIMER_IN1 error
Interrupt flag is set when the signal of LPTIMER_IN1 does not
jump between the two consecutive rising edges of LPTIMER_IN0
(just used in decoder mode 1).
LPTIMER_IN0 error
Interrupt flag is set when the signal of LPTIMER_IN0 does not
jump between the two consecutive rising edges of LPTIMER_IN1
(just used in decoder mode 1).
The falling and rising edges of
LPTIMER_IN0 and LPTIMER_IN1
overlap
Interrupt flag is set when the falling edge of LPTIMER_IN0 and
the rising edge of LPTIMER_IN1 occur simultaneously or the
falling edge of LPTIMER_IN1 and the rising edge of
LPTIMER_IN0 occur simultaneously (just used in decoder mode
1).
The high level of LPTIMER_IN0
and LPTIMER_IN1 overlap
Interrupt flag is set when the high level of LPTIMER_IN0 and
LPTIMER_IN1 overlap (just used in decoder mode 1).
LPTIMER_INx(x=0,1) high level
counter overflow
Interrupt flag is set when LPTIMER_INx high level counter equal
to external input high level counter max value register
(LPTIMER_INHLCMV).
Input high level counter max value
Interrupt flag is set when the APB bus write operation to the