SN32F100 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 78
Version 1.9
6.7 CT16Bn REGISTERS
Base Address: 0x4000 0000 (CT16B0)
0x4000 2000 (CT16B1)
6.7.1 CT16Bn Timer Control register (CT16Bn_TMRCTRL) (n=0,1)
Address Offset: 0x00
Note: CEN bit shall be set at last!
Bit
Name
Description
Attribute
Reset
31:2
Reserved
R
0
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
6.7.2 CT16Bn Timer Counter register (CT16Bn_TC) (n=0,1)
Address Offset: 0x04
The 16-bit Timer Counter is incremented when the Prescale Counter reaches its terminal count. 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.
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
TC[15:0]
Timer Counter
R/W
0
6.7.3 CT16Bn Prescale register (CT16Bn_PRE) (n=0,1)
Address Offset: 0x08
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
PR[15:0]
Prescale max value.
R/W
0
6.7.4 CT16Bn Prescale Counter register (CT16Bn_PC) (n=0,1)
Address Offset: 0x0C
The 16-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
Содержание SN32F107
Страница 34: ...SN32F100 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 34 Version 1 9 0 Reserved R 0...
Страница 180: ...SN32F100 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 180 Version 1 9 20 2 LQFP 64 PIN...
Страница 181: ...SN32F100 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 181 Version 1 9 20 3 LQFP 80 PIN...