EasyManua.ls Logo

Allwinner A20 - Page 120

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 120 / 812
1) if the clock source is external CLKIN, the interval value register is not used, the current value
register is an up counter that counting from 0;
2) the time between the timer disabled and enabled should be larger than 2*Tcycles(Tcycles= Timer
clock source/pre-scale).
1.9.3.15. TIMER 4 INTERVAL VALUE REGISTER
Offset: 0x54
Register Name: TMR4_INTV_VALUE_REG
Bit
Read/
Write
Default/Hex
Description
31:0
R/W
x
TMR4_INTV_VALUE.
Timer 4 Interval Value.
Note: the value setting should take the system clock and the timer clock source into consideration.
1.9.3.16. TIMER 4 CURRENT VALUE REGISTER
Offset: 0x58
Register Name: TMR4_CUR_VALUE_REG
Bit
Read/
Write
Default/Hex
Description
31:0
R/W
x
TMR4_CUR_VALUE.
Timer 4 Current Value.
Note:
1) 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);
2) Before the timer 4 is enabled, the timer 4 current value register needs to be written with zero.
1.9.3.17. TIMER 5 CONTROL REGISTER(DEFAULT: 0X00000004)
Offset: 0x60
Register Name: TMR5_CTRL_REG
Bit
Read/
Write
Default/Hex
Description
31:8
/
/
/.
7
R/W
0x0
TMR5_MODE.
Timer 5 mode.
0: Continuous mode. When interval value reached, the timer
will not disable automatically.
1: Single mode. When interval value reached, the timer will
disable automatically.
6:4
R/W
0x0
TMR5_CLK_PRES.

Table of Contents