NEC 78K0R/KE3 User Manual page 567

16-bit single-chip microcontrollers
Table of Contents

Advertisement

CHAPTER 14 DMA CONTROLLER
Figure 14-10. Setting Example of Consecutively Capturing A/D Conversion Results
Start
DEN1 = 1
DSA1 = 1EH
DRA1 = F380H
DBC1 = 0000H
DMC1 = 2CH
DST1 = 1
Starting A/D conversion
INTAD occurs.
User program
processing
DMA1 transfer
INTDMA1 occurs.
Note
DST1 = 0
DEN1 = 0
RETI
Hardware operation
End
Note The DST1 flag is automatically cleared to 0 when a DMA transfer is completed.
Writing the DEN1 flag is enabled only when DST1 = 0. To terminate a DMA transfer without waiting for
occurrence of the interrupt of DMA1 (INTDMA1), set DST1 to 0 and then DEN1 to 0 (for details, refer to
14.5.7 Forcible termination by software).
567
User's Manual U17854EJ9V0UD

Advertisement

Table of Contents
loading

Table of Contents