EasyManua.ls Logo

Cypress FM4 Series - Page 474

Cypress FM4 Series
1102 pages
Print Icon
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 10: DMAC
474 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
Even if instructed from CPU, the transfer may not be put on pause, and instead, it may be
successfully completed due to factors such as transfer mode (Burst/Block/Demand) and transfer
status (the number of transfers performed, the timing of instruction to put the operation on pause).
Also, if a transfer error occurs before the transfer stops, error stop applies to the transfer.
Figure 4-3 Operation when All-channel Pause is Instructed
DMA status Transfer
Transfer action
Pause
TC 7 6 5 4
SS 000 000
All channels pause request from CPU
All chanels pause cancel request from CPU
DMA status
T
r
a
n
s
f
e
r
Transfer action
Pause
TC 4 3 2
SS 000 000
DMA status Transfer
Transfer action
Disable
TC(reload) 0 3
SS 000 101 (normal end)
111(Pause)
111(Pause)
Transfer
Transfer
DS
Ch.2 normal end
All channels pause
Ch.0
Ch.1
Ch.2
9. Pause state
SS is read from CPU to confirm the pause of the transfer. The SS of a channel in Pause state is
111. While in this state, it cannot be cleared from CPU.
Even during the pause, the transfer content cannot be specified or changed (rewriting DMACSA,
DMACDA, DMACA[29:0] or DMACB[31:1]). Also, when a channel in Pause state is instructed to
pause, it continues to remain in the Pause state.
10. Pause state / Cancellation of transfer pause
If an instruction to enable individual-channel operation is issued to a channel that has been in
Pause state due to an instruction to put individual-channel operation on pause, that channel
returns to Transfer state. If an instruction to enable all-channel operation is issued to channels
that have been in Pause state due to an instruction to put all-channel operation on pause, those
channels return to Transfer state. If both of the pause instructions have been given, issue an
instruction to cancel both of them.
After the instruction, SS[2:0] is cleared to 000 via DMAC.
If an instruction to enable individual-channel operation and an instruction to enable all-channel
operation are issued in Pause state, they instruct the pause to be cancelled. If they are issued in
Disable state, attention must be paid, as they may instruct a new transfer to be started. See Step
11 in the software procedure.
Figure 4-3 shows an example of the case where an instruction to put all-channel operation on
pause. The explanation of the figure is as follows.

Table of Contents

Related product manuals