SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 122
Version 1.1
10: ELS X’TAL
11: Reserved
1
CRST
Counter Reset.
0: Disable counter reset.
1: Timer Counter and the Prescale Counter are synchronously reset on
the next positive edge of PCLK. This is cleared by HW when the counter
reset operation finishes.
R/W
0
0
CEN
Counter Enable
0: Disable Counter.
1: Enable Timer Counter and Prescale Counter for counting.
R/W
0
10.8.4 CT16Bn Timer Counter register (CT16Bn_TC) (n=0,1,2,3,4,5)
Address Offset: 0x04
In Edge-aligned up-counting mode (CM[2:0]=000b), unless it is reset before reaching its upper limit, the TC will count up
to the value 0x0000FFFF and then wrap back to the value 0x00000000. This event does not cause an interrupt, but a
Match register can be used to detect an overflow if needed.
In Edge-aligned down-counting mode (CM[2:0]=001b) , the TC[15:0] should be reset to the value of CT16Bn_MR3 after
resetting counter (SW set CRST to 1).
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
TC[15:0]
Timer Counter
R/W
0
10.8.5 CT16Bn Prescale register (CT16Bn_PRE) (n=0,1,2,3,4,5)
Address Offset: 0x08
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
PR[15:0]
Prescale max value.
R/W
0
10.8.6 CT16Bn Prescale Counter register (CT16Bn_PC) (n=0,1,2,3,4,5)
Address Offset: 0x0C
The 8-bit Prescale Counter controls division of PCLK by some constant value before it is applied to the Timer Counter.
This allows control of the relationship between the resolution of the timer and the maximum time before the timer
overflows. The Prescale Counter is incremented on every PCLK. When it reaches the value stored in the Prescale
Register, the Timer Counter is incremented, and the Prescale Counter is reset on the next PCLK. This causes the TC to
increment on every PCLK when PR = 0, every 2 PCLKs when PR = 1, etc.
Bit
Name
Description
Attribute
Reset
31:8
Reserved
R
0
7:0
PC[7:0]
Prescale Counter
R/W
0
10.8.7 CT16Bn Count Control register (CT16Bn_CNTCTRL) (n=0,1,2,3,4,5)
Address Offset: 0x10
This register is used to select between Timer and Counter mode, and in Counter mode to select the pin and edges for
counting.
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...