Figure 7.20 Xy Conversion Flowchart Using Offset Addition In Repeat Transfer Mode - Renesas H8SX/1500 Series Hardware Manual

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1500 Series:
Table of Contents

Advertisement

Figure 7.29 shows a flowchart of the XY conversion.
Set address and transfer count
Set repeat transfer mode
Enable repeat escape interrupt
Receives transfer request
Decrements transfer count
and repeat size
: User operation

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:
2's complement of H'0001FFFF
= H'FFFE0000 + H'00000001
= H'FFFE0001
The value of 2's complement can be obtained by the NEG.L instruction.
Start
Set DTE bit to 1
Transfers data
No
Transfer count = 0?
Yes
End
: DMAC operation
Section 7 DMA Controller (DMAC)
Repeat size = 0?
Yes
Initializes transfer source address
Generates repeat size end
interrupt request
Set transfer source address + 4
(Longword transfer)
Rev. 3.00 Mar. 14, 2006 Page 175 of 804
No
REJ09B0104-0300

Advertisement

Table of Contents
loading

Table of Contents