MCP3301T MICROCHIP [Microchip Technology], MCP3301T Datasheet - Page 24

no-image

MCP3301T

Manufacturer Part Number
MCP3301T
Description
13-Bit Differential Input, Low Power A/D Converter with SPI Serial Interface
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP3301T-BI/MS
Manufacturer:
MICROCHIP
Quantity:
1 000
Part Number:
MCP3301T-CI/SN
Manufacturer:
MCP
Quantity:
20 000
MCP3301
6.3
With most microcontroller SPI ports, it is required to
clock out eight bits at a time. Using a hardware SPI port
with the MCP3301 is very easy because each conver-
sion requires 16 clocks. For example,
Figure 6-5
to a microcontroller with a standard SPI port. Since the
MCP3301 always clocks data out on the falling edge of
clock, the MCU SPI port must be configured to match
this operation. SPI Mode 0,0 (clock idles low) and SPI
Mode 1,1 (clock idles high) are both compatible with
the MCP3301.
in SPI Mode 0,0, which requires that the CLK from the
microcontroller idles in the ‘low’ state. As shown in the
diagram, the sign bit is clocked out of the ADC on the
FIGURE 6-4:
(Mode 0,0: SCLK idles low).
FIGURE 6-5:
(Mode 1,1: SCLK idles high).
DS21700D-page 24
D
D
CLK
CLK
CS
CS
OUT
OUT
Using the MCP3301 with
Microcontroller (MCU) SPI Ports
HI-Z
HI-Z
show how the MCP3301 can be interfaced
?
?
Data stored into MCU receive register
after transmission of first 8 bits
1
1
Figure 6-4
Data stored into MCU receive register
after transmission of first 8 bits
?
?
2
2
NULL
NULL
BIT SB B11 B10
BIT SB
0
0
SPI Communication with the MCP3301 using 8-bit segments
SPI Communication with the MCP3301 using 8-bit segments
3
3
SB
SB
depicts the operation shown
4
4
B11 B10 B9
B11 B10 B9
B11 B10 B9
5
5
6
6
B9
Figure 6-4
7
7
B8
B8
B8
8
B8
8
B7
and
B7
B7
B7
Data stored into MCU receive register
after transmission of second 8 bits
Data stored into MCU receive register
after transmission of second 8 bits
9
9
B6
B6
B6
B6
10
10
B5
B5
B5
B5
11
11
B4
B4
falling edge of the third clock pulse, followed by the
remaining 12 data bits (MSB first). Once the first eight
clocks have been sent to the device, the microcon-
troller’s receive buffer will contain two unknown bits (for
the first two clocks, the output is high impedance),
followed by the null bit, the sign bit and the highest
order four bits of the conversion. After the second eight
clocks have been sent to the device, the MCU receive
register will contain the lowest order 8 data bits. Notice
that, on the falling edge of clock 16, the ADC has begun
to shift out LSB first data.
Figure 6-5
which requires that the clock idles in the high state. As
with mode 0,0, the ADC outputs data on the falling
edge of the clock and the MCU latches data from the
ADC in on the rising edge of the clock.
B4
B4
12
12
B3
B3
B3
B3
13
13
B2
B2
B2
B2
14
14
shows the same scenario in SPI Mode 1,1,
B1
B1
B1
B1
15
15
B0
B0
B0
16
16
B0
B1
HI-Z
HI-Z
 2011 Microchip Technology Inc.
LSB first data begins
to come out
LSB first data begins
to come out
MCU latches data from ADC
on rising edges of SCLK
MCU latches data from ADC
on rising edges of SCLK
Data is clocked out of
ADC on falling edges
Data is clocked out of
ADC on falling edges
X = Don’t Care Bits
? = Unknown Bits
X = Don’t Care Bits
? = Unknown Bits

Related parts for MCP3301T