I2C MODE" />
鍙冩暩(sh霉)璩囨枡
鍨嬭櫉锛� ATMEGA324P-B15MZ
寤犲晢锛� Atmel
鏂囦欢闋佹暩(sh霉)锛� 24/70闋�
鏂囦欢澶�?銆�?/td> 0K
鎻忚堪锛� IC MCU 8BIT 32KB FLASH 44VQFN
妯�(bi膩o)婧�(zh菙n)鍖呰锛� 4,000
绯诲垪锛� AVR® ATmega
鏍稿績铏曠悊鍣細 AVR
鑺珨灏哄锛� 8-浣�
閫熷害锛� 16MHz
閫i€氭€э細 I²C锛孲PI锛孶ART/USART
澶栧湇瑷�(sh猫)鍌欙細 娆犲妾㈡脯/寰�(f霉)浣�锛孭OR锛孭WM锛學DT
杓稿叆/杓稿嚭鏁�(sh霉)锛� 32
绋嬪簭瀛樺劜鍣ㄥ閲忥細 32KB锛�16K x 16锛�
绋嬪簭瀛樺劜鍣ㄩ鍨嬶細 闁冨瓨
EEPROM 澶у皬锛� 1K x 8
RAM 瀹归噺锛� 2K x 8
闆诲 - 闆绘簮 (Vcc/Vdd)锛� 2.7 V ~ 5.5 V
鏁�(sh霉)鎿�(j霉)杞�(zhu菐n)鎻涘櫒锛� A/D 8x10b
鎸暕鍣ㄥ瀷锛� 鍏�(n猫i)閮�
宸ヤ綔婧害锛� -40°C ~ 125°C
灏佽/澶栨锛� 44-VFQFN 瑁搁湶鐒婄洡
鍖呰锛� 甯跺嵎 (TR)
鍏跺畠鍚嶇ū锛� ATMEGA324P-B15MZ-ND
PIC16(L)F1826/27
DS41391D-page 242
2011 Microchip Technology Inc.
25.3
I2C
MODE OVERVIEW
The Inter-Integrated Circuit Bus (IC) is a multi-master
serial data communication bus. Devices communicate
in a master/slave environment where the master
devices initiate the communication. A Slave device is
controlled through addressing.
The I2C bus specifies two signal connections:
Serial Clock (SCLx)
Serial Data (SDAx)
Figure 25-11 shows the block diagram of the MSSPx
module when operating in I2C Mode.
Both the SCLx and SDAx connections are bidirectional
open-drain lines, each requiring pull-up resistors for the
supply voltage. Pulling the line to ground is considered
a logical zero and letting the line float is considered a
logical one.
Figure 25-11 shows a typical connection between two
processors configured as master and slave devices.
The I2C bus can operate with one or more master
devices and one or more slave devices.
There are four potential modes of operation for a given
device:
Master Transmit mode
(master is transmitting data to a slave)
Master Receive mode
(master is receiving data from a slave)
Slave Transmit mode
(slave is transmitting data to a master)
Slave Receive mode
(slave is receiving data from the master)
To begin communication, a master device starts out in
Master Transmit mode. The master device sends out a
Start bit followed by the address byte of the slave it
intends to communicate with. This is followed by a sin-
gle Read/Write bit, which determines whether the mas-
ter intends to transmit to or receive data from the slave
device.
If the requested slave exists on the bus, it will respond
with an Acknowledge bit, otherwise known as an ACK.
The master then continues in either Transmit mode or
Receive mode and the slave continues in the comple-
ment, either in Receive mode or Transmit mode,
respectively.
A Start bit is indicated by a high-to-low transition of the
SDAx line while the SCLx line is held high. Address and
data bytes are sent out, Most Significant bit (MSb) first.
The Read/Write bit is sent out as a logical one when the
master intends to read data from the slave, and is sent
out as a logical zero when it intends to write data to the
slave.
FIGURE 25-11:
I2C MASTER/
SLAVE CONNECTION
The Acknowledge bit (ACK) is an active-low signal,
which holds the SDAx line low to indicate to the trans-
mitter that the slave device has received the transmit-
ted data and is ready to receive more.
The transition of a data bit is always performed while
the SCLx line is held low. Transitions that occur while
the SCLx line is held high are used to indicate Start and
Stop bits.
If the master intends to write to the slave, then it repeat-
edly sends out a byte of data, with the slave responding
after each byte with an ACK bit. In this example, the
master device is in Master Transmit mode and the
slave is in Slave Receive mode.
If the master intends to read from the slave, then it
repeatedly receives a byte of data from the slave, and
responds after each byte with an ACK bit. In this exam-
ple, the master device is in Master Receive mode and
the slave is Slave Transmit mode.
On the last byte of data communicated, the master
device may end the transmission by sending a Stop bit.
If the master device is in Receive mode, it sends the
Stop bit in place of the last ACK bit. A Stop bit is indi-
cated by a low-to-high transition of the SDAx line while
the SCLx line is held high.
In some cases, the master may want to maintain con-
trol of the bus and re-initiate another transmission. If
so, the master device may send another Start bit in
place of the Stop bit or last ACK bit when it is in receive
mode.
The I2C bus specifies three message protocols;
Single message where a master writes data to a
slave.
Single message where a master reads data from
a slave.
Combined message where a master initiates a
minimum of two writes, or two reads, or a
combination of writes and reads, to one or more
slaves.
Master
SCLx
SDAx
SCLx
SDAx
Slave
VDD
鐩搁棞(gu膩n)PDF璩囨枡
PDF鎻忚堪
AT91SAM7S64C-MU-999 IC ARM7 MCU FLASH 64K 64QFN
LX128V-32FN208C IC SWITCH DIGITAL 208FPBGA
AT91SAM7S64C-AU-999 IC ARM7 MCU 32BIT 64K 64LQFP
LX128EV-5FN208I IC SWITCH DIGITAL 208FPBGA
LX128EV-32FN208C IC SWITCH DIGITAL 208FPBGA
鐩搁棞(gu膩n)浠g悊鍟�/鎶€琛�(sh霉)鍙冩暩(sh霉)
鍙冩暩(sh霉)鎻忚堪
ATMEGA324PB-AN 鍔熻兘鎻忚堪:IC MCU 8BIT 32KB FLASH 44TQFP 鍒堕€犲晢:microchip technology 绯诲垪:AVR? ATmega 鍖呰:鎵樼洡 闆朵欢鐙€鎱�(t脿i):鍦ㄥ敭 鏍稿績铏曠悊鍣�:AVR 鏍稿績灏哄:8-浣� 閫熷害:20MHz 閫f帴鎬�:I2C锛孲PI锛孶ART/USART 澶栬ō(sh猫):娆犲妾㈡脯/寰�(f霉)浣�锛孭OR锛孭WM锛學DT I/O 鏁�(sh霉):39 绋嬪簭瀛樺劜瀹归噺:32KB锛�16K x 16锛� 绋嬪簭瀛樺劜鍣ㄩ鍨�:闁冨瓨 EEPROM 瀹归噺:1K x 8 RAM 瀹归噺:2K x 8 闆诲 - 闆绘簮锛圴cc/Vdd锛�:1.8 V ~ 5.5 V 鏁�(sh霉)鎿�(j霉)杞�(zhu菐n)鎻涘櫒:A/D 8x10b 鎸暕鍣ㄩ鍨�:鍏�(n猫i)閮� 宸ヤ綔婧害:-40掳C ~ 105掳C锛圱A锛� 灏佽/澶栨:44-TQFP 渚涙噳(y墨ng)鍟嗗櫒浠跺皝瑁�:44-TQFP 妯�(bi膩o)婧�(zh菙n)鍖呰:160
ATMEGA324PB-ANR 鍔熻兘鎻忚堪:IC MCU 8BIT 32KB FLASH 44TQFP 鍒堕€犲晢:microchip technology 绯诲垪:AVR? ATmega 鍖呰:鍓垏甯讹紙CT锛� 闆朵欢鐙€鎱�(t脿i):鍦ㄥ敭 鏍稿績铏曠悊鍣�:AVR 鏍稿績灏哄:8-浣� 閫熷害:20MHz 閫f帴鎬�:I2C锛孲PI锛孶ART/USART 澶栬ō(sh猫):娆犲妾㈡脯/寰�(f霉)浣�锛孭OR锛孭WM锛學DT I/O 鏁�(sh霉):39 绋嬪簭瀛樺劜瀹归噺:32KB锛�16K x 16锛� 绋嬪簭瀛樺劜鍣ㄩ鍨�:闁冨瓨 EEPROM 瀹归噺:1K x 8 RAM 瀹归噺:2K x 8 闆诲 - 闆绘簮锛圴cc/Vdd锛�:1.8 V ~ 5.5 V 鏁�(sh霉)鎿�(j霉)杞�(zhu菐n)鎻涘櫒:A/D 8x10b 鎸暕鍣ㄩ鍨�:鍏�(n猫i)閮� 宸ヤ綔婧害:-40掳C ~ 105掳C锛圱A锛� 灏佽/澶栨:44-TQFP 渚涙噳(y墨ng)鍟嗗櫒浠跺皝瑁�:44-TQFP 妯�(bi膩o)婧�(zh菙n)鍖呰:1
ATMEGA324PB-AU 鍔熻兘鎻忚堪:IC MCU 8BIT 32KB FLASH 44TQFP 鍒堕€犲晢:microchip technology 绯诲垪:AVR? ATmega 鍖呰:鏁h 闆朵欢鐙€鎱�(t脿i):鍦ㄥ敭 鏍稿績铏曠悊鍣�:AVR 鏍稿績灏哄:8-浣� 閫熷害:20MHz 閫f帴鎬�:I2C锛孲PI锛孶ART/USART 澶栬ō(sh猫):娆犲妾㈡脯/寰�(f霉)浣�锛孭OR锛孭WM锛學DT I/O 鏁�(sh霉):39 绋嬪簭瀛樺劜瀹归噺:32KB锛�16K x 16锛� 绋嬪簭瀛樺劜鍣ㄩ鍨�:闁冨瓨 EEPROM 瀹归噺:1K x 8 RAM 瀹归噺:2K x 8 闆诲 - 闆绘簮锛圴cc/Vdd锛�:1.8 V ~ 5.5 V 鏁�(sh霉)鎿�(j霉)杞�(zhu菐n)鎻涘櫒:A/D 8x10b 鎸暕鍣ㄩ鍨�:鍏�(n猫i)閮� 宸ヤ綔婧害:-40掳C ~ 85掳C锛圱A锛� 灏佽/澶栨:44-TQFP 渚涙噳(y墨ng)鍟嗗櫒浠跺皝瑁�:44-TQFP 妯�(bi膩o)婧�(zh菙n)鍖呰:160
ATMEGA324PB-AUR 鍔熻兘鎻忚堪:IC MCU 8BIT 32KB FLASH 44TQFP 鍒堕€犲晢:microchip technology 绯诲垪:AVR? ATmega 鍖呰:甯跺嵎锛圱R锛� 闆朵欢鐙€鎱�(t脿i):鍦ㄥ敭 鏍稿績铏曠悊鍣�:AVR 鏍稿績灏哄:8-浣� 閫熷害:20MHz 閫f帴鎬�:I2C锛孲PI锛孶ART/USART 澶栬ō(sh猫):娆犲妾㈡脯/寰�(f霉)浣�锛孭OR锛孭WM锛學DT I/O 鏁�(sh霉):39 绋嬪簭瀛樺劜瀹归噺:32KB锛�16K x 16锛� 绋嬪簭瀛樺劜鍣ㄩ鍨�:闁冨瓨 EEPROM 瀹归噺:1K x 8 RAM 瀹归噺:2K x 8 闆诲 - 闆绘簮锛圴cc/Vdd锛�:1.8 V ~ 5.5 V 鏁�(sh霉)鎿�(j霉)杞�(zhu菐n)鎻涘櫒:A/D 8x10b 鎸暕鍣ㄩ鍨�:鍏�(n猫i)閮� 宸ヤ綔婧害:-40掳C ~ 85掳C锛圱A锛� 灏佽/澶栨:44-TQFP 渚涙噳(y墨ng)鍟嗗櫒浠跺皝瑁�:44-TQFP 妯�(bi膩o)婧�(zh菙n)鍖呰:2,000
ATMEGA324PB-MN 鍔熻兘鎻忚堪:IC MCU 8BIT 32KB FLASH 44VQFN 鍒堕€犲晢:microchip technology 绯诲垪:AVR? ATmega 鍖呰:鎵樼洡 闆朵欢鐙€鎱�(t脿i):鍦ㄥ敭 鏍稿績铏曠悊鍣�:AVR 鏍稿績灏哄:8-浣� 閫熷害:20MHz 閫f帴鎬�:I2C锛孲PI锛孶ART/USART 澶栬ō(sh猫):娆犲妾㈡脯/寰�(f霉)浣嶏紝POR锛孭WM锛學DT I/O 鏁�(sh霉):39 绋嬪簭瀛樺劜瀹归噺:32KB锛�16K x 16锛� 绋嬪簭瀛樺劜鍣ㄩ鍨�:闁冨瓨 EEPROM 瀹归噺:1K x 8 RAM 瀹归噺:2K x 8 闆诲 - 闆绘簮锛圴cc/Vdd锛�:1.8 V ~ 5.5 V 鏁�(sh霉)鎿�(j霉)杞�(zhu菐n)鎻涘櫒:A/D 8x10b 鎸暕鍣ㄩ鍨�:鍏�(n猫i)閮� 宸ヤ綔婧害:-40掳C ~ 105掳C锛圱A锛� 灏佽/澶栨:44-VFQFN 瑁搁湶鐒婄洡 渚涙噳(y墨ng)鍟嗗櫒浠跺皝瑁�:44-VQFN锛�7x7锛� 妯�(bi膩o)婧�(zh菙n)鍖呰:360