LFDAS12XSFT Freescale Semiconductor, LFDAS12XSFT Datasheet - Page 450

no-image

LFDAS12XSFT

Manufacturer Part Number
LFDAS12XSFT
Description
HARDWARE MC9S12XS 80-PIN
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of LFDAS12XSFT

Module/board Type
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
-
Serial Peripheral Interface (S12SPIV5)
As long as no more than one slave device drives the system slave’s serial data output line, it is possible for
several slaves to receive the same transmission from a master, although the master would not receive return
information from all of the receiving slaves.
If the CPHA bit in SPI control register 1 is clear, odd numbered edges on the SCK input cause the data at
the serial data input pin to be latched. Even numbered edges cause the value previously latched from the
serial data input pin to shift into the LSB or MSB of the SPI shift register, depending on the LSBFE bit.
If the CPHA bit is set, even numbered edges on the SCK input cause the data at the serial data input pin to
be latched. Odd numbered edges cause the value previously latched from the serial data input pin to shift
into the LSB or MSB of the SPI shift register, depending on the LSBFE bit.
When CPHA is set, the first edge is used to get the first data bit onto the serial data output pin. When CPHA
is clear and the SS input is low (slave selected), the first bit of the SPI data is driven out of the serial data
output pin. After the nth
the SPI data register. To indicate transfer is complete, the SPIF flag in the SPI status register is set.
15.4.3
During an SPI transmission, data is transmitted (shifted out serially) and received (shifted in serially)
simultaneously. The serial clock (SCK) synchronizes shifting and sampling of the information on the two
serial data lines. A slave select line allows selection of an individual slave SPI device; slave devices that
are not selected do not interfere with SPI bus activities. Optionally, on a master SPI device, the slave select
line can be used to indicate multiple-master bus contention.
15.4.3.1
Using two bits in the SPI control register 1, software selects one of four combinations of serial clock phase
and polarity.
1.
450
n depends on the selected transfer width, please refer to
Transmission Formats
Clock Phase and Polarity Controls
A change of the bits CPOL, CPHA, SSOE, LSBFE, MODFEN, SPC0, or
BIDIROE with SPC0 set in slave mode will corrupt a transmission in
progress and must be avoided.
SHIFT REGISTER
GENERATOR
BAUD RATE
MASTER SPI
1
shift, the transfer is considered complete and the received data is transferred into
Figure 15-11. Master/Slave Transfer Block Diagram
S12XS Family Reference Manual, Rev. 1.11
MISO
MOSI
SCK
SS
NOTE
Section 15.3.2.2, “SPI Control Register 2 (SPICR2)
V
DD
MISO
MOSI
SCK
SS
SHIFT REGISTER
SLAVE SPI
Freescale Semiconductor

Related parts for LFDAS12XSFT