
117
/
246
ABOV Semiconductor
16-bit Timer
Tn.CR1
Timer n Control Register 1
7.3.1
Timer Control Register 1 is 16-bit register.
Timer module should be configured properly before running. When target purpose is defined, the timer can be
configured in the Tn.CR1 register
After configuring this register, you can start or stop the timer function by Tn.CR2 register.
T0.CR1=0x4000_3000, T1.CR1=0x4000_3020
T2.CR1=0x4000_3040, T3.CR1=0x4000_3060
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SS
YNC
C
SYNC
U
A
O
O
U
TPOL
A
D
C
TR
G
EN
ST
A
R
TL
V
L
C
K
SE
L
C
LR
M
D
M
O
D
E
0
0
0
0
0
0
0
0
0
000
00
00
RW
RW
RW
RW
RW
RW
RW
RW
15
SSYNC
Synchronize start counter with other synchronized timers
0
Single counter mode
1
Synchronized counter start mode
14
CSYNC
Synchronize clear counter with other synchronized timers
0
Single counter mode
1
Synchronized counter clear mode
13
UAO
Select GRA, GRB update mode
0
Writing GRA or GRB takes effect after current period
1
Writing GRA or GRB takes effect in current period
12
OUTPOL
Timer output polarity
0
Normal output
1
Negated output
8
ADCTRGEN
ADC Trigger enable control
0
Disable adc trigger
1
Enable adc trigger at same time of GRA match
7
STARTLVL
Timer output polarity control
0
Default output level is HIGH
1
Default output level is LOW
6
4
CKSEL[2:0]
Counter clock source select
000
PCLK/2
001
PCLK/4
010
PCLK/16
011
PCLK/64
10X
MCCR3 clock setting
11X
TnIO pin input (TnIO pin must be set as input mode)
3
2
CLRMD
Clear select when capture mode
00
Rising edge clear mode
01
Falling edge clear mode
10
Both edge clear mode
11
None clear mode
1
0
MODE[1:0]
Timer operation mode control
00
Normal periodic operation mode
01
PWM mode
10
One shot mode
11
Capture mode
Summary of Contents for AC30M1x32
Page 3: ...3 246 ABOV Semiconductor INTRODUCTION SECTION 1 INTRODUCTION ...
Page 4: ...4 246 4 246 AC30M1x64 1x32 ABOV Semiconductor OVERVIEW CHAPTER 1 ...
Page 18: ...18 246 18 246 ABOV Semiconductor AC30M1x64 1x32 CPU CHAPTER 2 ...
Page 22: ...22 246 22 246 ABOV Semiconductor AC30M1x64 1x32 Boot Mode CHAPTER 3 ...
Page 26: ...26 246 26 246 ABOV Semiconductor AC30M1x64 1x32 SECTION 2 PERIPHERALS ...
Page 27: ...27 246 ABOV Semiconductor System Control Unit SCU SYSTEM CONTROL UNIT SCU CHAPTER 1 ...
Page 69: ...69 246 ABOV Semiconductor Port Control Unit PCU PORT CONTROL UNIT PCU CHAPTER 2 ...
Page 85: ...85 246 ABOV Semiconductor General Purpose I O GPIO GENERAL PURPOSE I O GPIO CHAPTER 3 ...
Page 92: ...92 246 92 246 AC30M1x64 1x32 ABOV Semiconductor FLASH MEMORY CONTROLLER CHAPTER 4 ...
Page 105: ...105 246 ABOV Semiconductor Internal SRAM INTERNAL SRAM CHAPTER 5 ...
Page 107: ...107 246 ABOV Semiconductor Watch Dog Timer WATCH DOG TIMER WDT CHAPTER 6 ...
Page 113: ...113 246 ABOV Semiconductor 16 bit Timer 16 BIT TIMER CHAPTER 7 ...
Page 129: ...129 246 ABOV Semiconductor FRT FREE RUN TIMER FRT CHAPTER 8 ...
Page 134: ...134 246 134 246 ABOV Semiconductor AC30M1x64 1x32 FUNCTION DESCRIPTION 8 3 ...
Page 135: ...135 246 UART ABOV Semiconductor UNIVERSAL ASYNCHRONOUS CHAPTER 9 RECEIVER TRANSMITTER UART ...
Page 151: ...151 246 ABOV Semiconductor UART Figure 9 6 Transmit interrupt timing diagram ...
Page 152: ...152 246 152 246 ABOV Semiconductor AC30M1x64 1x32 SERIAL PERIPHERAL INTERFACE SPI CHAPTER 10 ...
Page 164: ...164 246 164 246 ABOV Semiconductor AC30M1x64 1x32 I2 C Interface CHAPTER 11 ...
Page 185: ...185 246 ABOV Semiconductor Motor PWM MOTOR PULSE WIDTH MODULATOR CHAPTER 12 MPWM ...
Page 215: ...215 246 ABOV Semiconductor Divider DIVIDER DIV64 CHAPTER 13 ...
Page 221: ...221 246 ABOV Semiconductor 12 BIT A D Converter 12BIT A D CONVERTER CHAPTER 14 ...
Page 235: ...235 246 ABOV Semiconductor CHARACTERISTIC SECTION 3 CHARACTERISTIC ...
Page 236: ...236 246 236 246 ABOV Semiconductor AC30M1x64 1x32 Electrical Characteristic CHAPTER 1 ...
Page 243: ...243 246 ABOV Semiconductor Package Package CHAPTER 2 ...