Download Print this page

Spi_Dma Transfer Total Byte Register (Dma_Spi_Amt); Spi_Dma Transfer Complete Byte Register (Dma_Spi_Done); Spi_Dma Send Address Registers (Dma_Spi_Txax); Spi_Dma Receive Address Registers (Dma_Spi_Rxax) - STC micro STC8A8K64D4 Series Reference Manual

Advertisement

STC8A8K64D4 Series Manual

23.4.4 SPI_DMA transfer total byte register (DMA_SPI_AMT)

Symbol
Address
DMA_SPI_AMT
FA23H
DMA_SPI_AMT:
Set
Note: The actual number of bytes read and written is (DMA_SPI_AMT+1), that is, when DMA_SPI_AMT
is set to 0, 1 byte is transferred, and when DMA_SPI_AMT is set to 255, 256 bytes are transferred.

23.4.5 SPI_DMA transfer complete byte register (DMA_SPI_DONE)

Symbol
Address
DMA_SPI_DONE
FA24H
DMA_SPI_DONE: The number of bytes that have been read and written currently.

23.4.6 SPI_DMA Send Address Registers (DMA_SPI_TXAx)

Symbol
Address
DMA_SPI_TXAH
FA25H
DMA_SPI_TXAL
FA26H
DMA_SPI_TXA: Set the source address when reading and writing data. Data will be read from this address when the
SPI_DMA operation is performed.

23.4.7 SPI_DMA Receive Address Registers (DMA_SPI_RXAx)

Symbol
Address
DMA_SPI_RXAH
FA27H
DMA_SPI_RXAL
FA28H
DMA_SPI_RXA: Set the target address when reading and writing data. Data will be written from this address when
the SPI_DMA operation is performed.

23.4.8 SPI_DMA Configuration Register 2 (DMA_SPI_CFG2)

Symbol
Address
DMA_SPI_CFG2
FA29H
WRPSS: Enable SS pin control bit during SPI_DMA process
0: During the SPI_DMA transfer process, the SS pin is not automatically controlled
1: During the SPI_DMA transfer process, the SS pin is automatically pulled down, and the original state is
automatically restored after the transfer is completed.
SSS[1:0]: During the SPI_DMA process, control the SS selection bit automatically
SSS[1:0] SS pin
00
P1.2
01
P2.2
10
P7.4
11
P3.5
B7
B6
the
number
of
bytes
B7
B6
B7
B6
B7
B6
B7
B6
-
-
B5
B4
B3
that
need
to
B5
B4
B3
B5
B4
B3
ADDR[15:8]
ADDR[7:0]
B5
B4
B3
ADDR[15:8]
ADDR[7:0]
B5
B4
B3
-
-
-
B2
B1
B0
read
and
write
B2
B1
B0
B2
B1
B0
B2
B1
B0
B2
B1
B0
WRPSS
SSS[1:0]
- 644 -
data.

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin