
Rev.2.10 Apr 14, 2006 page 106 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 12. DMAC
Figure 12.3 Registers DM1SL, DM0CON, and DM1CON
DMA1 Request Source Select Register
Symbol Address After Reset
DM1SL 03BAh 00h
DSEL0
DSEL1
DSEL2
DSEL3
DSR
DMS
-
(b5-b4)
FunctionBit Symbol
Bit Name
DMA request source
select bits
Nothing is assigned. If necessary, set to 0.
When read, the content is 0.
Software DMA
request bit
A DMA request is generated by setting
this bit to 1 when the DMS bit is 0
(basic source) and the DSEL3 to DSEL0
bits are 0001b (software trigger).
When read, the content is 0.
DMA request source
expansion select bit
0 : Basic request source
1 : Extended request source
See NOTE 1
RW
RW
RW
RW
-
RW
RW
RW
NOTE:
1. The DMA1 request sources can be selected by a combination of the DMS bit and bits DSEL3 to DSEL0 in the
manner described below.
Bits DSEL3 to DSEL0
DMS = 0 (basic request source) DMS = 1 (extended request source)
Falling edge of INT1 pin
–
Software trigger –
Timer A0 –
Timer A1 –
Timer A2 –
Timer A3
SI/O3
Timer A4
Timer B0
Two edges of INT1 pin
Timer B1
Timer B2
UART0 transmit
–
–
–
SI/O4
UART0 receive/ACK0 –
UART2 transmit –
UART2 receive/ACK2 –
A/D conversion –
UART1 receive/ACK1 –
b7 b6 b5 b4 b3 b2 b1 b0
DMAi Control Register (i = 0, 1)
DMBIT
DMASL
DMAS
DAD
DSD
-
(b7-b6)
FunctionBit Symbol
Bit Name
Transfer unit bit
select bit
Nothing is assigned. If necessary, set to 0.
When read, the content is 0.
Destination address
direction select bit
(2)
Source address direction
select bit
(2)
0 : 16 bits
1 : 8 bits
RW
RW
RW
(1)
RW
-
RW
RW
RW
NOTES:
1. The DMAS bit can be set to 0 by writing 0 in a program. (This bit remains unchanged even if 1 is written.)
2. At least one of bits DAD and DSD is set to 0 (address direction fixed).
b7 b6 b5 b4 b3 b2 b1 b0
Repeat transfer mode
select bit
0 : Single transfer
1 : Repeat transfer
DMA request bit
DMAE
DMA enable bit
0 : DMA not requested
1 : DMA requested
0 : Disabled
1 : Enabled
0 : Fixed
1 : Forward
0 : Fixed
1 : Forward
Symbol Address After Reset
DM0CON 002Ch 00000X00b
DM1CON 003Ch 00000X00b
0000b
0001b
0010b
0011b
0100b
0101b
0110b
0111b
1000b
1001b
1010b
1011b
1100b
1101b
1110b
1111b
Kommentare zu diesen Handbüchern