Spi Control Register 2 (Spix_C2) - NXP Semiconductors MKL27Z128VFM4 Reference Manual

Table of Contents

Advertisement

Field
This 4-bit field selects one of nine divisors for the SPI baud rate divider. The input to this divider comes
from the SPI baud rate prescaler. Refer to the description of "SPI Baud Rate Generation" for details.
0000
0001
0010
0011
0100
0101
0110
0111
1000
All others

35.4.3 SPI Control Register 2 (SPIx_C2)

This read/write register is used to control optional features of the SPI system.
Address: Base address + 2h offset
Bit
7
Read
SPMIE
Write
Reset
0
Field
7
SPI Match Interrupt Enable
SPMIE
This is the interrupt enable bit for the SPI receive data buffer hardware match (SPMF) function.
0
Interrupts from SPMF inhibited (use polling)
1
When SPMF is 1, requests a hardware interrupt
6
SPI 8-bit or 16-bit mode
SPIMODE
This bit allows the user to select either an 8-bit or 16-bit SPI data transmission length. In master mode, a
change of this bit aborts a transmission in progress, forces the SPI system into an idle state, and resets all
status bits in the S register. Refer to the description of "Data Transmission Length" for details.
0
8-bit SPI shift register, match register, and buffers
1
16-bit SPI shift register, match register, and buffers
5
Transmit DMA enable
TXDMAE
This bit enables a transmit DMA request. When this bit is set to 1, a transmit DMA request is asserted
when both SPTEF and SPE are set, and the interrupt from SPTEF is disabled.
Freescale Semiconductor, Inc.
SPIx_BR field descriptions (continued)
Baud rate divisor is 2.
Baud rate divisor is 4.
Baud rate divisor is 8.
Baud rate divisor is 16.
Baud rate divisor is 32.
Baud rate divisor is 64.
Baud rate divisor is 128.
Baud rate divisor is 256.
Baud rate divisor is 512.
Reserved
6
5
SPIMODE
TXDMAE
0
0
SPIx_C2 field descriptions
Table continues on the next page...
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
Chapter 35 Serial Peripheral Interface (SPI)
Description
4
3
MODFEN
BIDIROE
0
0
Description
2
1
RXDMAE
SPISWAI
0
0
0
SPC0
0
579

Advertisement

Table of Contents
loading

Table of Contents