Timer Registers
12-4
12.2 Timer Registers
Table 12–1 describes the three registers that configure timer operation.
Table 12–1. Timer Registers
Hex Byte Address
Timer 0
Timer 1
Name
Description
Section
01940000
01980000
Timer Control
Determines the operating mode of the timer, monitors
the timer status, and controls the function of the TOUT
pin.
12.2.1
01940004
01980004
Timer Period
Contains the number of timer input clock cycles to count.
This number controls the TSTAT signal frequency.
12.2.2
01940008
01980008
Timer Counter
Current value of the incrementing counter
12.2.3
12.2.1 Timer Control Register
Figure 12–2 shows the timer control register. Table 12–2 describes the fields
in this register.
Figure 12–2. Timer Control Register
31
12
11
10
9
8
Rsvd
TSTAT
INVINP
CLKSRC
C/P
R, +0
R, +0
RW, +0
RW, +0
RW, +0
7
6
5
4
3
2
1
0
HLD
GO
Rsvd
PWID
DATIN
DATOUT
INVOUT
FUNC
RW, +0
RW, +0
R, +0
RW, +0
RW, +0
RW, +0
RW, +0
RW, +0
Table 12–2. Timer Control Register Field Descriptions
Bitfield
Description
Section
FUNC
Function of TOUT pin
FUNC = 0: TOUT is a general-purpose output pin.
FUNC = 1: TOUT is a timer output pin.
12.6
DATOUT
Data output
When FUNC = 0: The DATOUT is driven on TOUT.
When FUNC = 1: The TSTAT is driven on TOUT after inversion by INVOUT.
12.6
DATIN
Data in: Value on TINP pin
12.5
GO
GO bit. Resets and starts the timer counter.
GO = 0: No effect on the timers.
GO = 1: If HLD = 1, the counter register is zeroed and begins counting on the next clock.
12.3