SW00ENB-ZCC Toshiba, SW00ENB-ZCC Datasheet - Page 203

no-image

SW00ENB-ZCC

Manufacturer Part Number
SW00ENB-ZCC
Description
MCU, MPU & DSP Development Tools CASEWORKS
Manufacturer
Toshiba
Datasheet

Specifications of SW00ENB-ZCC

Tool Type
Development Software Support
Core Architecture
870
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
(3) Pulse Width Measurement
Prescaler Output Clock
TB0IN0 Input
(External Clock)
Capture into TB0CP0
Capture into TB0CP1
INT5
clock is applied to the TB0IN0 pin. The up-counter (UC0) is programmed to operate as a free-
running counter, clocked by one of the prescalar outputs. The capture function is used to latch the
UC0 value into Capture Register 0 (TB0CP0) at the clock rising edge and into Capture Register 1
(TB0CP1) at the next clock falling edge. The TB0IN0 input is shared with the INT5 input; the
Interrupt Controller (INTC) is to be programmed to generate the INT5 interrupt at the falling edge
of the TB0IN0 input.
TB0CP0 and TB0CP1 gives the high pulse width of the TB0IN0 clock.
TB0CP0 and TB0CP1 is 100, the high pulse width is calculated as 0.5 s
multiplying the counter clock period by the difference between the TB0CP0 value at the first C2
and the TB0CP1 value at the second C1.
The capture function can be used to measure the pulse width of an external clock. The external
Multplying the counter clock period by the difference between the values captured into the
For example, if the prescalar output clock has a period of 0.5 s and the difference between the
The low pulse width can be measured by the second INT5 interrupt. This is accomplished by
Figure 12.21 Pulse Width Measurement
C1
TMP1940CYAF-161
C1
C2
C2
C1
TMP1940CYAF
100 = 50 s.
C2

Related parts for SW00ENB-ZCC