tmp88cs38ng TOSHIBA Semiconductor CORPORATION, tmp88cs38ng Datasheet - Page 63

no-image

tmp88cs38ng

Manufacturer Part Number
tmp88cs38ng
Description
Cmos 8-bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
2.5.3
Table 2.5.1 Source Clock (Internal clock) for Timer/Counter 1 (Example: at fc = 16.0 MHz)
TC1CK
Function
window, pulse width measurement.
(1) Timer mode
Example 1: Sets the timer mode with source clock fc/2
Example 2: Auto capture
00
01
10
Timer/counter 1 has five operating modes: timer, external trigger timer, event counter,
TC1DRA are compared with the contents of up counter. If a match is found, an INTTC1
interrupt is generated, and the counter is cleared to “0”. Counting up resumes after the
counter is cleared. The current contents of up counter can be transferred to TC1DRB
by setting ACAP1 (Bit6 in TC1CR) to “1” (Software capture function). (Auto-capture
function)
In this mode, counting up is performed using the internal clock. The contents of
Resolution [μs]
LDW
DI
SET
EI
LD
LD
LD
:
LD
128.0
8.0
0.5
(TC1DRA), 1E84H
(EIRL). 4
(TC1CR), 00000000B
(TC1CR), 00010000B
(TC1CR), 01010000B
:
WA, (TC1DRB)
DV1CK = 0
Maximum time
setting [s]
32.77 m
88CS38-63
NORMAL, IDLE mode
8.39
0.524
11
[Hz] and generates an interrupt 1 later (at fc = 16 MHz)
Resolution [μs]
;
;
;
;
;
;
;
256.0
16.0
Sets the timer register
(1 s ÷ 2
Enable INTTC1
Selects the source clock and mode
Starts TC1
ACAP1 ← 1 (Capture)
Wait at least one cycle of the internal source clock
Reads the capture value
1.0
DV1CK = 1
11
/fc = 1E84H)
TMP88CS38/CM38A/CP38A
Maximum time
setting [s]
16.78
65.54 m
1.049
2007-09-12

Related parts for tmp88cs38ng