数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

MCP3204-CIP 数据表(PDF) 16 Page - Microchip Technology

部件名 MCP3204-CIP
功能描述  2.7V 4-Channel/8-Channel 12-Bit A/D Converters with SPI Serial Interface
PDF  20 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  MICROCHIP [Microchip Technology]
网页  http://www.microchip.com
标志 MICROCHIP - Microchip Technology

MCP3204-CIP 数据表(HTML) 16 Page - Microchip Technology

Back Button MCP3204-CIP Datasheet HTML 12Page - Microchip Technology MCP3204-CIP Datasheet HTML 13Page - Microchip Technology MCP3204-CIP Datasheet HTML 14Page - Microchip Technology MCP3204-CIP Datasheet HTML 15Page - Microchip Technology MCP3204-CIP Datasheet HTML 16Page - Microchip Technology MCP3204-CIP Datasheet HTML 17Page - Microchip Technology MCP3204-CIP Datasheet HTML 18Page - Microchip Technology MCP3204-CIP Datasheet HTML 19Page - Microchip Technology MCP3204-CIP Datasheet HTML 20Page - Microchip Technology  
Zoom Inzoom in Zoom Outzoom out
 16 / 20 page
background image
MCP3204/3208
DS21298B-page 16
Preliminary
© 1999 Microchip Technology Inc.
6.0
APPLICATIONS INFORMATION
6.1
Using the MCP3204/3208 with
Microcontroller (MCU) SPI Ports
With most microcontroller SPI ports, it is required to
send groups of eight bits. It is also required that the
microcontroller SPI port be configured to clock out data
on the falling edge of clock and latch data in on the rising
edge. Because communication with the MCP3204/3208
devices may not need multiples of eight clocks, it will be
necessary to provide more clocks than are required.
This is usually done by sending ‘leading zeros’ before
the start bit. As an example, Figure 6-1 and Figure 6-2
shows how the MCP3204/3208 can be interfaced to a
MCU with a hardware SPI port. Figure 6-1 depicts the
operation shown in SPI Mode 0,0 which requires that the
SCLK from the MCU idles in the ‘low’ state, while
Figure 6-2 shows the similar case of SPI Mode 1,1
where the clock idles in the ‘high’ state.
As shown in Figure 6-1, the first byte transmitted to the
A/D Converter contains five leading zeros before the
start bit. Arranging the leading zeros this way produces
the output 12 bits to fall in positions easily manipulated
by the MCU. The MSB is clocked out of the A/D Con-
verter on the falling edge of clock number 12. After the
second eight clocks have been sent to the device, the
MCUs receive buffer will contain three unknown bits
(the output is at high impedance for the first two clocks),
the null bit and the highest order four bits of the conver-
sion. After the third byte has been sent to the device, the
receive register will contain the lowest order eight bits of
the conversion results. Easier manipulation of the con-
verted data can be obtained by using this method.
Figure 6-2 shows the same thing in SPI Mode 1,1
which requires that the clock idles in the high state. As
with mode 0,0, the A/D Converter outputs data on the
falling edge of the clock and the MCU latches data from
the A/D Converter in on the rising edge of the clock.
FIGURE 6-1:
SPI Communication using 8-bit segments (Mode 0,0: SCLK idles low).
FIGURE 6-2:
SPI Communication using 8-bit segments (Mode 1,1: SCLK idles high).
1
2
3
4
5
6
7
8
9
10
1112
1314
15
16
CS
SCLK
DIN
X = Don’t Care Bits
17
18
19
20
21
22
23
24
DOUT
NULL
BIT
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
HI-Z
MCU latches data from A/D Converter
Data is clocked out of
A/D Converter on falling edges
on rising edges of SCLK
DO
Don’t Care
SGL/
DIFF
D1
D2
Start
000
00
1
XX
X
X
X
DO
XXX
X
X
XX
X
B7
B6
B5
B4
B3
B2
B1
B0
B11
B10
B9
B8
0
??
????
??
???
D1
D2
SGL/
DIFF
Start
Bit
(Null)
MCU Transmitted Data
(Aligned with falling
edge of clock)
MCU Received Data
(Aligned with rising
edge of clock)
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
1
2
3
4
5
6
7
8
9
10
1112
1314
15
16
CS
SCLK
DIN
X = Don’t Care Bits
17
18
19
20
21
22
23
24
DOUT
DO
Don’t Care
NULL
BIT
B11
B10
B9
B8
B6
B5
B4
B3
B2
B1
B0
HI-Z
000
0
0
1
XX
X
X
X
DO
SGL/
DIFF
XXX
X
X
XX
X
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)
D1
D2
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com