eorex
EU1010
Figure_C
Timer1
Address
Name
06H
bit7
1/0
R/W
#
bit6
1/0
R/W
#
bit5
bit4
1/0
R/W
#
bit3
1/0
R/W
#
bit2
1/0
R/W
#
bit1
1/0
R/W
#
bit0
T1BF0
1/0
R/W
#
1/0
R/W
#
Read or Write
Default Value
Address
Name
07H
bit7
1/0
R/W
#
bit6
1/0
R/W
#
bit5
1/0
R/W
#
bit4
1/0
R/W
#
bit3
1/0
R/W
#
bit2
1/0
R/W
#
bit1
1/0
R/W
#
bit0
1/0
R/W
#
T1BF1
Read or Write
Default Value
Timer1 is a 16-bit down count timer. T1BF0(06H)/low byte and T1BF1(07H)/high byte are timer1 preload
buffer. Timer1 clock source could come from CPU main oscillator (Fosc), refer to figure_D. Timer1 can
work in two kinds of operating mode. One mode is normal 16-bit timer/counter mode and the other one is
specially designed for different interrupt time period.
Figure_D
Timer/counter mode
If T1C.4 (08H.4)=PWM1=0, timer1 works as 16-bit timer/counter mode, register timer1 will down count
by every input clock when timer1 turns on by T1EN=1. When timer1 is down count from 0000H to FFFFH,
T1F bit will be set to “1”. At the same time, if T1INT=1, the timer1 interrupt occurs. Timer1 will
automatically reload data from preload buffer T1BF0(06H) and T1BF1(07H). Therefore, user can preset
T1BF0(06H) and T1BF1(07H) buffer data before different interrupt time duties caused by timer1
Feb.2009
www.eorex.com
11/21