Chapter 10: Programmable Timer/Contents
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
10-14
10.4.8 Timer Read Registers (TMTRR0, TMTRR1, TMTRR2)
The following figure and Table 10-11 detail the fields of the Timer Read Registers TMTRR0,
TMTRR1 and TMTRR2.
31
24
23
16
0
TCNT
8
8
15
0
TCNT
16
Table 10-11 Field Descriptions of Timer Read Registers TMTRRx
Bit(s)
Field
Field Name
R/W
Description
31:24
–
–
R/O
Reserved
23:0
TCNT
Timer Counter
Value
R/O
The 24-bit value is copied to this register. The count value may be
verified by reading this register. In the Preset Mode (TMTEST = 1) an
arbitrary value may be written to this register. (0x000000)
Note: The register fields marked “Reserved” are read back as zeroes, and are ignored when written to.
10.5 Programmable Timer/Counter Operation
This section describes the operation of the Programmable Timers/Counters in each of the
three modes in which they can operate. Note that not all of the operational modes are
available in every timer/counter. (See Table 10-1.)
10.5.1 Interval Timer Mode Operation
This mode is set up by setting the timer mode (TMODE) field of the timer control register
(TMTCR) to 0b00 (binary). The Counter Clock Select (CCS) bit of the TMTCR register
determines whether the internal system clock or the external clock input is selected.
Dividing down the selected (internal or external) clock by the value set up for the divisor
generates the actual clock frequency. This value is set up in the Counter Clock Divide (CCD)
field of the divider register (TMCCDR) and is activated by setting the Counter Clock Divide
Enable (CCDE) bit of the TMTCR register to “1”. The clock can be divided down by powers
of 2, ranging from 2 to 256, depending on the value in the 3-bit CCD field. (If the external
clock input is to be used, the clock edge at which the count happens is selectable by setting
up the External Clock Edge Select (ECES) field of the TMTCR register.)
When the Timer Count Enable (TCE) field of the timer control register TMTCR is set to “1”,
the 24-bit counter begins counting. When the count value reaches (i.e., matches) the value
of compare register A (TMCPRA), the Timer Interval Interrupt Status (TIIS) bit of the Timer
Interrupt status register (TMTISR) is set to “1”. At this point the interrupt control logic passes
the inverted TIIS bit as the timer interrupt request signal TMINTREQ*, driving it Low (since
TIIS* = 0), if the Timer Interval Interrupt Enable (TIIE) bit of the Interval Timer Mode Register
Содержание TMPR7901
Страница 1: ...TX System RISC TX79 Family TMPR7901 Symmetric 2 way superscalar 64 bit CPU ...
Страница 14: ...Handling Precautions ...
Страница 15: ......
Страница 17: ...1 Using Toshiba Semiconductors Safely 1 2 ...
Страница 41: ...4 Precautions and Usage Considerations 4 2 ...
Страница 42: ...TX7901 User s Manual Rev 6 30T November 2001 DOCUMENT NUMBER M 99 00004 07 ...
Страница 43: ......
Страница 259: ...Chapter 13 Removed TX7901 User s Manual Rev 6 30T Nov 2001 13 1 13 Removed ...
Страница 260: ...Chapter 13 Removed TX7901 User s Manual Rev 6 30T Nov 2001 13 2 ...