![Maxim Integrated MAX32660 Скачать руководство пользователя страница 163](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484163.webp)
MAX32660 User Guide
Maxim Integrated
Page 163 of 195
13.3.4
Three and Four Wire SPI Configuration
Select three-wire SPI or four-wire SPI communication using the
three_wire
bit. Set
three_wire
= 0
for four-wire mode or set this bit to 1 to select three-wire operation.
13.3.5
SPI Peripheral Clock
The System Peripheral Clock, PCLK, drives the SPI0 peripheral clock. The SPI0 provides an internal clock, SPI0_CLK, that is
used within the SPI peripheral for the base clock to control the module and generate the SCK clock when in master mode.
Set the SPI0 internal clock using the field
scale
. Valid settings for
scale
are 0 to 8, allowing a divisor of 1 to 256.
Equation 13-1: SPI Peripheral Clock
𝑓
𝑆𝑃𝐼_𝐶𝐿𝐾
=
𝑓
𝑃𝐶𝐿𝐾
2
𝑠𝑐𝑎𝑙𝑒
13.3.6
Master Mode Serial Clock Generation
In master and multi-master mode the SCK clock is generated by the master. The SPI0 provides control for both the high
time and low time of the SCK clock. This control allows setting the high and low times for the SCK to duty cycles other than
50% if required. The SCK clock uses the SPI peripheral clock as a base value and the high and low values are a count of the
number of
𝑓
𝑆𝑃𝐼_𝐶𝐿𝐾
clocks.
, visually represents the use of the
hi
low
and
for calculating the SCK high and low time from the
hi
and
low
field values.
Figure 13-4: SCK Clock Rate Control
Equation 13-2: SCK High Time
𝑡
𝑆𝐶𝐾_𝐻𝐼
= 𝑡
𝑆𝑃𝐼_𝐶𝐿𝐾
× 𝑆𝑃𝐼𝑛_𝐶𝐿𝐾_𝐶𝐹𝐺. ℎ𝑖𝑔ℎ
Содержание 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...