mcf51ac256a Freescale Semiconductor, Inc, mcf51ac256a Datasheet - Page 469

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
Clearing of this interrupts depends on state of SPIxC3[3] and the status of TNEAREF as described
Section 20.3.4, “SPI Status Register
20.4.11.6 RNFULLF
RNFULLF is set when more than three16bit word or six 8bit bytes of data remain in the receive FIFO
provided SPIxC3[4] = 0 or when more than two 16bit word or four 8bit bytes of data remain in the receive
FIFO provided SPIxC3[4] = 1.
Clearing of this interrupts depends on state of SPIxC3[3] and the status of RNFULLF as described
Section 20.3.4, “SPI Status Register
20.5
20.5.1
20.5.1.1
Before the SPI module can be used for communication, an initialization procedure must be carried out, as
follows:
20.5.1.2
In this example, the SPI module will be set up for master mode with only hardware match interrupts
enabled. The SPI will run in 16-bit mode at a maximum baud rate of bus clock divided by 2. Clock phase
and polarity will be set for an active-high SPI clock where the first edge on SPSCK occurs at the start of
the first cycle of a data transfer.
Freescale Semiconductor
1. Update control register 1 (SPIxC1) to enable the SPI and to control interrupt enables. This register
2. Update control register 2 (SPIxC2) to enable additional SPI functions such as the SPI match
3. Update the baud rate register (SPIxBR) to set the prescaler and bit rate divisor for an SPI master.
4. Update the hardware match register (SPIxMH:SPIxML) with the value to be compared to the
5. In the master, read SPIxS while SPTEF = 1, and then write to the transmit data register
also sets the SPI as master or slave, determines clock phase and polarity, and configures the main
SPI options.
interrupt feature, the master mode-fault function, and bidirectional mode output. 8- or 16-bit mode
select and other optional features are controlled here as well.
receive data register for triggering an interrupt if hardware match interrupts are enabled.
(SPIxDH:SPIxDL) to begin transfer.
Initialization/Application Information
SPI Module Initialization Example
Initialization Sequence
Pseudo—Code Example
MCF51AC256 ColdFire Integrated Microcontroller Reference Manual, Rev. 5
(SPIxS).”
(SPIxS).”
16-Bit Serial Peripheral Interface (SPI16)
20-29

Related parts for mcf51ac256a