SN32F260 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 71
Version 1.5
6.7.10 CT16Bn Match register 0 (CT16Bn_MR0) (n=0)
Address Offset: 0x20
The Match register values are continuously compared to the Timer Counter (TC) value. When the two values are equal,
actions can be triggered automatically. The action possibilities are to generate an interrupt, reset the Timer Counter, or
stop the timer. Actions are controlled by the settings in the CT16Bn_MCTRL register.
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
MR[15:0]
Timer counter match value
R/W
0
6.7.11 CT16Bn Match register 0~19, 21~23 (CT16Bn_MR0~19, 21~23) (n=1)
MR 0 ~ 19:
Address Offset: 0x20, 0x24, 0x28, 0x2C, 0x30, 0x34, 0x38, 0x3C
0x40, 0x44, 0x48, 0x4C, 0x50, 0x54, 0x58, 0x5C,
0x60, 0x64, 0x68, 0x6C,
MR 21~23:
Address Offset: 0x74, 0x78, 0x7C
The Match register values are continuously compared to the Timer Counter (TC) value. When the two values are equal,
actions can be triggered automatically. The action possibilities are to generate an interrupt, reset the Timer Counter, or
stop the timer. Actions are controlled by the settings in the CT16Bn_MCTRL register.
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
MR[15:0]
Timer counter match value
R/W
0
6.7.12 CT16Bn Capture Control register (CT16Bn_CAPCTRL) (n=0)
Address Offset: 0x80
The Capture Control register is used to control whether the Capture register is loaded with the value in the
Counter/timer when the capture event occurs, and whether an interrupt is generated by the capture event. Setting both
the rising and falling bits at the same time is a valid configuration, resulting in a capture event for both edges.
Note: If Counter mode is selected in the CNTCTRL register, CAPCTRL[2:0] must be programmed as 0x0.
Bit
Name
Description
Attribute
Reset
31:4
Reserved
R
0
3
CAP0EN
Capture 0 function enable bit
0: Disable.
1: Enable. HW switches I/O Configuration directly.
R/W
0
2
CAP0IE
Interrupt on CT16Bn_CAP0 event: a CAP0 load due to a CT16Bn_CAP0
event will generate an interrupt.
0: Disable.
1: Enable.
R/W
0
1
CAP0FE
Capture on CT16Bn_CAP0 falling edge: a sequence of 1 then 0 on
CT16Bn_CAP0 will cause CAP0 to be loaded with the contents of TC.
0: Disable.
1: Enable.
R/W
0