Timer V Operation Modes; Interrupt Sources; Application Examples - Renesas H8 Series Hardware Manual

8-bit single-chip microcomputer
Hide thumbs Also See for H8 Series:
Table of Contents

Advertisement

9.4.4

Timer V Operation Modes

Table 9.10 summarizes the timer V operation states.
Table 9.10 Timer V Operation States
Operation Mode
TCNTV
TCRV0, TCRV1
TCORA, TCORB
TCSRV
9.4.5

Interrupt Sources

Timer V has three interrupt sources: CMIA, CMIB, and OVI. Table 9.11 lists the interrupt sources
and their vector address. Each interrupt source can be enabled or disabled by an interrupt enable
bit in TCRV0. Although all three interrupts share the same vector, they have individual interrupt
flags, so software can discriminate the interrupt source.
Table 9.11 Timer V Interrupt Sources
Interrupt
CMIA
CMIB
OVI
9.4.6

Application Examples

Pulse Output with Arbitrary Duty Cycle: Figure 9.11 shows an example of output of pulses
with an arbitrary duty cycle. To set up this output:
• Clear bit CCLR1 to 0 and set bit CCLR0 to 1 in TCRV0 so that TCNTV will be cleared by
compare match with TCORA.
• Set bits OS3 to OS0 to 0110 in TCSRV so that the output will go to 1 at compare match with
TCORA and to 0 at compare match with TCORB.
• Set bits CKS2 to CKS0 in TCRV0 and bit ICKS0 in TCRV1 to select the desired clock source.
Reset
Active
Reset
Functions
Reset
Functions
Reset
Functions
Reset
Functions
Description
Generated from CMFA
Generated from CMFB
Generated from OVF
Sleep
Watch
Functions
Reset
Functions
Reset
Functions
Reset
Functions
Reset
Vector Address
H'0022
Rev. 6.00 Sep 12, 2006 page 229 of 526
Section 9 Timers
Sub-
Sub-
active
sleep
Reset
Reset
Reset
Reset
Reset
Reset
Reset
Reset
REJ09B0326-0600
Standby
Reset
Reset
Reset
Reset

Advertisement

Table of Contents
loading

Table of Contents