EasyManua.ls Logo

Cypress FM4 Series - Descriptor 1 (DES1)

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
576 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
5.14 Descriptor 1 (DES1)
This section explains details of Descriptor 1 (DES1). DES1 sets the number of transfers. The
configuration and functions of DES1 area in mode 0 (DES0.MODE=0) are different from those in mode 1
(DES0.MODE=1).
Descriptor configuration (in mode 0)
Address: DESTP + DESP + 0x04
bit
31
16
15
0
Field
ORM[15:0]
IIN[15:0]
C attribute
R/W
R/W
D attribute
R/W
R/W
Descriptor function (in mode 0)
bit[15:0] IIN[15:0] (Inner loop initial)
The IIN[15:0] bits specify the initial value of the inner loop counter in the transfer number counter. They
can be set to a value in the range of "1" to "65536" inclusive. Setting the IIN[15:0] bits to "0x0000" is
equivalent to setting them to "65536". The DSTC imports the value of IIN and uses it as the internal loop
counter remain value (IRM). Therefore, in mode 0, it is not necessary to specify the IRM.
The DSTC does not modify the value of this area during a transfer. If OuterReload of DES1 is enabled
(ORL[0] = 1), the DSTC copies the value of DES[15:0] to IIN.
bit[31:16] ORM[15:0] (Outer loop remain)
The ORM[15:0] bits specify the remain value of the outer loop counter in the transfer number counter.
They can be set to a value in the range of "1" to "65536" inclusive. Setting the ORM[15:0] bits to "0x0000"
is equivalent to setting them to "65536".
The DSTC decreases the value of ORM before writing back it to the DES. The DSTC stores "0x0001" in
ORM at the end of a transfer. If OuterReload of DES1 is enabled, the DSTC copies the value of
DES4[31:16] to ORM after the final transfer. If the transfer ends in the form of error, the DSTC stores the
value appearing before the end of the transfer, and in turn, it is necessary to initialize the ORM[15:0] bits
via the CPU.
In mode 0, set the number of transfers to a value within the following range. If the value is out of the range,
the DSTC notifies a DES open error to the CPU.
If ORM = 65536, IIN < 0x2000
If ORM 0x8000, IIN < 0x4000
If ORM 0x4000, IIN < 0x8000
If ORM 0x2000, IIN < 65536
(If ORM is smaller than 0x2000, there is no limit on the value of IIN.)
The setting is that DES0.DV[1]=1 and DES1 is need to rebuild (DES1 is not returned to the start value),
caused to notify a DES open error from the DSTC.

Table of Contents

Related product manuals