CHAPTER 11: DSTC
540 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
4.1 Transfer Operation Example 1
This section describes transfer operation example 1. Transfer operation example 1 is an example on SW
Transfer in mode 0.
DES Values at Transfer Start
Table 4-1 shows the settings of the DES in transfer operation example 1. As ORL[2:0] are set to 101,
there is no DES5 area. The DES has 6-word configuration consisting of DES0 to DES4 and DES6. (The
address of DES6 is DESP+0x0014.)
Table 4-1 DES Values at Transfer Start in Transfer Operation Example 1
DES0 = 0x901406A1
DV = 01 : DES close process to be executed at the end of transfer
MODE = 0, TW = 10 : Mode 0, 32-bit (word) transfer
ORL = 101 : OuterReload : DES1 <= DES4, DES3 <= DES6
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 : Set DMSET to 0 as the transfer is an SW Start transfer.
CHLK = 0 : No Chain lock
ACK = 00 : Set ACK to 00 as the transfer is an SW Start transfer.
PCHK = 1001:Parity
ORM = 0x0002, IIN = 0x0003
ORM = 0x0002, IIN = 0x0003 (same as DES1)
DA = 0x0000 1000 (same as DES3)
Transfer Operation Flow
Figure 4-1 Operation Flow in Transfer Operation Example 1 shows the transfer operation flow in transfer
operation example 1. The Start Triggers of (A) and (B) in the figure show write accesses of the DESP to
the SWTR Register from the CPU.
Figure 4-1 Operation Flow in Transfer Operation Example 1
(A) Start Trigger
Write DESP
from CPU
0x0000 0x1000
Counter of 1st-DES:(2,2)0x0004 0x1004
Counter of 1st-DES:(2,3)
Source area Destination area
0x0000 0x1000
0x0000 0x1000
(B) Start Trigger
Write DESP
from CPU
0x0000 0x100C Counter of 1st-DES:(1,3)
0x0004 0x1010 Counter of 1st-DES:(1,2)
End report
0x0008 0x1008 Counter of 1st-DES:(2,1)
0x0008 0x1014 Counter of 1st-DES:(1,1)
End report