![Maxim Integrated MAX32660 Скачать руководство пользователя страница 173](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484173.webp)
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.
𝑓
𝑆𝑃𝐼_𝐶𝐿𝐾
=
𝑓
𝑃𝐶𝐿𝐾
2
𝑠𝑐𝑎𝑙𝑒
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
.scale
= 0.
0x1
–
0xF: Number of internal SPI clocks that SCLK is low
Note: If
.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
. 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.
Содержание MAX32660
Страница 4: ...MAX32660 User Guide Maxim Integrated Page 4 of 195 8 UART 84 9 Real Time Clock RTC 96 10 Timers 105...
Страница 7: ...MAX32660 User Guide Maxim Integrated Page 7 of 195 15 Trademarks 195 16 Revision History 195...
Страница 14: ...MAX32660 User Guide Maxim Integrated Page 14 of 195 Figure 2 1 MAX32660 High Level Block Diagram...