68
7.4
Timer3
CW6632B Bluetooth 3.0 Audio Player SOC
Version 1.0.0
Copyright ©2015, www.appotech.com. All Rights Reserved.
7.4
Timer3
Timer3 is an 8-bit timer/counter with a 7-bit prescaler. It can be configured as timer, counter or PWM generator.
X
7.4.1
Timer3 Features
8bits counter
7bits pre-scaler
Counter mode (clock source from system clock or TMR3)
Capture mode (event source from CAP3)
PWM mode (PWM signal output to PWM3)
7.4.2
Timer3 Special Function Registers
Register 7-15 TMR3CON
– Timer3 control
Position
7
6
5
4
3
2
1
0
Name
T3PND
T3ES
T3M
T3IS
T3PSR
Default
0
0
0
0
0
0
0
0
Access
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
T3PND
: Timer3 Pending Flag
0 = Not Pending
1 = Pending
T3ES
: Timer3 Capture Mode Edge Select
0 = CAP3 Rising Edge
1 = CAP3 Falling Edge
T3M
: Timer3 Mode
00 = Timer3 is disabled
01 = Timer3 is enabled and works in Counter Mode
10 = Timer3 is enabled and works in PWM Mode
11 = Timer3 is enabled and works in Capture Mode
T3IS
: Timer3 Increase Source
0 = System Clock
1 = TMR3 rising edge
T3PSR
: Timer3 Prescaler
000 = Timer3 counts at every counting source event
001 = Timer3 counts at every 2 counting source events
010 = Timer3 counts at every 4 counting source events
011 = Timer3 counts at every 8 counting source events
100 = Timer3 counts at every 16 counting source events
101 = Timer3 counts at every 32 counting source events