94
TOSHIBA CORPORATION
TMP96C141AF
➀
Up-counter (UC4/UC5)
UC4/UC5 is a 16-bit binary counter which counts up
according to the input clock specified by T4MOD
<T4CLK1, 0> or T5MOD <T5CLK1, 0> register.
As the input clock, one of the internal clocks
φ
T1 (8/
fc),
φ
T4 (32/fc), and
φ
T16 (128/fc) from 9-bit prescaler
(also used for 8-bit timer), and external clock from TI4 pin
(also used as P80/INT4 pin) or TI6 (also used as P84/
INT6 pin) can be selected. When reset, it will be initialized
to <T4CLK1, 0>/<T5CLK1, 0> = 00 to select TI4/TI6
input mode. Counting or stop and clear of the counter is
controlled by timer operation control register TRUN
<T4RUN, T5RUN>.
When clearing is enabled, up-counter UC4/UC5 will
be cleared to zero each time it coincides matches the
TREG4
TREG5
Upper 8 bits
Lower 8 bits
Upper 8 bits
Lower 8 bits
000031H
000030H
000033H
000032H
TREG6
TREG7
Upper 8 bits
Lower 8 bits
Upper 8 bits
Lower 8 bits
000041H
000040H
000043H
000042H
timer register TREG5, TREG7. The “clear enable/disable”
is set by T4MOD <CLE> and T5MOD <CLE>.
If clearing is disabled, the counter operates as a free-
running counter.
➁
Timer Registers
These two 16-bit registers are used to set the interval
time. When the value of up-counter UC4/UC5 matches
the set value of this timer register, the comparator match
detect signal will be active.
Setting data for timer register (TREG4, TREG5,
TREG6 and TREG7) is executed using 2 byte date trans-
fer instruction or using 1 byte date transfer instruction
twice for lower 8 bits and upper 1 bits in order.
TREG4 and TREG6 timer register is of double buffer
structure, which is paired with register buffer. The timer
control register T45CR <DB4EN, DB6EN> controls
whether the double buffer structure should be enabled or
disabled. : disabled when <DB4EN, DB6EN> = 0, while
enabled when <DB4EN, DB6EN> = 1.
When the double buffer is enabled, the timing to
transfer data from the register buffer to the timer register
is at the match between the up-counter (UC4/UC5) and
timer register TREG5/TREG7.
When reset, it will be initialized to <DB4EN, DB6EN>
= 0, whereby the double buffer is disabled. To use the
double buffer, write data in the timer register, set
<DB4EN, DB6EN> = 1, and then write the following data
in the register buffer.
TREG4, TREG6 and register buffer are allocated to
the same memory addresses 000030H/000031H/
0000400H/000041H. When <DB4EN, DB6EN> = 0,
same value will be written in both the timer register and
register buffer. When <DB4EN, DB6EN> = 1, the value is
written into only the register buffer.
➂
Capture Register
These 16-bit registers are used to hold the values of
the up-counter.
Data in the capture registers should be read by a 2-
byte data load instruction or two 1-byte data load instruc-
tion, from the lower 8 bits followed by the upper 8 bits.
➃
Capture Input Control
This circuit controls the timing to latch the value of
up-counter UC4/UC5 into (CAP1, CAP2)/(CAP3, CAP4).
CAP 1
CAP 2
Upper 8 bits
Lower 8 bits
Upper 8 bits
Lower 8 bits
000035H
000034H
000037H
000036H
CAP 3
CAP 4
Upper 8 bits
Lower 8 bits
Upper 8 bits
Lower 8 bits
000045H
000044H
000047H
000046H
The latch timing of capture register is controlled by regis-
ter T4MOD <CAP12M1, 0>/T5MOD <CAP34M1, 0>.
• When T4MOD <CAP12M1, 0>/T5MOD
<CAP34M1, 0> = 00
Capture function is disabled. Disable is the
default on reset.
Summary of Contents for TLCS-900 Series
Page 2: ...2 TOSHIBA CORPORATION TMP96C141AF Figure 1 TMP96C141AF Block Diagram ...
Page 10: ...10 TOSHIBA CORPORATION TMP96C141AF Figure 3 3 1 Interrupt Processing Flowchart ...
Page 17: ...TOSHIBA CORPORATION 17 TMP96C141AF Figure 3 3 3 1 Block Diagram of Interrupt Controller ...
Page 18: ...18 TOSHIBA CORPORATION TMP96C141AF 1 Interrupt Priority Setting Register ...
Page 19: ...TOSHIBA CORPORATION 19 TMP96C141AF 2 External Interrupt Control ...
Page 26: ...26 TOSHIBA CORPORATION TMP96C141AF Port 0 Register Figure 3 5 3 Registers for Ports 0 and 1 ...
Page 28: ...28 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 5 Registers for Port 2 ...
Page 30: ...30 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 6 Port 3 P30 P31 P32 P35 P36 P37 ...
Page 31: ...TOSHIBA CORPORATION 31 TMP96C141AF Figure 3 5 7 Port 3 P33 P34 ...
Page 34: ...34 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 9 Port 4 ...
Page 38: ...38 TOSHIBA CORPORATION TMP96C141AF Port 6 Register Figure 3 5 14 Registers for Port 6 ...
Page 40: ...40 TOSHIBA CORPORATION TMP96C141AF Figure 3 5 16 Registers for Port 7 ...
Page 43: ...TOSHIBA CORPORATION 43 TMP96C141AF Figure 3 5 19 Registers for Port 8 ...
Page 47: ...TOSHIBA CORPORATION 47 TMP96C141AF Figure 3 5 24 Registers for Port 9 ...
Page 55: ...TOSHIBA CORPORATION 55 TMP96C141AF Figure 3 7 1 Block Diagram of 8 Bit Timers Timers 0 and 1 ...
Page 58: ...58 TOSHIBA CORPORATION TMP96C141AF Figure 3 7 4 Timer Operation Control Register TRUN ...
Page 59: ...TOSHIBA CORPORATION 59 TMP96C141AF Figure 3 7 5 Timer Mode Control Register TMOD ...
Page 60: ...60 TOSHIBA CORPORATION TMP96C141AF Figure 3 7 6 Timer Flip Flop Control Register TFFCR ...
Page 74: ...74 TOSHIBA CORPORATION TMP96C141AF Figure 3 8 4 8 Bit PWM0 Mode Control Register ...
Page 75: ...TOSHIBA CORPORATION 75 TMP96C141AF Figure 3 8 5 8 Bit PWM1 Mode Control Register ...
Page 76: ...76 TOSHIBA CORPORATION TMP96C141AF Figure 3 8 6 8 Bit PWM F F Control Register ...
Page 77: ...TOSHIBA CORPORATION 77 TMP96C141AF Figure 3 8 7 Timer Operation Control Register TRUN ...
Page 85: ...TOSHIBA CORPORATION 85 TMP96C141AF Figure 3 9 1 Block Diagram of 16 Bit Timer Timer 4 ...
Page 86: ...86 TOSHIBA CORPORATION TMP96C141AF Figure 3 9 2 Block Diagram of 16 Bit Timer Timer 5 ...
Page 88: ...88 TOSHIBA CORPORATION TMP96C141AF Figure 3 9 4 16 Bit Controller Register T4MOD 2 2 ...
Page 89: ...TOSHIBA CORPORATION 89 TMP96C141AF Figure 3 9 5 16 Bit Timer 4 F F Control T4FFCR ...
Page 90: ...90 TOSHIBA CORPORATION TMP96C141AF Figure 3 9 6 16 Bit Timer Mode Control Register T5MOD 1 2 ...
Page 91: ...TOSHIBA CORPORATION 91 TMP96C141AF Figure 3 9 7 16 Bit Timer Control Register T5MOD 2 2 ...
Page 104: ...104 TOSHIBA CORPORATION TMP96C141AF Figure 3 10 2a Pattern Generation Control Register PG01CR ...
Page 105: ...TOSHIBA CORPORATION 105 TMP96C141AF Figure 3 10 2b Pattern Generation Control Register PG01CR ...
Page 107: ...TOSHIBA CORPORATION 107 TMP96C141AF Figure 3 10 5 16 bit Timer Trigger Control Register T45CR ...
Page 140: ...140 TOSHIBA CORPORATION TMP96C141AF Figure 3 12 2 A D Control Register ...
Page 148: ...148 TOSHIBA CORPORATION TMP96C141AF Figure 3 13 4 Watchdog Timer Mode Register ...
Page 149: ...TOSHIBA CORPORATION 149 TMP96C141AF Figure 3 13 5 Watchdog Timer Control Register ...
Page 153: ...TOSHIBA CORPORATION 153 TMP96C141AF 1 Read Cycle ...
Page 154: ...154 TOSHIBA CORPORATION TMP96C141AF 2 Write Cycle ...
Page 157: ...TOSHIBA CORPORATION 157 TMP96C141AF 4 8 Timing Chart for I O Interface Mode ...
Page 171: ...TOSHIBA CORPORATION 171 TMP96C141AF 8 Interrupt Control 1 2 ...
Page 175: ...TOSHIBA CORPORATION 175 TMP96C141AF P42 CS2 CAS2 P5 AN0 3 P87 INT0 P90 TXD0 P93 TXD1 ...
Page 176: ...176 TOSHIBA CORPORATION TMP96C141AF NMI WDTOUT CLK EA AM8 16 ALE RESET ...
Page 177: ...TOSHIBA CORPORATION 177 TMP96C141AF X1 X2 VREF AGND ...