EasyManua.ls Logo

Maxim Integrated MAX32660 - Table 13-12: SPI DMA Control Registers

Maxim Integrated MAX32660
195 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...
MAX32660 User Guide
Maxim Integrated Page 173 of 195
SPI Master Clock Configuration Register
SPI0_CLK_CFG
[0x0014]
Bits
Name
Access
Reset
Description
19:16
scale
R/W
0
System Clock to SPI Clock Scale Factor
Scales the Peripheral Clock (PCLK) by 2
scale
to generate the SPI module clock.



0x0 - 0x8: Scales the system clock by the set value to generate the internal SPI clock
0x9 - 0xF: Invalid
Note: The microcontroller System Clock is scaled by scale to generate the internal SPI
clock. The external SPI clock, SCLK, is generated by setting the low cycle time, low, and
the high cycle time, hi.
Note: If scale=0, hi=0, and lo=0, character sizes of 2 and 10 bits are not supported.
15:8
hi
R/W
0x00
SCLK Hi Clock Cycles Control
0x0: Hi duty cycle control disabled. Only valid if scale = 0.
0x1 0xF: Number of internal SPI clocks that SCLK is high.
Note: If scale=0, hi=0, and lo=0, character sizes of 2 and 10 bits are not supported.
7:0
lo
R/W
0x00
SCLK Low Clock Cycles Control
0x0: Low duty cycle control disabled. Only valid if SPI0_CLK_CFG.scale = 0.
0x1 0xF: Number of internal SPI clocks that SCLK is low
Note: If SPI0_CLK_CFG.scale=0, SPI0_CLK_CFG.hi=0, and SPI0_CLK_CFG.low=0, character
sizes of 2 and 10 bits are not supported.
Table 13-12: SPI DMA Control Registers
SPI DMA Control Register
SPI0_DMA
[0x001C]
Bits
Name
Access
Reset
Description
31
rx_dma_en
R/W
0
RX DMA Enable
0: RX DMA is disabled. Any pending DMA requests are cleared
1: RX DMA is enabled
30
-
R/W
0
Reserved for Future Use
Do not modify this field.
29:24
rx_fifo_cnt
R
0
Number of Bytes in the RX FIFO
Read returns the number of bytes currently in the RX FIFO
23
rx_fifo_clear
W
-
Clear the RX FIFO
1: Clear the RX FIFO and any pending RX FIFO flags in SPI0_INT_FL. This should be
done when the RX FIFO is inactive.
Writing a 0 has no effect.
22
rx_fifo_en
R/W
0
RX FIFO Enabled
0: RX FIFO disabled
1: RX FIFO enabled
21
-
R/W
0
Reserved for Future Use
Do not modify this field.

Table of Contents

Related product manuals