4Timer
17
Copyright © 2018, www.
bluetrum.com. All Rights Reserved
17
Bit
Name
Mode
Default
Description
31:0
TMRCNT
WR
0x0
Timer counter.
TMRCNT will increase when timer is enabled. It overflows when TMRCNT =
TMRPR, TMRCNT will be clear to 0x0000 when overflow, and the interrupt
flag will be set ‘1’.
Register 4-8TMR3PR/TMR4PR/TMR5PR: Timer3/4/5 period Register
Bit
Name
Mode
Default
Description
31:0
TMRPR
WR
0xffffffff
Timer period = TMRPR + 1
Register 4-9TMR3CPT/TMR4CPT/TMR5CPT: Timer3/4/5 capture value Register
Bit
Name
Mode
Default
Description
31:0
TMRCPT
R
x
Timer capture value
Register 4-10TMR3DUTY0/TMR4DUTY0/TMR5DUTY0: Timer3/4/5 pwm0 duty Register
Bit
Name
Mode
Default
Description
31:16
-
-
-
Unused
15:0
TMRDUTY0
W
x
Timer pwm0 duty
PWM0 low level length is T1
PWM 0 high level length is TMRPR-T1
Register 4-11TMR3DUTY1/TMR4DUTY1/TMR5DUTY1: Timer3/4/5 pwm1 duty Register
Bit
Name
Mode
Default
Description
31:16
-
-
-
Unused
15:0
TMRDUTY1
W
x
Timer pwm1 duty
PWM1 low level length is T1
PWM1 high level length is TMRPR-T1
Register 4-12TMR3DUTY2/TMR4DUTY2/TMR5DUTY2: Timer3/4/5 pwm2 duty Register
Bit
Name
Mode
Default
Description
31:16
-
-
-
Unused
15:0
TMRDUTY2
W
x
Timer pwm2 duty
PWM2 low level length is T1
PWM2 high level length is TMRPR-T1