CHAPTER 12 NBD FUNCTION (
µµµµ
PD70F3116)
642
User’s Manual U14492EJ3V0UD
Examples of DMA initialization on 32-bit transfer, 16-bit transfer, and 8-bit transfer are shown below.
(a) Example of 32-bit transfer DMA initialization
-- DMA INITIAL -–
mov
0x0000FA64 ,
r24 -- DMACH0 Source
Address –-
st.h
r24 , DSAL0[r0]
mov
0x00000FFF ,
r24 –- DMACH0 Source
Address –-
st.h
r24 , DSAH0[r0]
mov
0x0000F088 ,
r24 –- DMACH0 Destination Address –-
st.h
r24 , DDAL0[r0]
mov
0x00000FFF ,
r24 –- DMACH0 Destination Address –-
st.h
r24 , DDAH0[r0]
mov
0x0000400c ,
r24 -– DMACH0 Block MODE 16Bit MODE –-
st.h
r24 , DADC0[r0]
mov
0x0000800c ,
r24 -– DMACH1 Block MODE 32Bit MODE –-
st.h
r24 , DADC1[r0]
mov
0x00000003 ,
r24 -– DMACH0 Block MODE 16Bit
∗
4 --
st.h
r24 , DBC0[r0]
mov
0x00000000 ,
r24 -– DMACH1 Block MODE 32Bit
∗
1 --
st.h
r24 , DBC1[r0]
mov
0x00000009 ,
r24 -– DMACH0&1 DMA ready --
st.b
r24 , DCHC0[r0]
st.b
r24 , DCHC1[r0]
mov
0x00000035 ,
r24 -– DMACH0 Trigger –-
st.b
r24 , DTFR0[r0]
mov
0x00000036 ,
r24 -– DMACH1 Trigger –-
st.b
r24 , DTFR1[r0]
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...