tmp1941af TOSHIBA Semiconductor CORPORATION, tmp1941af Datasheet - Page 160

no-image

tmp1941af

Manufacturer Part Number
tmp1941af
Description
32-bit Tx System Risc
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP1941AF
Manufacturer:
TOSHIBA
Quantity:
48
Part Number:
TMP1941AF
Quantity:
4
Part Number:
tmp1941af(Z)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
11.4 Operating Modes
11.4.1
8-Bit Interval Timer Mode
Programming these timers should only be attempted when the timers are not running.
(1) Generating Periodic Interrupts
The TMRA0 and the TMRA1 can be independently programmed as 8-bit interval timers.
stop the TMRA1 (if it is running). Then, set the operating mode, clock source and interrupt interval
in the TA01MOD and TA1REG registers. Then, enable the INTTA1 interrupt and start the
TMRA1.
X = Don’t care,
In the following example, the TMRA1 is used to accomplish periodic interrupt generation. First,
Example: Generating the INTTA1 interrupt at a 20-µs interval (fc = 32 MHz)
Refer to Table 11.2 when selecting a timer clock source.
Note:
TA01RUN
TA01MOD
TA1REG
IMC5LH
TA01RUN
Clocking conditions:
System clock:
Prescaler clock:
The clock inputs to the TMRA0 and the TMRA1 can be one of the following:
TMRA0: TA0IN input, φ φ φ φ T1, φ φ φ φ T4 or φ φ φ φ T16
TMRA1: Match-detect signal from the TMRA0, φ φ φ φ T1, φ φ φ φ T16 or φ φ φ φ T256
MSB
– = No change
7
0
0
X
6
0
1
X
X
5
X
X
0
1
X
TMP1941AF-120
High-speed (fc)
fperiph/4 (fperiph = fsys)
4
X
X
1
1
X
3
1
0
0
2
0
0
1
1
1
0
X
0
0
1
LSB
0
X
0
1
Stops and clears the TMRA1.
Selects 8-bit interval timer mode and
φT1 as the clock source (which provides a 0.2-
µs resolution @fc = 40 MHz.)
Sets the time constant value in the TA1REG.
20 µs ÷ φT1 = 80 (50H)
Enables INTTA1 and sets the interrupt level to
5. INTTA1 must always be programmed to be
rising-edge triggered.
Starts the TMRA1.
TMP1941AF
2003-03-27

Related parts for tmp1941af