EasyManua.ls Logo

Cypress FM4 Series - Transfer Operation Example 1

Cypress FM4 Series
1102 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Address
DES No.
Value
DESP+0x0000
DES0
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
DESP+0x0004
DES1
ORM = 0x0002, IIN = 0x0003
DESP+0x0008
DES2
SA = 0x00000000
DESP+0x000C
DES3
DA = 0x00001000
DESP+0x0010
DES4
ORM = 0x0002, IIN = 0x0003 (same as DES1)
DESP+0x0014
DES6
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

Table of Contents

Related product manuals