English
Language : 

PIC32MX440F256H-80I Datasheet, PDF (394/646 Pages) Microchip Technology – 64/100-Pin General Purpose and USB 32-Bit Flash Microcontrollers
PIC32MX3XX/4XX
FIGURE 17-3:
User writes
to SPIxBUF
SPITBE
SCKx
(CKP = 0
CKE = 0)
SCKx
(CKP = 1
CKE = 0)
SCKx
(CKP = 0
CKE = 1)
SCKx
(CKP = 1
CKE = 0)
SDOx
(CKE = 0)
SDOx
(CKE = 1)
SDIx(2)
(SMP = 0)
Input
Sample(2)
(SMP = 0)
SDIx
(SMP = 1)
Input
Sample
(SMP = 1)
SPI MASTER MODE OPERATION IN 8-BIT MODE (MODE32 = 0, MODE16 = 0)
SPIxTXB to SPIxSR(3)
User writes new data
during transmission
4 Clock modes
(clock output
at the SCKx
pin in Master
mode)(1)
bit 7
bit 6 bit 5
bit 4
bit 3 bit 2
bit 1
bit 0
bit 7
bit 6 bit 5
bit 4
bit 3 bit 2
bit 1
bit 0
bit 7
bit 7
bit 0
bit 0
Two modes
available for
SMP control
bit(4)
SPIxRXIF
Approx. 2 SYSCLK latency to set
SPIxRXIF flag bit
SPIRBF
(SPIxSTAT<0>)
SPIxSR moved
into SPIxRXB
User reads
SPIxBUF
Note 1:
2:
3:
4:
Four SPI Clock modes are shown here to demonstrate the functionality of bits CKP (SPIxCON<6>) and CKE
(SPIxCON<8>). Only one of the four modes can be chosen for operation.
The SDI and input samples shown here for two different values of the SMP bit (SPIxCON<9>) are strictly for
demonstration purposes. Only one of the two configurations of the SMP bit can be chosen during operation.
If there are no pending transmissions, SPIxTXB is transferred to SPIxSR as soon as the user writes to SPIxBUF.
The operation for 8-bit mode is shown. The 16-bit and 32-bit modes are similar.
DS61143E-page 392
Preliminary
© 2008 Microchip Technology Inc.