AT32WB415
Series Reference Manual
2022.04.13
Page 192
Ver 2.00
14.2.4.2 Slave timer control register (TMR9_STCTRL)
Bit
Register
Reset value
Type
Description
Bit 15:7
Reserved
0x000
resd
Kept at its default value
Bit 6: 4
STIS
0x0
rw
Subordinate TMR input selection
This field is used to select the subordinate TMR input.
000: Internal selection 0 (IS0)
001: Internal selection 1 (IS1)
010: Internal selection 2 (IS2)
011: Internal selection 3 (IS3)
100: C1IRAW input detector (C1INC)
101: Filtered input 1 (C1IF1)
110: Filtered input 2 (C1IF2)
111: Reserved
Pleaser refer to
for more information on ISx for
each timer.
Bit 3
Reserved
0x0
resd
Kept at its default value
Bit 2: 0
SMSEL
0x0
rw
Subordinate TMR mode selection
000: Slave mode is disabled
001: Encoder mode A
010: Encoder mode B
011: Encoder mode C
100: Reset mode
—
Rising edge of the TRGIN input
reinitializes the counter
101: Suspend mode — The counter starts counting when
the TRGIN is high
110: Trigger mode — A trigger event is generated at the
rising edge of the TRGIN input
111: External clock mode A
—
Rising edge of the TRGIN
input clocks the counter
Note: Please refer to count mode section for details on
encoder mode A/B/C.
14.2.4.3 DMA/interrupt enable register (TMR9_IDEN)
Bit
Register
Reset value
Type
Description
Bit 15:7
Reserved
0x000
resd
Kept at its default value.
Bit 6
TIEN
0x0
rw
Trigger interrupt enable
0: Disabled
1: Enabled
Bit 5:3
Reserved
0x0
resd
Kept at its default value.
Bit 2
C2IEN
0x0
rw
Channel 2 interrupt enable
0: Disabled
1: Enabled
Bit 1
C1IEN
0x0
rw
Channel 1 interrupt enable
0: Disabled
1: Enabled
Bit 0
OVFIEN
0x0
rw
Overflow interrupt enable
0: Disabled
1: Enabled