mc68hc908mr32 Freescale Semiconductor, Inc, mc68hc908mr32 Datasheet - Page 200

no-image

mc68hc908mr32

Manufacturer Part Number
mc68hc908mr32
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908mr32CB
Manufacturer:
FREESCALE
Quantity:
1 831
Part Number:
mc68hc908mr32CB
Manufacturer:
MOT
Quantity:
59
Part Number:
mc68hc908mr32CFU
Manufacturer:
FREESCALE
Quantity:
3
Part Number:
mc68hc908mr32CFU
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Serial Peripheral Interface Module (SPI)
The clock phase (CPHA) control bit selects one of two fundamentally different transmission 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 transmissions to allow a master
device to communicate with peripheral slaves having different requirements.
15.5.2 Transmission Format When CPHA = 0
Figure 15-5
replacement for data sheet parametric information.Two waveforms are shown for SPSCK: one for
CPOL = 0 and another for CPOL = 1. The diagram may be interpreted as a master or slave timing
diagram since the serial clock (SPSCK), master in/slave out (MISO), and master out/slave in (MOSI) pins
are directly connected between the master and the slave. The MISO signal is the output from the slave,
and the MOSI signal is the output from the master. The SS line is the slave select input to the slave. The
slave SPI drives its MISO output only when its slave select input (SS) is at logic 0, so that only the selected
slave drives to the master. The SS pin of the master is not shown but is assumed to be inactive. The SS
pin of the master must be high or must be reconfigured as general-purpose I/O not affecting the SPI. (See
15.6.2 Mode Fault
the slave must begin driving its data before the first SPSCK edge, and a falling edge on the SS pin is used
to start the slave data transmission. The slave’s SS pin must be toggled back to high and then low again
between each byte transmitted as shown in
200
shows an SPI transmission in which CPHA is logic 0. The figure should not be used as a
CAPTURE STROBE
MASTER SS
FOR REFERENCE
MISO/MOSI
SPSCK, CPOL = 0
SPSCK, CPOL = 1
Before writing to the CPOL bit or the CPHA bit, disable the SPI by clearing
the SPI enable bit (SPE).
SLAVE SS
SLAVE SS
SPSCK CYCLE #
CPHA = 0
CPHA = 1
FROM MASTER
SS, TO SLAVE
FROM SLAVE
Error.) When CPHA = 0, the first SPSCK edge is the MSB capture strobe. Therefore,
MOSI
MISO
MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1
Figure 15-5. Transmission Format (CPHA = 0)
MSB
MSB
BYTE 1
1
Figure 15-6. CPHA/SS Timing
BIT 6
BIT 6
2
Figure
BIT 5
BIT 5
3
NOTE
15-6.
BYTE 2
BIT 4
BIT 4
4
BIT 3
BIT 3
5
BIT 2
BIT 2
6
BYTE 3
BIT 1
BIT 1
7
LSB
LSB
8
Freescale Semiconductor

Related parts for mc68hc908mr32