TOSHIBA
TMPR3904F Rev. 2.0
213
13.4.2 Pulse generator mode
When the TMODE of the TCRn (n=2,1) is 1, it is the pulse generator mode. In the pulse
generator mode, quadrangular waves of at-will frequency and duty can be output using two
compare registers--CPRA and CPRB. (The pulse generator mode cannot be used in Timer 0.)
When the TCE of the TCRn is set to 1, the 24-bit counter starts counting. When the value set to
the CPRA and the count value match, the timer flip-flop is reversed. The output of the timer
flip-flop is output to the TMFFOUT. After having matched with the CPRAn, the counter
continues counting. When the value set to the CPRBn and the count value match, the timer flip-
flop shall be reversed to clear the counter. The CPRA must be smaller than the CPRB. The
initial status of the timer flip-flop can be set up in the flip-flop initialize (FFI) of the pulse
generator mode register (PGMRn; n=2,1).
When the count value matches the value of CPRA, a flag (“1”) is hoisted to the timer pulse
generator interrupt CPRA status (TPIAS) of the TISRn. The interrupt control logic asserts the
timer interrupt request TMINTREQ* when 1 is set to the timer pulse generator interrupt CPRA
enable (TPIAE) of the PGMRn. When 0 is set to the TPIAE, the TMINTREQ* shall not be
asserted. By writing in “0” into the TPIAS of the TISRn, the TPIAS shall be cleared and the
TMINTREQ* shall be deasserted. When the timer pulse generator interrupt CPRB enable
(TPIBE) is set to 1, a flag (“1”) shall be hoisted in the TPIBS of the TISRn when matching with
the CPRBn to assert TMINTREQ*. By writing in “0”, the TPIBS shall be cleared and the
TMINTREQ* shall be deasserted.
The counter clock can select the internal system clock and the external input clock. The
selection of the clock is conducted in the CCS of the TCRn. (Timer 0 can only be used with the
internal system clock.)
When using the internal system clock, it can be divided. The set up of the divider is conducted
by the CCD of the divider register when the CCDE of the TCRn is 1. From 2
1
to 2
8
dividing of
the internal system clock can be set up. Count operations are conducted at the rising of the
clock.
When using the external input clock, the edge of the clock can be selected in the ECES of the
TCRn.
Summary of Contents for TMPR3904F
Page 1: ...Users Manual 32bit RISC Microprocessor TX39 family TMPR3904F Rev 2 0 Jan 12 1998 ...
Page 2: ......
Page 9: ...Users Manual 01 1 INTRODUCTION 1 1 Overview ...
Page 11: ...Users Manual 03 1 3 Kind of accessing by the TX3904 ...
Page 12: ...Users Manual 04 1 4 Precautions in the TMPR3904F specification Don t set Don t use ...
Page 13: ...Users Manual 05 Do not use ...
Page 14: ...Users Manual 06 ...
Page 15: ...Users Manual 7 2 FEATURES n n n n n n n n n n n n n ...
Page 16: ...Users Manual 8 ...
Page 18: ...Users Manual 10 ...
Page 19: ...Users Manual 11 4 PINS 4 1 Positions of Pins ...
Page 20: ...Users Manual 12 ...
Page 21: ...Users Manual 13 4 2 Functions of Pins ...
Page 22: ...Users Manual 14 ...
Page 23: ...Users Manual 15 ...
Page 24: ...Users Manual 16 ...
Page 26: ...Users Manual 18 5 2 Register Map ...
Page 27: ...Users Manual 19 ...
Page 28: ...Users Manual 20 ...
Page 30: ...Users Manual 22 5 3 2 PIO2 and PIO1 ...
Page 32: ...Users Manual 24 5 3 4 Connection of external bus master 5 3 5 INT 7 0 active status clear ...
Page 33: ...Users Manual 25 5 3 6 INT 7 0 active status set up ...
Page 34: ...Users Manual 26 ...
Page 123: ...TOSHIBA TMPR3904F Rev 2 0 115 26 ...
Page 169: ...TOSHIBA TMPR3904F Rev 2 0 161 26 ...
Page 203: ...TOSHIBA TMPR3904F Rev 2 0 195 ...
Page 230: ......