
145
8.3.2
Activating Sources
The DTC performs write operations to the DTCSR with either interrupt sources or software as its
activating sources. Each interrupt source is designated by specific DTER bits to determine whether
it becomes an interrupt request to the CPU or a DTC activating source.
When the DISEL bit is 1, an interrupt, established as the DTC activating source, is requested of
the CPU after each data transfer in DRC. When the DISEL bit is a 0, a request is made only after
the completion of a designated number of data transfers. When the activating source interrupt is
requested of the CPU, the corresponding DTER bit is automatically cleared.
In the case of software activation also, when the DISEL bit is a 1, a software DTC activation
interrupt (SWDTCE) is requested of the CPU after each data transfer. When the DISEL bit is a 0,
a request is made only after the completion of a designated number of data transfers. When no
SWDTCE interrupt is requested of the CPU, the SWDTE bit of the DTCSR is automatically
cleared. When a request is made of the CPU, the SWDTE bit is maintained as a 1.
When multiple DTC activating sources occur simultaneously, they are accepted and the DTC is
activated in accordance with the default priority rankings shown in table 8.2.
Figure 8.3 shows a block diagram of activating source control.
IRQ
On-chip
peripheral
Interrupt
requests
Source
flag clear
Source flag clear
Interrupt requests
(those not designated as
DMAC activating sources)
CPU Interrupt requests
(those not designated as
DTC activating sources)
Clear
DTC activation request
DTC
control
DTER
DTC
INTC
DMAC
Figure 8.3 Activating Source Control Block Diagram
8.3.3
DTC Vector Table
Figure 8.4 shows the correspondence between DTC vector addresses and register information
placement. For each DTC activating source there are 2 bytes in the DTC vector table, which
contain the register information start address.
Table 8.2 shows the correspondence between activating sources and vector addresses. When
activating with software, the vector address is calculated as H'0400 + DTVEC[7:0].
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...