
382
CHAPTER 17 DMA CONTROLLER
17.6 Notes on the DMA Controller
This section provides notes on using the DMA controller.
■
Priority of channels
Once the DMAC is activated by a DMA transfer request over a channel, a DMA transfer request
over another channel is not accepted and is held until the end of the current transfer.
If requests over multiple channels are active at detection of a DMA transfer request by the
DMAC, which channel is to be accepted depends on the priority given below.
(High) ch 0 --> ch 1 --> ch 2 --> ch 3 --> ch 4 --> ch 5 --> ch 6 --> ch 7 (Low)
If requests over multiple channels are generated concurrently, the DMA transfer over one
channel is executed, then bus control is returned to the CPU before performing DMA transfer
over the next channel.
■
Notes on using a resource interrupt request as a DMA transfer request
For DMA controller transfer, you must disable the interrupt levels via the appropriate interrupt
controller.
In contrast, for interrupt generation, you must disable the DMA controller operation enable bit in
the DMA controller and set the interrupt level to a proper value.
■
Suppression of DMA transfer upon generation of a higher-priority interrupt
The FR supports a function for terminating DMA transfer originating in a DMA transfer request
when a higher-priority interrupt occurs.
❍
HRCL register
You can terminate DMA transfer operation upon occurrence of an interrupt request by operating
the HRCL (hold request cancel level register) in the interrupt controller.
If the interrupt level set in an interrupt request generated from a peripheral circuit is higher than
that set in the HRCL, DMAC DMA transfer operation is suppressed. With DMA transfer
operation executed, the transfer operation is suspended at a breakpoint, and the bus right is
given to the CPU. If the system is currently waiting for the generation of a DMA transfer request,
a DMA transfer request is held when it is generated.
After reset, the HRCL is set to the lowest level (31). The DMA transfer operation is, therefore,
suppressed against all interrupt requests. To operate DMA transfer even with an interrupt
request generated, set the HRCL register to the required value.
❍
PDRR register
The function for suppressing DMA transfer operation by setting the HRCL register is enabled
only when an interrupt request of a higher priority is active. For example, when an interrupt
request is cleared in the interrupt handler program, the suppression of DMA transfer by the
HRCL register may be released, with the CPU losing the bus right.
The clock control section supports a PDRR register to clear an interrupt request so that other
interrupt requests may be accepted, and to suppress DMA transfer operation.
If you use the interrupt handler to load the PDRR with a value other than 0, DMA transfer
operation is suppressed. To release the suppression of DMA transfer operation, load the PDRR
Содержание MB91150 Series
Страница 1: ......
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Страница 174: ...158 CHAPTER 5 I O PORTS Note DDRI bit 6 is a test bit Always set the bit to 0 The value read from this bit is always 0 ...
Страница 178: ...162 CHAPTER 5 I O PORTS ...
Страница 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Страница 240: ...224 CHAPTER 8 PPG TIMER ...
Страница 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Страница 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Страница 362: ...346 CHAPTER 15 UART ...
Страница 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Страница 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Страница 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 510: ...494 INDEX ...
Страница 512: ......