![Maxim Integrated MAX32660 Скачать руководство пользователя страница 164](http://html1.mh-extra.com/html/maxim-integrated/max32660/max32660_user-manual_1744484164.webp)
MAX32660 User Guide
Maxim Integrated
Page 164 of 195
Equation 13-3: SCK Low Time
𝑡
𝑆𝐶𝐾_𝐿𝑂𝑊
= 𝑡
𝑆𝑃𝐼_𝐶𝐿𝐾
× 𝑆𝑃𝐼𝑛_𝐶𝐿𝐾_𝐶𝐹𝐺. 𝑙𝑜𝑤
13.3.7
Clock Phase and Polarity Control
SPIn supports four combinations of clock and phase polarity as shown in
. Clock polarity is controlled using
the bit
clk_pol
and determines if the clock is active high or active low as shown in
. Clock polarity
does not affect the transfer format for SPI. Clock phase determines when the data must be stable for sampling. Setting the
clock phase to 0,
clk_pha
= 0, dictates the SPI data is sampled on the initial SPI clock edge regardless of clock
clk_pha
= 1, results in data sample occurring on the second edge of the clock regardless of
clock polarity.
Figure 13-5: SPI Clock Polarity
For proper data transmission, the clock phase and polarity must be identical for the SPI master and slave. The master
always places data on the MOSI line a half-cycle before the SCLK edge for the slave to latch the data.
Table 13-4. Clock Phase and Polarity Operation
clk_pha
clk_pol
SCK
Transmit Edge
SCK
Receive Edge
SCK
Idle State
0
0
Falling
Rising
Low
0
1
Rising
Falling
High
1
0
Rising
Falling
Low
1
1
Falling
Rising
High
13.3.8
Transfer Format Phase 0
is the timing diagram for an SPI 16-bit transfer in which the clock phase is cleared (
clk_pha
= 0). The
two SCK waveforms show active low (
clk_pol
= 0) and active high (
clk_pol
= 1). The diagram may be
interpreted as either a master or slave timing diagram since the SCLK, MISO and MOSI pins are directly connected between
the master and the slave.
Содержание 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...