EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Data Read and Write between Memory and Memory (M2 M_DMA); M2 M_DMA Configuration Register (DMA_M2 M_CFG); M2 M_DMA Control Register (DMA_M2 M_CR); M2 M_DMA Status Register (DMA_M2 M_STA)

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
- 637 -
DMA_LCM_TXAH
LCM_DMA Send High Address
FA75H
0000,0000
DMA_LCM_TXAL
LCM_DMA Send Low Address
FA76H
0000,0000
DMA_LCM_RXAH
LCM_DMA Receive High Address
FA77H
0000,0000
DMA_LCM_RXAL
LCM_DMA Receive Low Address
FA78H
0000,0000
23.2 Data read and write between memory and memory (M2M_DMA)
23.2.1 M2M_DMA Configuration Register (DMA_M2M_CFG)
Symbol
Address
B7
B6
B5
B4
B3
B2
B1
B0
DMA_M2M_CFG
FA00H
M2MIE
-
TXACO
RXACO
M2MIP[1:0]
M2MPTY[1:0]
M2MIE: M2M_DMA interrupt enable control bit
0: Disable M2M_DMA interrupt
1: Enable M2M_DMA interrupt
TXACO: M2M_DMA source address (read address) changes direction
0: The address is automatically incremented after the data read is completed
1: The address is automatically decremented after the data read is completed
RXACO: M2M_DMA target address (write address) changed direction
0: The address is automatically incremented after data writing is completed
1: The address is automatically decremented after data writing is completed
M2MIP[1:0]: M2M_DMA interrupt priority control bits
M2MIP[1:0]
Interrupt priority
00
Lowest (0)
01
Lower (1)
10
Higher (2)
11
Highest (3)
M2MPTY[1:0]: M2M_DMA Data bus access priority control bits
M2MPTY [1:0]
Bus access priority
00
Lowest (0)
01
Lower (1)
10
Higher (2)
11
Highest (3)
23.2.2 M2M_DMA Control Register (DMA_M2M_CR)
Symbol
Address
B7
B6
B5
B4
B3
B2
B1
B0
DMA_M2M_CR
FA01H
ENM2M
TRIG
-
-
-
-
-
-
ENM2M: M2M_DMA function enable control bit
0: Disable M2M_DMA function
1: Enable M2M_DMA function
TRIG: M2M_DMA data read and write trigger control bit
0: Write 0 is invalid
1: Write 1 to start M2M_DMA operation.
23.2.3 M2M_DMA Status Register (DMA_M2M_STA)
Symbol
Address
B7
B6
B5
B4
B3
B2
B1
B0
DMA_M2M_STA
FA02H
-
-
-
-
-
-
-
M2MIF
M2MIF: M2M_DMA interrupt request flag bit. When the M2M_DMA operation is completed, the hardware
automatically sets M2MIF to 1, and if the M2M_DMA interrupt is enabled, the interrupt service routine is entered.
The flag bit needs to be cleared by software.
23.2.4 M2M_DMA transfer total byte register (DMA_M2M_AMT)
Symbol
Address
B7
B6
B5
B4
B3
B2
B1
B0

Table of Contents

Related product manuals