| поискавой системы для электроныых деталей |
|
MCP4728 датащи(PDF) 29 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP4728 датащи(HTML) 29 Page - Microchip Technology |
|
29 / 66 page ![]() © 2009 Microchip Technology Inc. DS22187C-page 29 MCP4728 5.0 I2C SERIAL INTERFACE COMMUNICATIONS The MCP4728 device uses a two-wire I2C serial interface. When the device is connected to the I2C bus line, the device works as a slave device. The device supports standard, fast and high speed modes. The following sections describes how to communicate the MCP4728 device using the I2C serial interface commands. 5.1 Overview of I2C Serial Interface Communications An example of hardware connection diagram is shown in Figure 7-1. A device that sends data onto the bus is defined as transmitter, and a device receiving data as receiver. The bus has to be controlled by a master (MCU) device which generates the serial clock (SCL), controls the bus access and generates the START and STOP conditions. Both master (MCU) and slave (MCP4728) can operate as transmitter or receiver, but the master device determines which mode is activated. Communication is initiated by the master (MCU) which sends the START bit, followed by the slave (MCP4728) address byte. The first byte transmitted is always the slave (MCP4728) address byte, which contains the device code (1100), the address bits (A2, A1, A0), and the R/W bit. The device code for the MCP4728 device is 1100, and the address bits are user-writable. When the MCP4728 device receives a read command (R/W = 1), it transmits the contents of the DAC input registers and EEPROM sequentially. When writing to the device (R/W = 0), the device will expect write command type bits in the following byte. The reading and various writing commands are explained in the following sections. The MCP4728 device supports all three I2C serial communication operating modes: • Standard Mode: bit rates up to 100 kbit/s • Fast Mode: bit rates up to 400 kbit/s • High Speed Mode (HS mode): bit rates up to 3.4 Mbit/s Refer to the Philips I2C document for more details of the I2C specifications. 5.1.1 HIGH-SPEED (HS) MODE The I2C specification requires that a high-speed mode device must be ‘activated’ to operate in high-speed (3.4 Mbit/s) mode. This is done by sending a special address byte of 00001XXX following the START bit. The XXX bits are unique to the high-speed (HS) mode Master. This byte is referred to as the high-speed (HS) Master Mode Code (HSMMC). The MCP4728 device does not acknowledge this byte. However, upon receiving this command, the device switches to HS mode and can communicate at up to 3.4 Mbit/s on SDA and SCL lines. The device will switch out of the HS mode on the next STOP condition. For more information on the HS mode, or other I2C modes, please refer to the Philips I2C specification. 5.2 I2C BUS CHARACTERISTICS The specification of the I2C serial communication defines the following bus protocol: • Data transfer may be initiated only when the bus is not busy. • During data transfer, the data line must remain stable whenever the clock line is HIGH. Changes in the data line while the clock line is HIGH will be interpreted as a START or STOP condition. Accordingly, the following bus conditions have been defined using Figure 5-1. 5.2.1 BUS NOT BUSY (A) Both data and clock lines remain HIGH. 5.2.2 START DATA TRANSFER (B) A HIGH to LOW transition of the SDA line while the clock (SCL) is HIGH determines a START condition. All commands must be preceded by a START condition. 5.2.3 STOP DATA TRANSFER (C) A LOW to HIGH transition of the SDA line while the clock (SCL) is HIGH determines a STOP condition. All operations must be ended with a STOP condition. 5.2.4 DATA VALID (D) The state of the data line represents valid data when, after a START condition, the data line is stable for the duration of the HIGH period of the clock signal. The data on the line must be changed during the LOW period of the clock signal. There is one clock pulse per bit of data. Each data transfer is initiated with a START condition and terminated with a STOP condition. 5.2.5 ACKNOWLEDGE Each receiving device, when addressed, is obliged to generate an acknowledge after the reception of each byte. The master device must generate an extra clock pulse which is associated with this acknowledge bit. The device that acknowledges, has to pull down the SDA line during the acknowledge clock pulse in such a way that the SDA line is stable LOW during the HIGH period of the acknowledge related clock pulse. Of course, setup and hold times must be taken into account. During reads, a master must send an end of data to the slave by not generating an acknowledge bit on the last byte that has been clocked out of the slave. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| 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 |