Clock Phase and Polarity Controls
13-4
13.3 Clock Phase and Polarity Controls
Software can select one of four combinations of serial clock phase and polarity
using two bits in the SPI control register (SPICON 9A
H
). The clock polarity is
specified by the CPOL control bit, which selects an active high or active low
clock, and has no significant effect on the transfer format.
The clock phase (CPHA) control bit selects one of two different transfer for-
mats. The clock phase and polarity should be identical for the master SPI de-
vice and the communicating slave device. In some cases, the phase and polar-
ity are changed between transfers to allow a master device to communicate
with peripheral slaves having different requirements.
When CPHA = 0, the SPI standard defines that the SS line must be negated
and reasserted between each successive serial byte. This is more difficult
when using the FIFO to transmit the bytes and cannot be done at higher clock
speeds.
When CPHA = 1, the SS line can remain low between successive transfers.
Содержание MSC1210
Страница 1: ... December 2002 User s Guide SBAU077 ...
Страница 149: ...Digital Filter 12 13 Analog to Digital Converter Figure 12 5 Filter Frequency Responses ...
Страница 162: ...12 26 ...
Страница 234: ...Timers 17 6 Figure 17 4 Timer Counter 1 Mode 1 Figure 17 5 Interrupt System ...
Страница 273: ...Serial Port I O 17 45 Keil Simulator Figure 17 19 Clock Control Peripheral Figure 17 20 USART0 Preipheral ...
Страница 282: ...C 4 ...