18.1.2 SPIx Control Register 1 High

Note:
  1. AUDEN can only be written when the SPIEN bit = 0.
  2. AUDMONO can only be written when the SPIEN bit = 0 and is only valid for AUDEN = 1.
  3. URDTEN is only valid when IGNTUR = 1.
  4. AUDMOD[1:0] can only be written when the SPIEN bit = 0 and is only valid when AUDEN = 1. When NOT in PCM/DSP mode, this module functions as if FRMSYPW = 1, regardless of its actual value.
Name: SPIxCON1H
Offset: 0x2AE, 0x2CA, 0x2E6

Bit 15141312111098 
 AUDENSPISGNEXTIGNROVIGNTURAUDMONOURDTENAUDMOD[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 FRMENFRMSYNCFRMPOLMSSENFRMSYPWFRMCNT[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 15 – AUDEN  Audio Codec Support Enable bit(1)

ValueDescription
1

Audio protocol is enabled; MSTEN controls the direction of both SCKx and frame (a.k.a. LRC), and this module functions as if FRMEN = 1, FRMSYNC = MSTEN, FRMCNT[2:0] = 001 and SMP = 0, regardless of their actual values

0

Audio protocol is disabled

Bit 14 – SPISGNEXT SPIx Sign-Extend RX FIFO Read Data Enable bit

ValueDescription
1

Data from RX FIFO are sign-extended

0

Data from RX FIFO are not sign-extended

Bit 13 – IGNROV Ignore Receive Overflow bit

ValueDescription
1

A Receive Overflow (ROV) is NOT a critical error; during ROV, data in the FIFO are not overwritten by the receive data

0

A ROV is a critical error that stops SPI operation

Bit 12 – IGNTUR Ignore Transmit Underrun bit

ValueDescription
1

A Transmit Underrun (TUR) is NOT a critical error and data indicated by URDTEN are transmitted until the SPIxTXB is not empty

0

A TUR is a critical error that stops SPI operation

Bit 11 – AUDMONO  Audio Data Format Transmit bit(2)

ValueDescription
1

Audio data are mono (i.e., each data word is transmitted on both left and right channels)

0

Audio data are stereo

Bit 10 – URDTEN  Transmit Underrun Data Enable bit(3)

ValueDescription
1

Transmits data out of SPIxURDT register during Transmit Underrun conditions

0

Transmits the last received data during Transmit Underrun conditions

Bits 9:8 – AUDMOD[1:0]  Audio Protocol Mode Selection bits(4)

ValueDescription
11

PCM/DSP mode

10

Right Justified mode: This module functions as if SPIFE = 1, regardless of its actual value

01

Left Justified mode: This module functions as if SPIFE = 1, regardless of its actual value

00

I2S mode: This module functions as if SPIFE = 0, regardless of its actual value

Bit 7 – FRMEN Framed SPIx Support bit

ValueDescription
1

Framed SPIx support is enabled (SSx pin is used as the FSYNC input/output)

0

Framed SPIx support is disabled

Bit 6 – FRMSYNC Frame Sync Pulse Direction Control bit

ValueDescription
1

Frame Sync pulse input (Client)

0

Frame Sync pulse output (Host)

Bit 5 – FRMPOL Frame Sync/Client Select Polarity bit

ValueDescription
1

Frame Sync pulse/Client select is active-high

0

Frame Sync pulse/Client select is active-low

Bit 4 – MSSEN Host Mode Client Select Enable bit

ValueDescription
1

SPIx Client select support is enabled with polarity determined by FRMPOL (SSx pin is automatically driven during transmission in Host mode)

0

Client select SPIx support is disabled (SSx pin will be controlled by port I/O)

Bit 3 – FRMSYPW Frame Sync Pulse-Width bit

ValueDescription
1

Frame Sync pulse is one serial word length wide (as defined by MODE[32,16]/WLENGTH[4:0])

0

Frame Sync pulse is one clock (SCKx) wide

Bits 2:0 – FRMCNT[2:0] Frame Sync Pulse Counter bits

Controls the number of serial words transmitted per Sync pulse.

ValueDescription
111

Reserved

110

Reserved

101

Generates a Frame Sync pulse on every 32 serial words

100

Generates a Frame Sync pulse on every 16 serial words

011

Generates a Frame Sync pulse on every 8 serial words

010

Generates a Frame Sync pulse on every 4 serial words

001

Generates a Frame Sync pulse on every 2 serial words (value used by audio protocols)

000

Generates a Frame Sync pulse on each serial word