HD64336901G Renesas Technology, HD64336901G Datasheet - Page 176

no-image

HD64336901G

Manufacturer Part Number
HD64336901G
Description
(HD64xxx Series) 16-BIT MICROCONTROLLER
Manufacturer
Renesas Technology
Datasheet
11.5.2
The trigger function can be used to output a pulse with an arbitrary pulse width at an arbitrary
delay from the TRGV input, as shown in figure 11.10. To set up this output:
1. Set bits CCLR1 and CCLR0 in TCRV0 so that TCNTV will be cleared by compare match with
2. Set bits OS3 to OS0 in TCSRV so that the output will go to 1 at compare match with TCORA
3. Set bits TVEG1 and TVEG0 in TCRV1 and set TRGE to select the falling edge of the TRGV
4. Set bits CKS2 to CKS0 in TCRV0 and bit ICKS0 in TCRV1 to select the desired clock source.
5. After these settings, a pulse waveform will be output without further software intervention,
Rev. 1.00, 11/03, page 148 of 376
TCORB.
and to 0 at compare match with TCORB.
input.
with a delay determined by TCORA from the TRGV input, and a pulse width determined by
(TCORB to TCORA).
Pulse Output with Arbitrary Pulse Width and Delay from TRGV Input
H'FF
TCORB
TCORA
H'00
TRGV
TMOV
Figure 11.10 Example of Pulse Output Synchronized to TRGV Input
TCNTV value
Compare match A
Compare match B
clears TCNTV and
halts count-up
Counter cleared
Compare match A
Compare match B
clears TCNTV and
halts count-up
Time

Related parts for HD64336901G