EasyManua.ls Logo

Allwinner A20 - Page 117

Allwinner A20
812 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...
A20 User Manual (Revision 1.2) Copyright © 2013 Allwinner Technology Co., Ltd. All Rights Reserved. Page 117 / 812
Offset: 0x30
Register Name: TMR2_CTRL_REG
Bit
Read/
Write
Default/Hex
Description
modified. If the timer is started again, and the Software hope
the current value register to down-count from the new interval
value, the reload bit and the enable bit should be set to 1 at
the same time.
Note: the time between the timer disabled and enabled should be larger than 2*Tcycles(Tcycles=
Timer clock source/pre-scale).
1.9.3.10. TIMER 2 INTERVAL VALUE REGISTER
Offset: 0x34
Register Name: TMR2_INTV_VALUE_REG
Bit
Read/
Write
Default/Hex
Description
31:0
R/W
x
TMR2_INTV_VALUE.
Timer 2 Interval Value.
Note: the value setting should consider the system clock and the timer clock source.
1.9.3.11. TIMER 2 CURRENT VALUE REGISTER
Offset: 0x38
Register Name: TMR2_CUR_VALUE_REG
Bit
Read/
Write
Default/Hex
Description
31:0
R/W
0x0
TMR2_CUR_VALUE.
Timer 2 Current Value.
Note: Timer current value is a 32-bit down-counter(from interval value to 0). This register can be read
correctly if the PCLK is faster than 2*TimerFreq(TimerFreq = TimerClkSource/pre-scale).
1.9.3.12. TIMER 3 CONTROL REGISTER(DEFAULT: 0X00000000)
Offset: 0x40
Register Name: TMR3_CTRL_REG
Bit
Read/
Write
Default/Hex
Description
31:5
/
/
/.
4
R/W
0x0
TMR3_MODE.
Timer 3 mode.
0: Continuous mode. When interval value reached, the

Table of Contents