English
Language : 

PIC24EP256GU810-I Datasheet, PDF (341/622 Pages) Electronic Film Capacitors, Inc. – 16-Bit Microcontrollers and Digital Signal Controllers with High-Speed PWM, USB and Advanced Analog
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
REGISTER 18-2: SPIXCON1: SPIX CONTROL REGISTER 1
U-0
U-0
U-0
R/W-0
R/W-0
—
—
—
DISSCK DISSDO
bit 15
R/W-0
MODE16
R/W-0
SMP(4)
R/W-0
CKE(1)
bit 8
R/W-0
SSEN(2)
bit 7
R/W-0
CKP
R/W-0
MSTEN
R/W-0
R/W-0
SPRE<2:0>(3)
R/W-0
R/W-0
R/W-0
PPRE<1:0>(3)
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 15-13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
Unimplemented: Read as ‘0’
DISSCK: Disable SCKx Pin bit (SPIx Master modes only)
1 = Internal SPIx clock is disabled, pin functions as I/O
0 = Internal SPIx clock is enabled
DISSDO: Disable SDOx Pin bit
1 = SDOx pin is not used by the module; pin functions as I/O
0 = SDOx pin is controlled by the module
MODE16: Word/Byte Communication Select bit
1 = Communication is word-wide (16 bits)
0 = Communication is byte-wide (8 bits)
SMP: SPIx Data Input Sample Phase bit(4)
Master mode:
1 = Input data is sampled at end of data output time
0 = Input data is sampled at middle of data output time
Slave mode:
The SMP bit must be cleared when SPIx module is used in Slave mode.
CKE: SPIx Clock Edge Select bit(1)
1 = Serial output data changes on transition from active clock state to Idle clock state (refer to bit 6)
0 = Serial output data changes on transition from Idle clock state to active clock state (refer to bit 6)
SSEN: Slave Select Enable bit (Slave mode)(2)
1 = SSx pin is used for Slave mode
0 = SSx pin is not used by module, pin is controlled by port function
CKP: Clock Polarity Select bit
1 = Idle state for clock is a high level; active state is a low level
0 = Idle state for clock is a low level; active state is a high level
MSTEN: Master Mode Enable bit
1 = Master mode
0 = Slave mode
Note 1:
2:
3:
4:
The CKE bit is not used in the Framed SPIx modes. Program this bit to ‘0’ for Framed SPIx modes
(FRMEN = 1).
This bit must be cleared when FRMEN = 1.
Do not set both primary and secondary prescalers to a value of 1:1.
The SMP bit must be set only after setting the MSTEN bit. The SMP bit remains cleared if MSTEN = 0.
 2009-2012 Microchip Technology Inc.
DS70616G-page 341