Datasheet
MCP3302/04
DS21697F-page 28 2011 Microchip Technology Inc.
FIGURE 6-5: SPI Communication with the MCP3302/04 using 8-bit segments
(Mode 1,1: SCLK idles high).
123
4
567 8
9
10 11 12 13 14 15
16
CS
SCLK
D
IN
17 18
19
20
21
22 23 24
D
OUT
Don’t Care
NULL
BIT
B11
B10 B9
B8
B6 B5 B4 B3 B2 B1 B0
HI-Z
00001 XXXXXDO
SGL/
DIFF
XX
XX
X
XXX
B7 B6 B5 B4 B3 B2 B1 B0
B11 B10
B9 B8
0
?
?
?
?
???? ??
MCU latches data from A/D Converter
on rising edges of SCLK
Data is clocked out of
A/D Converter on falling edges
D1
D2
SGL/
DIFF
Start
Bit
(Null)
D0D1
Start
MCU Transmitted Data
(Aligned with falling
edge of clock)
MCU Received Data
(Aligned with rising
edge of clock)
B7
X
Data stored into MCU receive
register after transmission of first
8 bits
Data stored into MCU receive
register after transmission of
second 8 bits
Data stored into MCU receive
register after transmission of last
8 bits
SB
X
SB
D2
Don’t Care
X = Don’t Care Bits
? = Unknown Bits