mcf51ac256a Freescale Semiconductor, Inc, mcf51ac256a Datasheet - Page 456

no-image

mcf51ac256a

Manufacturer Part Number
mcf51ac256a
Description
Mcf51ac Flexis
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mcf51ac256aCFGE
Manufacturer:
FREESCALE
Quantity:
2 400
Part Number:
mcf51ac256aCFGE
Manufacturer:
FREESCALE
Quantity:
2 400
Part Number:
mcf51ac256aCFUE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mcf51ac256aCLKE
Manufacturer:
FREESCALE
Quantity:
1 500
Part Number:
mcf51ac256aCLKE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mcf51ac256aCPUE
Manufacturer:
MURATA
Quantity:
1 000
16-Bit Serial Peripheral Interface (SPI16)
20.4
20.4.1
The SPI system is enabled by setting the SPI enable (SPE) bit in SPI Control Register 1. While the SPE
bit is set, the four associated SPI port pins are dedicated to the SPI function as:
An SPI transfer is initiated in the master SPI device by reading the SPI status register (SPIxS) when
SPTEF = 1 and then writing data to the transmit data buffer (write to SPIxDH:SPIxDL). When a transfer
is complete, received data is moved into the receive data buffer. The SPIxDH:SPIxDL registers act as the
SPI receive data buffer for reads and as the SPI transmit data buffer for writes.
The clock phase control bit (CPHA) and a clock polarity control bit (CPOL) in the SPI Control Register 1
(SPIxC1) select one of four possible clock formats to be used by the SPI system. The CPOL bit simply
selects a non-inverted or inverted clock. The CPHA bit is used to accommodate two fundamentally
different protocols by sampling data on odd numbered SPSCK edges or on even numbered SPSCK edges.
20-16
TNEAREFCI
RNFULLFCI
SPTEFCI
RXFERR
TXFERR
SPRFCI
RXFOF
TXFOF
Field
7
6
5
4
3
2
1
0
Slave select (SS)
Serial clock (SPSCK)
Master out/slave in (MOSI)
Master in/slave out (MISO)
Functional Description
General
Transmit FIFO ErrorFlag- This flag indicates that TX FIFO error occured because entries in fifo goes above 8..
0 No TX Fifo Error Occured
1 TX Fifo error occured.
Receive FIFO Error Flag- This flag indicates that RX FIFO error occured because entries in fifo goes above 8.
0 No RX Fifo Error Occured
1 RX Fifo error occured.
TX FIFO Overflow Flag- This Flag indicates that TX FIFO overflow condition has occured..
0 TX FIFO overflow condition has not occured.
1 TX FIFO overflow condition occured.
RX FIFO Overflow Flag - This Flag indicates that RX FIFO overflow condition has occured..
0 RX FIFO overflow condition has not occured.
1 RX FIFO overflow condition occured.
Transmit FIFO Nearly Empty Flag Clear Interrupt Register - Write of 1 clears the TNEAREF interrupt provided
SPIxC3[3] is set.
Receive FIFO Nearly Full Flag Clear Interrupt Register - Write of 1 clears the RNFULLF interrupt provided
SPIxC3[3] is set.
Transmit FIFO Empty Flag Clear Interrupt Register - Write of 1 clears the SPTEF interrupt provided SPIxC3[3]
is set.
Receive FIFO Full Flag Clear Interrupt Register - Write of 1 clears the TNEAREF interrupt provided SPIxC3[3]
is set.
MCF51AC256 ColdFire Integrated Microcontroller Reference Manual, Rev. 5
Table 20-10. SPIxCI Register Field Descriptions
Description
Freescale Semiconductor

Related parts for mcf51ac256a