16.3.10 Dmac Interrupt Control - Fujitsu MB91319 Series Hardware Manual

Fr60 32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 16 DMA CONTROLLER (DMAC)

16.3.10 DMAC Interrupt Control

Independent of peripheral interrupts that become transfer requests, interrupts can also
be output for each DMAC channel.
■ DMAC Interrupt Control
Transfer end interrupt: Occurs only when operation ends normally.
Error interrupt: Transfer stop request due to a peripheral circuit (error due to a peripheral)
Error interrupt: Occurrence of address error (error due to software)
All of these interrupts are output according to the meaning of the end code.
An interrupt request can be cleared by writing 000 to DSS2 to 0 (end code) of DMACS. Be sure to
clear the end code by writing 000 before restarting.
If reloading is enabled, the transfer is automatically restarted. At this point, however, the end code
is not cleared and is retained until a new end code is written when the next transfer ends.
Since only one end source can be displayed in an end code, the result after considering the order
of priority is displayed when multiple sources occur simultaneously. The interrupt that occurs at
this point conforms to the displayed end code.
The following shows the priority for displaying end codes (in order of decreasing priority):
Reset
Clearing by writing 000
Peripheral stop request or external pin input (DSTP) stop request
Normal end
Stopping when address error detected
Channel selection and control
■ DMA Transfer during Sleep
This model cannot operate the DMAC in sleep mode.
362

Advertisement

Table of Contents
loading

Table of Contents