MCP4728 Microchip Technology Inc., MCP4728 Datasheet - Page 29

no-image

MCP4728

Manufacturer Part Number
MCP4728
Description
12-bit, Quad Digital-to-analog Converter With Eeprom Memory
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP4728-E/SL
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP4728-E/UN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP4728-E/UN
0
Part Number:
MCP4728A0-E/UN
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP4728A0T-E/UN
Manufacturer:
VISHAY
Quantity:
87 000
Part Number:
MCP4728A0T-E/UN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP4728A1-E/UN
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP4728A1-E/UN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP4728A1T-E/UN
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
MCP4728A1T-E/UN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP4728A2T-E/UN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
MCP4728A5-E/UN
0
Part Number:
MCP4728T-E/UN
0
5.0
The MCP4728 device uses a two-wire I
interface. When the device is connected to the I
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 I
commands.
5.1
An example of hardware connection diagram is shown
in
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 I
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
Refer to the Philips I
the I
5.1.1
The I
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
© 2009 Microchip Technology Inc.
3.4 Mbit/s
Figure
2
2
C specifications.
C specification requires that a high-speed mode
I
COMMUNICATIONS
Overview of I
Communications
7-1. A device that sends data onto the bus is
2
C SERIAL INTERFACE
HIGH-SPEED (HS) MODE
2
C document for more details of
2
C Serial Interface
2
C serial interface
2
2
C serial
C serial
2
C bus
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 I
modes, please refer to the Philips I
5.2
The specification of the I
defines the following bus protocol:
• Data transfer may be initiated only when the bus
• During data transfer, the data line must remain
Accordingly, the following bus conditions have been
defined using
5.2.1
Both data and clock lines remain HIGH.
5.2.2
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
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
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
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.
is not busy.
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.
I
2
C BUS CHARACTERISTICS
BUS NOT BUSY (A)
START DATA TRANSFER (B)
STOP DATA TRANSFER (C)
DATA VALID (D)
ACKNOWLEDGE
Figure
5-1.
2
C serial communication
MCP4728
2
C specification.
DS22187A-page 29
2
C

Related parts for MCP4728