M16C/62P Group (M16C/62P, M16C/62PT)
14. DMAC
Rev.2.41
Jan 10, 2006
Page 131 of 390
REJ09B0185-0241
Figure 14.5
SAR0, SAR1, DAR0, DAR1, TCR0 and TCR1 Registers
DMAi Source Pointer (i = 0, 1)
(1)
Symbol
Address
After Reset
SAR0
0022h to 0020h
Indeterminate
SAR1
0032h to 0030h
Indeterminate
Setting Range
RW
NOTES :
1.
—
RW
Function
Set the source address of transfer
00000h to FFFFFh
(b23)
b7
If the DSD bit in the DMiCON register is “0” (fixed), this register can only be w ritten to w hen the DMAE bit in the
DMiCON register is “0” (DMA disabled).
If the DSD bit is “1” (forw ard direction), this register can be w ritten to at any time.
If the DSD bit is “1” and the DMAE bit is “1” (DMA enabled), the DMAi forw ard address pointer can be read from this
register. Otherw ise, the value w ritten to it can be read.
b7
b0
Nothing is assigned. When w rite, set “0”.
When read, their contents are “0”.
(b15)
b7
(b8)
b0
(b19)
b3
(b16)
b0
DMAi Destination Pointer (i = 0, 1)
(1)
Symbol
Address
After Reset
DAR0
0026h to 0024h
Indeterminate
DAR1
0036h to 0034h
Indeterminate
Setting Range
RW
NOTES :
1.
b0
(b23)
b7
(b19)
b3
(b16)
b0
(b15)
b7
(b8)
b0 b7
Function
Set the destination address of transfer
00000h to FFFFFh
RW
Nothing is assigned. When w rite, set “0”.
When read, their contents are “0”.
—
If the DAD bit in the DMiCON register is “0” (fixed), this register can only be w ritten to w hen the DMAE bit in the
DMiCON register is “0”(DMA disabled).
If the DAD bit is “1” (forw ard direction), this register can be w ritten to at any time.
If the DAD bit is “1” and the DMAE bit is “1” (DMA enabled), the DMAi forw ard address pointer can be read from this
register. Otherw ise, the value w ritten to it can be read.
DMAi Transfer Counter (i = 0, 1)
Symbol
Address
After Reset
TCR0
0029h to 0028h
Indeterminate
TCR1
0039h to 0038h
Indeterminate
Setting Range
RW
b7
(b8)
b0
b0
(b15)
b7
RW
0000h to FFFFh
Function
Set the transfer count minus 1. The w ritten value is stored in the DMAi
transfer counter reload register, and w hen the DMAE bit in the DMiCON
register is set to “1” (DMA enabled) or the DMAi transfer counter
underflow s w hen the DMASL bit in the DMiCON register is “1” (repeat
transfer), the value of the DMAi transfer counter reload register is
transferred to the DMAi transfer counter.
When read, the DMAi transfer counter is read.
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655