EasyManua.ls Logo

Allwinner A20 - Page 115

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 115 / 812
Offset: 0x20
Register Name: TMR1_CTRL_REG
Bit
Read/
Write
Default/He
x
Description
0: No effect, 1: Reload timer 1 Interval value.
0
R/W
0x0
TMR1_EN.
Timer 1 Enable.
0: Stop/Pause, 1: Start.
If the timer is started, it will reload the interval value to internal
register, and the current counter will count from interval value to
0.
If the current counter does not reach the zero, the timer enable
bit is set to “0”, the current value counter will pause. At least wait
for 2 Tcylces, the start bit can be set to 1.
In timer pause state, the interval value register can be 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.7. TIMER 1 INTERVAL VALUE REGISTER
Offset: 0x24
Register Name: TMR1_INTV_VALUE_REG
Bit
Read/
Write
Default/H
ex
Description
31:0
R/W
x
TMR1_INTV_VALUE.
Timer 1 Interval Value.
Note: the value setting should take into consideration the system clock and the timer clock source.
1.9.3.8. TIMER 1 CURRENT VALUE REGISTER
Offset: 0x28
Register Name: TMR1_CUR_VALUE_REG
Bit
Read/
Write
Default/H
ex
Description
31:0
R/W
0x0
TMR1_CUR_VALUE.
Timer 1 Current Value.
Note: Timer 1 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).

Table of Contents