Microchip Technology DV320032 Data Sheet

Page of 344
PIC32MX330/350/370/430/450/470
DS60001185C-page  196
 2012-2013 Microchip Technology Inc.
bit 5
MSTEN: Master Mode Enable bit
1 = Master mode
0  = Slave  mode
bit 4
DISSDI: Disable SDI bit 
1 = SDI pin is not used by the SPI module (pin is controlled by PORT function)
0 = SDI pin is controlled by the SPI module
bit 3-2
STXISEL<1:0>: SPI Transmit Buffer Empty Interrupt Mode bits
11 = Interrupt is generated when the buffer is not full (has one or more empty elements)
10 = Interrupt is generated when the buffer is empty by one-half or more
01 = Interrupt is generated when the buffer is completely empty
00 = Interrupt is generated when the last transfer is shifted out of SPISR and transmit operations are 
complete
bit 1-0
SRXISEL<1:0>: SPI Receive Buffer Full Interrupt Mode bits
11 = Interrupt is generated when the buffer is full
10 = Interrupt is generated when the buffer is full by one-half or more
01 = Interrupt is generated when the buffer is not empty
00 = Interrupt is generated when the last word in the receive buffer is read (i.e., buffer is empty)
REGISTER 17-1:
SPIxCON: SPI CONTROL REGISTER  (CONTINUED)
Note 1:
When using the 1:1 PBCLK divisor, the user software should not read or write the peripheral’s SFRs in the 
SYSCLK cycle immediately following the instruction that clears the module’s ON bit.
2:
This bit can only be written when the ON bit = 0.
3:
This bit is not used in the Framed SPI mode. The user should program this bit to ‘0’ for the Framed SPI 
mode (FRMEN = 1).
4:
When AUDEN = 1, the SPI module functions as if the CKP bit is equal to ‘1’, regardless of the actual value 
of CKP.