EAGLE
PRELIMINARY
Ver 1.3
3.24.6 Timer Registers
3.24.6.1 Timer Clock Selection Register (TCSR0 / TCSR1 / TCSR2 / TCSR3)
Address : 0xFFE0_A000h / 0xFFE0_A100h / 0xFFE0_A200h / 0xFFE0_A300h
Bit
15 : 5
4
R/W
R
R/W
Description
Default Value
Reserved
-
0b
CNTCLR : Pre-scale Counter and Counter Reset
When this bit is set to ‘1’, the Timer Pre-scale counter returns to reset
state. To exit reset state, clear this bit by writing a ‘0’.
Reserved
3 : 1
0
R/W
R/W
-
0b
CLKSEL : Pre-scale Clock Selection
0 : APB clock 1 : External input clock
3.24.6.2 Timer Control Register (TCON0 / TCON1 / TCON2 / TCON3)
Address : 0xFFE0_A004h / 0xFFE0_A104h / 0xFFE0_A204h / 0xFFE0_A304h
Bit
31 : 16
15 : 14
R/W
R
R/W
Description
Default Value
Reserved
TMOD : Timer/Counter Mode
00 : Timer
-
00b
01 : PWM
1x : Capture
13
12
R
R
Reserved
(Capture mode only)
-
0b
OVST : Capture Overflow Status bit
11
10 : 8
R/W
R/W
Reserved
(Capture mode only)
-
000b
CAPMOD : Capture Mode Selection
00x : Low/High Pulse Capture mode
010 : Low Pulse Capture mode
011 : High Pulse Capture mode
10x : Failing to Failing Period Capture mode
11x : Rising to Rising Period Capture mode
Reserved
(PWM mode only) PWM Output Start Level
PWML : PWM Output Start Level
0 : Start Level is Low
7 : 6
5
R
R/W
-
0b
1 : Start Level is High
4
R/W
R/W
(Timer mode only)
WAVE : Waveform Generation
0b
0 : Disable
1 : Enable
3 : 1
PFSEL : Pre-scale Factor Selection (10bit pre-scale)
111b
000 : clock / 2
010 : clock / 8
100 : clock / 64
110 : clock / 256
TMEN : Timer Counter Enable
0 : Disable
001 : clock / 4
011 : clock / 32
101 : clock / 128
111 : clock / 1024
0
R/W
0b
1 : Enable
Beijing Peak Microtech Co.Ltd.
CONFIDENTIAL
186