SW00ENB-ZCC Toshiba, SW00ENB-ZCC Datasheet - Page 202

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
(2) Frequency Measurement
Counter Clock
(TB0IN0 Input)
TA1OUT
Capture into TB0CP0
Capture into TB0CP1
INTTA0/INTTA1
the TB0CP0. Use the INT5 interrupt to load the TB0RG1 with a sum of the TB0CP0 value (c) plus
the pulse width (p) and to enable the TB0FF0 toggle-trigger for a match between the UC0 and
TB0RG1 values. A match generates the INTTB01 interrupt, which then is to disable the TB0FF0
toggle-trigger.
measurement requires a 16-bit TMRBn channel running in event counter mode and the 8-bit
TMRA01. The timer flip-flop (TA1FF) in the TMRA01 is used to define the duration during which
a measurement is taken.
TB0MOD to 11 to select the TA1FF output signal from the TMRA01 as a capture trigger input.
This causes the TMRB0 to latch the 16-bit up-counter (UC0) value into Capture Register 0
(TB0CP0) on the low-to-high transition of the TA1FF and into Capture Register 1 (TB0CP1) on
the next high-to-low transition of the TA1FF.
frequency calculation.
seconds and the difference between the values captured into the TB0CP0 and TB0CP1 is 100, then
the TB0IN0 frequency is calculated as 100
If no delay is necessary, enable the TB0FF0 toggle-trigger for a capture of the UC0 value into
The capture function can be used to measure the frequency of an external clock. Frequency
Select the TB0IN0 pin as the clock source for the TMRB0. Set the TB0CPM[1:0] field in the
Either the INTTA0 or INTTA1 interrupt generated by the 8-bit timer can be used to make a
For example, if the TA1FF of the 8-bit timer is programmed to be at logic 1 for a period of 0.5
Counter Clock
(Prescaler Output Clock)
TB0IN0 Input
(External Trigger Pulse)
TB0RG1 Match
TB0OUT (Timer Output) Pin
Toggle is enabled for a
capture into TB0CP0.
Figure 12.19 One-Shot Pulse Generation (without a Delay)
Figure 12.20 Frequency Measurement
C1
C1
TMP1940CYAF-160
c
The UC0 value is latched into TB0CP0.
INT5 is generated.
Pulse Width
(p)
Toggle is
enabled.
0.5 s = 200 Hz.
C2
C2
c
INTTB01 is
generated.
p
Toggle is left disabled for a capture into
TB0CP1 so that it will not be toggled.
TMP1940CYAF
C1
The UC0 value is
latched into TB0CP1.
C2

Related parts for SW00ENB-ZCC