Rev.2.00 Oct 16, 2006 page 246 of 354
REJ09B0340-0200
M30245 Group
2. DMAC
Figure 2.10.6. Set-up procedure of one-shot transfer mode
When software DMA request bit = “1”
Setting DMAi request cause select register
DMAi request cause select register [Address 03B8
16
, 03BA
16
, 03B0
16
, 03B2
16
]
DMiSL(i = 0 to 3)
DMA request cause select bit
Software trigger is always enabled
b7
b0
0
Software DMA request bit
Set to “0”
Setting DMAi control register
DMAi control register [Address 002C
16
, 003C
16
, 018C
16
, 019C
16
]
DMiCON(i = 0 to 3)
Transfer unit bit select bit
1 : 8 bits
Repeat transfer mode select bit
0 : Single transfer
DMA request bit
0 : DMA not requested
DMA enable bit
0 : Disabled
Source address direction select bit
1 : Forward
(Bit 4 and bit 5 cannot be set to “1” simultaneously)
Destination address direction select bit
0 : Fixed
(Bit 4 and bit 5 cannot be set to “1” simultaneously)
b7
b0
0
1
0
0
0
1
Setting DMAi source pointer
Source pointer
Stores the source address
b7
b0
(b15)
(b8)
b7
b0
b7
b0
(b16)
(b23)
DMA0 source pointer [Address 0022
16
to 0020
16
] SAR0
DMA1 source pointer [Address 0032
16
to 0030
16
] SAR1
DMA2 source pointer [Address 0182
16
to 0180
16
] SAR2
DMA3 source pointer [Address 0192
16
to 0190
16
] SAR3
b3
(b19)
Setting DMAi destination pointer
Destination pointer
Stores the destination address
b7
b0
(b15)
(b8)
b7
b0
b7
b0
(b16)
(b23)
DMA0 destination pointer [Address 0026
16
to 0024
16
] DAR0
DMA1 destination pointer [Address 0036
16
to 0034
16
] DAR1
DMA2 destination pointer [Address 0186
16
to 0184
16
] DAR2
DMA3 destination pointer [Address 0196
16
to 0194
16
] DAR3
b3
(b19)
Setting DMAi transfer counter
Transfer counter
Set a value one less than the transfer count
b0
(b8)
b7
b0
DMA0 transfer counter [Address 0029
16
, 0028
16
] TCR0
DMA1 transfer counter [Address 0039
16
, 0038
16
] TCR1
DMA2 transfer counter [Address 0189
16
, 0188
16
] TCR2
DMA3 transfer counter [Address 0199
16
, 0198
16
] TCR3
b0
(b15)
Setting DMAi control register
DMAi control register [Address 002C
16
, 003C
16
, 018C
16
, 019C
16
]
DMiCON(i = 0 to 3)
DMA enable bit
1 : Enabled
b7
b0
1
Note: Clear DMA request bit simultaneously again.
Start DMA transmission
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...