EasyManua.ls Logo

Nuvoton NuMicro MS51PC0AE - Page 296

Default Icon
491 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MS51
Nov. 28, 2019 Page 296 of 491 Rev 1.00
MS51 32K SERIES TECHNICAL REFERENCE MANUAL
CKCON Clock Control
Register
SFR Address
Reset Value
CKCON
8EH, Page0
0000_0000b
7
6
5
4
3
2
1
0
-
PWMCKS
-
T1M
T0M
T0OE
CLOEN
-
-
R/W
-
R/W
R/W
R/W
R/W
-
Bit
Name
Description
4
T1M
Timer 1 clock mode select
0 = The clock source of Timer 1 is the system clock divided by 12. It maintains standard 8051
compatibility.
1 = The clock source of Timer 1 is direct the system clock.
3
T0M
Timer 0 clock mode select
0 = The clock source of Timer 0 is the system clock divided by 12. It maintains standard 8051
compatibility.
1 = The clock source of Timer 0 is direct the system clock.
2
T0OE
Timer 0 output enable
0 = Timer 0 output Disabled.
1 = Timer 0 output Enabled from T0 pin.
Note that Timer 0 output should be enabled only when operating in its “Timer” mode.
6.5.2 Timer2 And Input Capture
Overview 6.5.2.1
Timer 2 is a 16-bit up counter cascaded with TH2, the upper 8 bits register, and TL2, the lower 8 bit
register. Equipped with RCMP2H and RCMP2L, Timer 2 can operate under compare mode and auto-
reload mode selected by CM/RL2
(T2CON.0). An 3-channel input capture module makes Timer 2
detect and measure the width or period of input pulses. The results of 3 input captures are stores in
C0H and C0L, C1H and C1L, C2H and C2L individually. The clock source of Timer 2 is from the
system clock pre-scaled by a clock divider with 8 different scales for wide field application. The clock is
enabled when TR2 (T2CON.2) is 1, and disabled when TR2 is 0. The following registers are related to
Timer 2 function.

Table of Contents

Related product manuals