mc68hc11f1cpu3 Freescale Semiconductor, Inc, mc68hc11f1cpu3 Datasheet - Page 101

no-image

mc68hc11f1cpu3

Manufacturer Part Number
mc68hc11f1cpu3
Description
Mc68hc11f1 Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC11F1CPU3
Manufacturer:
ATMEL
Quantity:
1 000
8.2.1 Clock Phase and Polarity Controls
8.3 SPI Signals
TECHNICAL DATA
(CPHA = 0)
(CPHA = 1)
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 ef-
fect on the transfer format. The clock phase (CPHA) control bit selects one of two dif-
ferent 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 polar-
ity are changed between transfers to allow a master device to communicate with pe-
ripheral slaves having different requirements.
When CPHA equals zero, the 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 low, a write collision error results.
When CPHA equals one, the SS line can remain low between successive transfers.
The following paragraphs contain descriptions of the four SPI signals: master in slave
out (MISO), master out slave in (MOSI), serial clock (SCK), and slave select (SS).
Any SPI output line must have its corresponding data direction bit in DDRD register
set. If the DDR bit is clear, that line is disconnected from the SPI logic and becomes a
general-purpose input. All SPI input lines are forced to act as inputs regardless of the
state of the corresponding DDR bits in DDRD register.
1
2
3
4
5
SCK (CPOL = 0)
SCK (CPOL = 1)
SS (TO SLAVE)
SS ASSERTED
MASTER WRITES
TO SPDR
FIRST SCK EDGE
SPIF SET
SS NEGATED
SAMPLE INPUT
SAMPLE INPUT
SCK CYCLE #
DATA OUT
DATA OUT
1
2
MSB
Freescale Semiconductor, Inc.
3
For More Information On This Product,
MSB
1
Figure 8-2 SPI Transfer Format
SERIAL PERIPHERAL INTERFACE
6
Go to: www.freescale.com
2
6
SLAVE CPHA = 1 TRANSFER IN PROGRESS
5
SLAVE CPHA = 0 TRANSFER IN PROGRESS
MASTER TRANSFER IN PROGRESS
3
5
4
4
4
3
5
3
2
6
2
1
7
1
LSB
8
LSB
4
5
8-3

Related parts for mc68hc11f1cpu3