mc68hc11d0cfn2 Freescale Semiconductor, Inc, mc68hc11d0cfn2 Datasheet - Page 89

no-image

mc68hc11d0cfn2

Manufacturer Part Number
mc68hc11d0cfn2
Description
M68hc11 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC11D0CFN2
Manufacturer:
FREESCALE
Quantity:
8 831
7.4 Clock Phase and Polarity Controls
MC68HC711D3 — Rev. 2
MOTOROLA
(CPHA = 0)
(CPHA = 1)
1. SS ASSERTED
2. MASTER WRITES TO SPDR
3. FIRST SCK EDGE
4. SPIF SET
5. SS NEGATED
SAMPLE INPUT
SAMPLE INPUT
SCK (CPOL = 0)
SCK (CPOL = 1)
SS (TO SLAVE)
SCK CYCLE #
DATA OUT
DATA OUT
Software can select one of four combinations of serial clock phase and polarity
using two bits in the SPI control register (SPCR). 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 formats. The clock phase and polarity should be
identical for the master SPI device and the communicating slave device. In some
cases, the phase and polarity are changed between transfers to allow a master
device to communicate with peripheral slaves having different requirements.
When CPHA equals 0, the slave select (SS) line must be negated and reasserted
between each successive serial byte. Also, if the slave writes data to the SPI data
register (SPDR) while SS is active low, a write collision error results.
When CPHA equals 1, the SS line can remain low between successive transfers.
1
2
MSB
Freescale Semiconductor, Inc.
3
For More Information On This Product,
MSB
1
Figure 7-2. SPI Transfer Format
6
Serial Peripheral Interface (SPI)
Go to: www.freescale.com
2
6
SLAVE CPHA=0 TRANSFER IN PROGRESS
SLAVE CPHA=1 TRANSFER IN PROGRESS
5
MASTER TRANSFER IN PROGRESS
3
5
4
4
4
3
5
3
2
6
2
Clock Phase and Polarity Controls
1
Serial Peripheral Interface (SPI)
7
1
LSB
8
LSB
4
Data Sheet
5
89

Related parts for mc68hc11d0cfn2