CHAPTER 11: DSTC
FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E 543
4.2 Transfer Operation Example 2
This section describes transfer operation example 2. Transfer operation example 2 is an example on HW
Transfer in mode 1.
DES Values at Transfer Start
Table 4-3 shows the settings of the DES in transfer operation example 2. As ORL[2:0] are set to 000,
there are no DES4 area, DES5 area or DES6 area. The DES has 4-word configuration consisting of
DES0 to DES3.
Table 4-3 DES Values at Transfer Start in Transfer Operation Example 2
DES0 = 0x01140511
DV = 01 : DES close process at the of transfer
MODE = 1, TW = 01 : Mode 1, 16-bit (halfword) transfer
ORL = 000 : No OuterReload
SAC = 001 : Increment of TW×1 with InnerReload
DAC = 000 : Increment of TW×1 without InnerReload
CHRS = 010100 : There is no Chain Start; an interrupt flag has been set.
DMSET = 0 : No DQMSK[n] is set in a DES close process.
CHLK = 0 : No Chain lock
ACK = 01 : Set ACK to 01 as the DES is directly started by the DREQ signal.
PCHK = 0000 : Parity
ORM = 0x0002, IIN = 0x02, IRM = 0x02
Transfer Operation Flow
Figure 4-2 shows the transfer operation flow in transfer operation example 2. The Start Trigger of (A) in
Figure 4-2 corresponds to the assertion of the DREQ[n] signal from a peripheral. For DREQ[n], set the
values of the DREQENB[n], DQMSK[n] and HWDESP[n] Registers before starting a transfer.
Figure 4-2 Operation Flow in Transfer Operation Example 2
(A) Start Trigger
from peripheral
0x0000 0x1000 Counter of 1st-DES:(2,2)
Source area Destination area
0x0000 0x1000
0x0000 0x1000
Wait next trigger
Counter of 1st-DES:(2,1)0x0002 0x1002
0x0000 0x1000
Counter of 1st-DES:(1,2)0x0000 0x1004
Wait next trigger
0x0000 0x1000
Counter of 1st-DES:(1,1)0x0002 0x1006
End report
(B) Start Trigger
from peripheral
(C) Start Trigger
from peripheral
(D) Start Trigger
from peripheral
End report