Figure 7.29 shows a flowchart of the XY conversion.
Figure 7.20 XY Conversion Flowchart Using Offset Addition in Repeat Transfer Mode
(3)
Offset Subtraction
When setting the negative value in DOFR, the offset value must be 2's complement. The 2's
complement is obtained by the following formula.
2's complement of offset = 1 + ~offset (~: bit inversion)
Example:
= H'FFFE0000 + H'00000001
= H'FFFE0001
The value of 2's complement can be obtained by the NEG.L instruction.
Downloaded from
Elcodis.com
electronic components distributor
Start
Set address and transfer count
Set repeat transfer mode
Enable repeat escape interrupt
Set DTE bit to 1
Receives transfer request
Transfers data
Decrements transfer count
and repeat size
Transfer count = 0?
Yes
End
: User operation
2's complement of H'0001FFFF
Repeat size = 0?
Initializes transfer source address
No
Generates repeat size end
interrupt request
Set transfer source address + 4
: DMAC operation
Rev. 3.00 Mar. 14, 2006 Page 175 of 804
Section 7 DMA Controller (DMAC)
No
Yes
(Longword transfer)
REJ09B0104-0300