Timer Functional Description - Nuvoton ISD94124BYI Technical Reference Manual

Isd arm cortex-m4f soc
Table of Contents

Advertisement

TM0
TM0_EXT
TM1
TM1
TM1_EXT
6.7.4.2 TIMER23 basic configurations
Clock source configuration
Enable TIMER2 peripheral clock in TMR2CKEN (CLK_APBCLK0[4]).
Enable TIMER3 peripheral clock in TMR2CKEN (CLK_APBCLK0[5]).
Reset configuration
Reset TIMER2 controller in TMR2RST (SYS_IPRST1[4]).
Reset TIMER3 controller in TMR3RST (SYS_IPRST1[5]).
Pin configuration
Group
Pin Name
TM2
TM2
TM2_EXT
TM3
TM3
TM3_EXT
6.7.5

Timer Functional Description

6.7.5.1
Timer Interrupt Flag
In timer mode, Timer controller can generate the two interrupts:
-
Timer Interrupt: TIF (TIMERx_INTSTS[0]) bit will be set when timer counter value CNT
(TIMERx_CNT[23:0]) matches the timer compared value CMPDAT (TIMERx_CMP[23:0]);
-
Timer External Capture Interrupt: CAPIF (TIMERx_EINTSTS[0]) bit will be set when a
transition that matches CAPEDGE (TIMERx_EXTCTL[14:12]) setting is detected on the
TMx_EXT pin.
TWKF (TIMERx_INTSTS[1]) bit will be set if a timer mode interrupt wakes up the system. Writing
1 to this bit clears the flag.
6.7.5.2
Timer Counting Mode
Timer controller provides four timer counting modes: one-shot, periodic, toggle-output and
Sep 9, 2019
ISD94100 Series Technical Reference Manual
PD.8
PD.2
PA.12
PD.9
PA.14
PD.4
PA.15
GPIO
PB.2
PD.3
PB.3
PC.2
PC.3
Page 345 of 928
MFP2
MFP5
MFP2
MFP2
MFP2
MFP5
MFP2
MFP
MFP2
MFP5
MFP2
MFP2
MFP2
Rev1.09

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents