поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

MCP3302 датащи(PDF) 28 Page - Microchip Technology

номер детали MCP3302
подробное описание детали  13-Bit Differential Input, Low Power A/D Converter with SPI Serial Interface
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

MCP3302 датащи(HTML) 28 Page - Microchip Technology

Back Button MCP3302 Datasheet HTML 24Page - Microchip Technology MCP3302 Datasheet HTML 25Page - Microchip Technology MCP3302 Datasheet HTML 26Page - Microchip Technology MCP3302 Datasheet HTML 27Page - Microchip Technology MCP3302 Datasheet HTML 28Page - Microchip Technology MCP3302 Datasheet HTML 29Page - Microchip Technology MCP3302 Datasheet HTML 30Page - Microchip Technology MCP3302 Datasheet HTML 31Page - Microchip Technology MCP3302 Datasheet HTML 32Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 46 page
background image
MCP3302/04
DS21697E-page 28
© 2008 Microchip Technology Inc.
6.3
Using the MCP3302/04 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
MCP3302 and MCP3304 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. For
example, Figure 6-4 and Figure 6-5 show how the
MCP3302/04 devices can be interfaced to a MCU with
a hardware SPI port. Figure 6-4 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-5
shows the similar case of SPI Mode 1,1, where the
clock idles in the ‘high’ state.
As shown in Figure 6-4, the first byte transmitted to the
A/D Converter contains 6 leading zeros before the start
bit. Arranging the leading zeros this way produces the
13 data bits to fall in positions easily manipulated by the
MCU. The sign bit is clocked out of the A/D Converter
on the falling edge of clock number 11, followed by the
remaining data bits (MSB first). After the second eight
clocks have been sent to the device, the MCU receive
buffer will contain 2 unknown bits (the output is at high-
impedance for the first two clocks), the null bit, the sign
bit, and the 4 highest order bits of the conversion. 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
converted data can be obtained by using this method.
Figure 6-5 shows the same situation 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-4:
SPI Communication with the MCP3302/04 using 8-bit segments
(Mode 0,0: SCLK idles low).
1
2
3
4
5
6
7
8
9
10
11
1213
1415
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
Don’t Care
SGL/
DIFF
D0
D1
Start
0000
1X
X
XX
X
DO
XX
X
X
XXX
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
X
SB
SB
D2
? = Unknown Bits



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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