HD6412340 HITACHI [Hitachi Semiconductor], HD6412340 Datasheet - Page 402

no-image

HD6412340

Manufacturer Part Number
HD6412340
Description
H8S/2345 F-ZTAT Hardware Manual
Manufacturer
HITACHI [Hitachi Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6412340TE20
Manufacturer:
SANYO
Quantity:
20 000
Part Number:
HD6412340TE20
Manufacturer:
HITACHI/日立
Quantity:
20 000
10.4
10.4.1
There are three 8-bit timer interrupt sources: CMIA, CMIB, and OVI. Their relative priorities are
shown in Table 10.3. Each interrupt source is set as enabled or disabled by the corresponding
interrupt enable bit in TCR, and independent interrupt requests are sent for each to the interrupt
controller. It is also possible to activate the DTC by means of CMIA and CMIB interrupts.
Table 10.3 8-Bit Timer Interrupt Sources
Interrupt Source
CMIA0
CMIB0
OVI0
CMIA1
CMIB1
OVI1
Note: This table shows the initial state immediately after a reset. The relative channel priorities
10.4.2
The A/D converter can be activated only by channel 0 compare match A.
If the ADTE bit in TCSR0 is set to 1 when the CMFA flag is set to 1 by the occurrence of channel
0 compare match A, a request to start A/D conversion is sent to the A/D converter. If the 8-bit
timer conversion start trigger has been selected on the A/D converter side at this time, A/D
conversion is started.
10.5
In the example below, the 8-bit timer is used to generate a pulse output with a selected duty cycle,
as shown in figure 10.9. The control bits are set as follows:
[1] In TCR, bit CCLR1 is cleared to 0 and bit CCLR0 is set to 1 so that the timer counter is
[2] In TCSR, bits OS3 to OS0 are set to B'0110, causing the output to change to 1 at a TCORA
With these settings, the 8-bit timer provides output of pulses at a rate determined by TCORA with
a pulse width determined by TCORB. No software intervention is required.
386
cleared when its value matches the constant in TCORA.
compare match and to 0 at a TCORB compare match.
can be changed by the interrupt controller.
Interrupts
Interrupt Sources and DTC Activation
A/D Converter Activation
Sample Application
Description
Interrupt by CMFA
Interrupt by CMFB
Interrupt by OVF
Interrupt by CMFA
Interrupt by CMFB
Interrupt by OVF
DTC Activation
Possible
Possible
Not possible
Possible
Possible
Not possible
Priority
High
Low

Related parts for HD6412340