MCP Bit, Quad Digital-to-Analog Converter with EEPROM Memory. Features. Description. Applications

Similar documents
MCP Bit, Quad Digital-to-Analog Converter with EEPROM Memory. Features. Description. Applications

MCP3426/7/8. 16-Bit, Multi-Channel ΔΣ Analog-to-Digital Converter with I 2 C Interface and On-Board Reference. Features.

Quad, 12-Bit, Low-Power, 2-Wire, Serial Voltage-Output DAC

Dual, 8-Bit, Low-Power, 2-Wire, Serial Voltage-Output DAC

10-Bit, Low-Power, 2-Wire Interface, Serial, Voltage-Output DAC

MCP3425. with I 2 C Interface and On-Board Reference. Features. Description. Block Diagram. Typical Applications. Package Types V IN + V SS SCL

Low-Power, 12-Bit, Rail to Rail Voltage-Output Serial DAC in SOT23

DS1803 Addressable Dual Digital Potentiometer

Quad 12-Bit Digital-to-Analog Converter (Serial Interface)

6-Bit Windowed Volatile DAC with Command Code SDA SCL. Resistance POR/BOR. Range. Value. Data. Value. I 2 C Slave

10-Bit, Low-Power, Rail-to-Rail Voltage-Output Serial DAC in SOT23

TOP VIEW. Maxim Integrated Products 1

+2.7V to +5.5V, Low-Power, Triple, Parallel 8-Bit DAC with Rail-to-Rail Voltage Outputs


12-Bit, Low-Power, Dual, Voltage-Output DAC with Serial Interface

DS1807 Addressable Dual Audio Taper Potentiometer

Low-Power, Low-Glitch, Octal 12-Bit Voltage- Output DACs with Serial Interface

8/10/12-Bit Dual Voltage Output Digital-to-Analog Converter with Internal V REF and SPI Interface. Voltage Reference (V REF ) Internal (2.

MCP3422/3/4. 18-Bit, Multi-Channel ΔΣ Analog-to-Digital Converter with I 2 C Interface and On-Board Reference. Description.

MCP453X/455X/463X/465X

MCP4017/18/19. 7-Bit Single I 2 C Digital POT with Volatile Memory in SC70. Package Types. Features. Device Features MCP4017 MCP4018 MCP4019

+3V/+5V, Low-Power, 8-Bit Octal DACs with Rail-to-Rail Output Buffers

QUAD 12-BIT DIGITAL-TO-ANALOG CONVERTER (12-bit port interface)

8/10/12-Bit Voltage Output Digital-to-Analog Converter with Internal V REF and SPI Interface. Voltage Reference (V REF ) Internal (2.

SCLK 4 CS 1. Maxim Integrated Products 1

SGM8621/2/3/4 3MHz, Rail-to-Rail I/O CMOS Operational Amplifiers

Low-Cost, Voltage-Output, 16-Bit DACs with Internal Reference in µmax

MCP6041/2/3/ na, Rail-to-Rail Input/Output Op Amps. Features. Description. Applications. Design Aids. Package Types.

MCP6S91/2/3. Single-Ended, Rail-to-Rail I/O, Low-Gain PGA. Features. Description. Typical Applications. Package Types.

LTC Bit Rail-to-Rail Micropower DAC in MSOP Package FEATURES

MCP601/1R/2/3/4. 2.7V to 6.0V Single Supply CMOS Op Amps. Features. Description. Typical Applications. Available Tools.

INL PLOT REFIN DAC AMPLIFIER DAC REGISTER INPUT CONTROL LOGIC, REGISTERS AND LATCHES

Pin Configuration Pin Description PI4MSD5V9540B. 2 Channel I2C bus Multiplexer. Pin No Pin Name Type Description. 1 SCL I/O serial clock line

DS4000 Digitally Controlled TCXO

MCP6031/2/3/ µa, High Precision Op Amps. Features. Description. Applications. Design Aids. Package Types. Typical Application

2.5 V to 5.5 V, 230 A, Parallel Interface Dual Voltage-Output 8-/10-/12-Bit DACs AD5332/AD5333/AD5342/AD5343*

SGM8631/2/3 6MHz, Rail-to-Rail I/O CMOS Operational Amplifiers

3V/5V, 12-Bit, Serial Voltage-Output Dual DACs with Internal Reference

8/10/12-Bit Voltage Output Digital-to-Analog Converter with SPI Interface. Voltage Reference (V REF ) Internal (2.048V) V DD 1.

2.5 V to 5.5 V, 500 A, Parallel Interface Quad Voltage-Output 8-/10-/12-Bit DACs AD5334/AD5335/AD5336/AD5344*

I O 7-BIT POT REGISTER ADDRESS COUNT 7-BIT POT. CODE 64 (40h) DS3503

REFH2 REFH3 REFH0 OUT0 CLK OUT2 OUT3 DIN DOUT REFL3 GND REFL1. Maxim Integrated Products 1

INTEGRATED CIRCUITS. PCA channel I 2 C multiplexer and interrupt logic. Product data Supersedes data of 2001 May 07.

PART MAX5304EUA TOP VIEW OUT 8 CONTROL INPUT REGISTER. Maxim Integrated Products 1

+Denotes lead-free package. *EP = Exposed paddle. V CC GND AGND AV CC GND I 2 C INTERFACE. -35dB TO +25dB GAIN AUDIO SOURCE AUDIO AMPLIFIER DS4420

V OUT0 OUT DC-DC CONVERTER FB

INF8574 GENERAL DESCRIPTION

SGM8631/2/3/4 470μA, 6MHz, Rail-to-Rail I/O CMOS Operational Amplifiers

SGM MHz, 48μA, Rail-to-Rail I/O CMOS Operational Amplifier

MCP4021/2/3/4. Low-Cost NV Digital POT with WiperLock Technology. Package Types. Features. Block Diagram. Applications. Description.

Precision, Low-Power and Low-Noise Op Amp with RRIO

FEATURES APPLICATIONS TYPICAL APPLICATION. LTC1451 LTC1452/LTC Bit Rail-to-Rail Micropower DACs in SO-8 DESCRIPTION

DS1621. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT

ADC081C021/ADC081C027 I 2 C-Compatible, 8-Bit Analog-to-Digital Converter (ADC) with Alert Function

MCP6021/1R/2/3/4. Rail-to-Rail Input/Output, 10 MHz Op Amps. Features. Description. Typical Applications. Package Types.

FMS Input, 6-Output Video Switch Matrix with Output Drivers, Input Clamp, and Bias Circuitry

+3 Volt, Serial Input. Complete 12-Bit DAC AD8300

General Description. Benefits and Features. Simplified Block Diagram. Applications

DS1307ZN. 64 X 8 Serial Real Time Clock

MCP3421. with I 2 C Interface and On-Board Reference. Features. Description. Block Diagram. Typical Applications. Package Types V IN + V SS SCL

Dual 16-Bit DIGITAL-TO-ANALOG CONVERTER

EVALUATION KIT AVAILABLE 10-Bit, Dual, Nonvolatile, Linear-Taper Digital Potentiometers TOP VIEW

MCP6271/1R/2/3/4/ µa, 2 MHz Rail-to-Rail Op Amp. Features. Description. Applications. Available Tools. Package Types

AD5602/AD5612/AD V to 5.5 V, <100 μa, 8-/10-/12-Bit nanodacs with I 2 C -Compatible Interface, Tiny SC70 Package FEATURES

FAH4830 Haptic Driver for DC Motors (ERMs) and Linear Resonant Actuators (LRAs)

Quad, 12-/14-/16-Bit nanodacs with 5 ppm/ C On-Chip Reference, I 2 C Interface AD5625R/AD5645R/AD5665R, AD5625/AD5665

ADC081C021/ADC081C027

12-Bit Quad Voltage Output DIGITAL-TO-ANALOG CONVERTER

INTEGRATED CIRCUITS. PCA9544A 4-channel I 2 C multiplexer with interrupt logic. Product data sheet Supersedes data of 2004 Jul 28.

Octal, 16-Bit DAC with 5 ppm/ C On-Chip Reference in 14-Lead TSSOP AD5668-EP

SGM321/SGM358/SGM324 1MHz, 60μA, Rail-to-Rail I/O CMOS Operational Amplifiers

Dual 256-Tap, Volatile, Low-Voltage Linear Taper Digital Potentiometers

Low Noise 300mA LDO Regulator General Description. Features

FP Bit DAC 120mA VCM Driver with I 2 C Interface. Features. Description. Applications. Pin Assignments. Ordering Information FP5510

Temperature Sensor and System Monitor in a 10-Pin µmax

PCA bit I 2 C LED driver with programmable blink rates INTEGRATED CIRCUITS May 05. Product data Supersedes data of 2003 Feb 20

Two-/Four-Channel, I 2 C, 7-Bit Sink/Source Current DAC

+3 V/+5 V, Rail-to-Rail Quad, 8-Bit DAC AD7304/AD7305*

AD5625R/AD5645R/AD5665R, AD5625/AD5665

AD5627R/AD5647R/AD5667R, AD5627/AD5667

Rail-to-Rail, 200kHz Op Amp with Shutdown in a Tiny, 6-Bump WLP

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

Multirange, +5V, 12-Bit DAS with 2-Wire Serial Interface

Advanced Analog Technology, Inc. October 2009 AAT1301 PACKAGE PACKING TEMP RANGE MARKING. T: Tape and Reel. 20 C to +85 C.

Micropower, Single-Supply, Rail-to-Rail, Precision Instrumentation Amplifiers MAX4194 MAX4197

+2.7 V to +5.5 V, Parallel Input, Voltage Output 8-Bit DAC AD7801

Very Low Distortion, Precision Difference Amplifier AD8274

6500V/µs, Wideband, High-Output-Current, Single- Ended-to-Differential Line Drivers with Enable

DS1307/DS X 8 Serial Real Time Clock

ISL Features. Multi-Channel Buffers Plus V COM Driver. Ordering Information. Applications. Pinout FN Data Sheet December 7, 2005

CMOS 12-Bit Serial Input Multiplying DIGITAL-TO-ANALOG CONVERTER

+5 Volt, Parallel Input Complete Dual 12-Bit DAC AD8582

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data sheet Supersedes data of 2004 Sep Oct 01. Philips Semiconductors

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 Feb May 02. Philips Semiconductors

3-Channel Fun LED Driver

Single, 256-Tap Volatile, I2C, Low-Voltage Linear Taper Digital Potentiometer

150mA, Low-Dropout Linear Regulator with Power-OK Output

FEATURES DESCRIPTIO APPLICATIO S LTC1451 LTC1452/LTC Bit Rail-to-Rail Micropower DACs in SO-8 TYPICAL APPLICATIO

Improved Second Source to the EL2020 ADEL2020

DAC7615 FPO DAC7615. Serial Input, 12-Bit, Quad, Voltage Output DIGITAL-TO-ANALOG CONVERTER GND. Input Register A. DAC Register A.

Transcription:

12-Bit, Quad Digital-to-Analog Converter with EEPROM Memory Features 12-Bit Voltage Output DAC with 4 Buffered Outputs On-Board Non-Volatile Memory (EEPROM) for DAC Codes and I 2 C TM Address Bits Internal or External Voltage Reference Selection Output Voltage Range: - Using Internal V REF (2.48V):.V to 2.48V with Gain Setting = 1.V to 4.96V with Gain Setting = 2 - Using External V REF (V DD ):.V to V DD ±.2 LSB DNL (typical) Fast Settling Time: 6 µs (typical) Normal or Power-Down Mode Low Power Consumption Single-Supply Operation: 2.7V to 5.5V I 2 C Interface: - Address bits: User Programmable to EEPROM - Standard (1 kbps), Fast (4 kbps) and High Speed (3.4 Mbps) Modes 1-Lead MSOP Package Extended Temperature Range: -4 C to +125 C Applications Set Point or Offset Adjustment Sensor Calibration Closed-Loop Servo Control Low Power Portable Instrumentation PC Peripherals Programmable Voltage and Current Source Industrial Process Control Instrumentation Bias Voltage Adjustment for Power Amplifiers Description The MCP4728 device is a quad, 12-bit voltage output Digital-to-Analog Convertor (DAC) with non-volatile memory (EEPROM). Its on-board precision output amplifier allows it to achieve rail-to-rail analog output swing. The DAC input codes, device configuration bits, and I 2 C address bits are programmable to the non-volatile memory (EEPROM) by using I 2 C serial interface commands. The non-volatile memory feature enables the DAC device to hold the DAC input codes during power-off time, allowing the DAC outputs to be available immediately after power-up with the saved settings. This feature is very useful when the DAC device is used as a supporting device for other devices in applications network. The MCP4728 device has a high precision internal voltage reference (V REF = 2.48V). The user can select the internal reference or external reference (V DD ) for each channel individually. Each channel can be operated in normal mode or power-down mode individually by setting the configuration register bits. In power-down mode, most of the internal circuits in the powered down channel are turned off for power-savings and the output amplifier can be configured to present a known low, medium, or high resistance output load. The MCP4728 device includes a Power-On-Reset (POR) circuit to ensure reliable power-up and an on-board charge pump for the EEPROM programming voltage. The MCP4728 has a two-wire I 2 C compatible serial interface for standard (1 khz), fast (4 khz), or high speed (3.4 MHz) mode. The MCP4728 DAC is an ideal device for applications requiring design simplicity with high precision, and for applications requiring the DAC device settings to be saved during power-off time. The MCP4728 device is available in a 1-lead MSOP package and operates from a single 2.7V to 5.5V supply voltage. 29 Microchip Technology Inc. DS22187D-page 1

Package Type MSOP-1 V DD 1 1 V SS SCL SDA 2 3 MCP4728 9 8 V OUT D V OUT C LDAC 4 7 V OUT B RDY/BSY 5 6 V OUT A Functional Block Diagram LDAC V DD V SS EEPROM A INPUT REGISTER A UDAC OUTPUT REGISTER A V REF A Gain Control STRING DAC A OP AMP A Output Logic V OUT A EEPROM B UDAC V REF B Gain Control Power Down Control Output Logic SDA SCL I 2 C Interface Logic INPUT REGISTER B EEPROM C INPUT REGISTER C OUTPUT REGISTER B UDAC OUTPUT REGISTER C V REF C STRING DAC B Gain Control STRING DAC C OP AMP B Power Down Control OP AMP C Output Logic V OUT B V OUT C RDY/BSY EEPROM D INPUT REGISTER D UDAC OUTPUT REGISTER D V REF D Gain Control STRING DAC D Power Down Control OP AMP D Output Logic V OUT D Internal V REF (2.48V) V REF Selector V REF V DD (V REF A, V REF B, V REF C, V REF D) Power Down Control DS22187D-page 2 29 Microchip Technology Inc.

1. ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings V DD...6.5V All inputs and outputs w.r.t V SS....3V to V DD +.3V Current at Input Pins...±2 ma Current at Supply Pins... ±11 ma Current at Output Pins...±25 ma Storage Temperature...-65 C to +15 C Ambient Temp. with Power Applied...-55 C to +125 C ESD protection on all pins... 4 kv HBM, 4V MM Maximum Junction Temperature (T J )... +15 C ELECTRICAL CHARACTERISTICS Notice: Stresses above those listed under Maximum ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability Electrical Specifications: Unless otherwise indicated, all parameters apply at V DD = + 2.7V to 5.5V, V SS = V, R L = 5 kω, C L = 1 pf, G X = 1, T A = -4 C to +125 C. Typical values are at +25 C, V IH = V DD, V IL = V SS. Parameter Symbol Min Typical Max Units Conditions Power Requirements Operating Voltage V DD 2.7 5.5 V Supply Current with External Reference (V REF = V DD ) (Note 1) Power-Down Current with- External Reference Supply Current with Internal Reference (V REF = Internal) (Note 1) Power-Down Current with Internal Reference I DD_EXT 8 14 µa V REF = V DD, V DD = 5.5V All 4 channels are in normal mode. 6 µa 3 channels are in normal mode, 1 channel is powered down. 4 µa 2 channels are in normal mode, 2 channel are powered down. 2 µa 1 channel is in normal mode, 3 channels are powered down. I PD_EXT 4 na All 4 channels are powered down. (V REF = V DD ) I DD_INT 8 14 µa V REF = Internal Reference V DD = 5.5V All 4 channels are in normal mode. 6 µa 3 channels are in normal mode, 1 channel is powered down. 4 µa 2 channels are in normal mode, 2 channels are powered down. 2 µa 1 channel is in normal mode, 3 channels are powered down. I PD_INT 45 6 µa All 4 channels are powered down. V REF = Internal Reference Note 1: All digital input pins (SDA, SCL, LDAC) are tied to High, Output pins are unloaded, code = x. 2: The power-up ramp rate measures the rise of V DD over time. 3: This parameter is ensured by design and not 1% tested. 4: This parameter is ensured by characterization and not 1% tested. 5: Test code range: 1-4 codes, V REF = V DD, V DD = 5.5V. 6: Time delay to settle to a new reference when switching from external to internal reference or vice versa. 7: This parameter is indirectly tested by Offset and Gain error testing. 8: Within 1/2 LSB of the final value when code changes from 1/4 of to 3/4 of full scale. 9: This time delay is measured from the falling edge of ACK pulse in I 2 C command to the beginning of V OUT. This time delay is not included in the output settling time specification. 29 Microchip Technology Inc. DS22187D-page 3

ELECTRICAL CHARACTERISTICS (CONTINUED) Electrical Specifications: Unless otherwise indicated, all parameters apply at V DD = + 2.7V to 5.5V, V SS = V, R L = 5 kω, C L = 1 pf, G X = 1, T A = -4 C to +125 C. Typical values are at +25 C, V IH = V DD, V IL = V SS. Parameter Symbol Min Typical Max Units Conditions Power-On-Reset Threshold Voltage V POR 2.2 V All circuits including EEPROM are ready to operate. Power-Up Ramp Rate V RAMP 1 V/s Note 2, Note 4 DC Accuracy Resolution n 12 Bits Code Change: h to FFFh INL Error INL ±2 ±13 LSB (Note 5) DNL Error DNL -.75 ±.2 ±.75 LSB (Note 5) Offset Error V OS 5 2 mv Code = h See Figure 2-24 Offset Error Drift ΔV OS / C ±.16 ppm/ C -45 C to +25 C ±.44 ppm/ C +25 C to +125 C Gain Error G E -1.25.4 +1.25 % of FSR Gain Error Drift ΔG E / C -3 ppm/ C Internal Voltage Reference (V REF ), (Note 3) Internal Voltage Reference V REF 2.7 2.48 2.89 V Temperature Coefficient ΔV REF / C 125.25 45.9 ppm/ C LSB/ C ppm/ C LSB/ C Code = FFFh, Offset error is not included. Typical value is at room temperature See Figure 2-25 -4 to C -4 to C to +125 C to +125 C Reference Output Noise E NREF 29 µv p-p Code = FFFh,.1-1 Hz, G x =1 Output Noise Density e NREF 1.2 Code = FFFh, 1 khz, G x =1 μv 1. HZ Code = FFFh, 1 khz, G x =1 1/f Corner Frequency f CORNER 4 Hz Analog Output (Output Amplifier) Output Voltage Swing V OUT FSR V (Note 7) Full Scale Range (Note 7) FSR V DD V V REF = V DD FSR = from.v to V DD V REF V V REF = Internal, G x =1, FSR = from. V to V REF 2 * V REF V V REF = Internal, G x =2, FSR = from.v to 2*V REF Note 1: All digital input pins (SDA, SCL, LDAC) are tied to High, Output pins are unloaded, code = x. 2: The power-up ramp rate measures the rise of V DD over time. 3: This parameter is ensured by design and not 1% tested. 4: This parameter is ensured by characterization and not 1% tested. 5: Test code range: 1-4 codes, V REF = V DD, V DD = 5.5V. 6: Time delay to settle to a new reference when switching from external to internal reference or vice versa. 7: This parameter is indirectly tested by Offset and Gain error testing. 8: Within 1/2 LSB of the final value when code changes from 1/4 of to 3/4 of full scale. 9: This time delay is measured from the falling edge of ACK pulse in I 2 C command to the beginning of V OUT. This time delay is not included in the output settling time specification. DS22187D-page 4 29 Microchip Technology Inc.

ELECTRICAL CHARACTERISTICS (CONTINUED) Electrical Specifications: Unless otherwise indicated, all parameters apply at V DD = + 2.7V to 5.5V, V SS = V, R L = 5 kω, C L = 1 pf, G X = 1, T A = -4 C to +125 C. Typical values are at +25 C, V IH = V DD, V IL = V SS. Parameter Symbol Min Typical Max Units Conditions Output Voltage Settling Time Analog Output Time Delay from Power-Down Mode Time delay to settle to new reference (Note 4) T SETTLING 6 µs (Note 8) Td ExPD 4.5 µs V DD = 5V, (Note 4), (Note 9) Td REF 26 µs From External to Internal Reference 44 µs From Internal to External Reference Power Supply Rejection PSRR -57 db V DD = 5V± 1%, V REF = Internal Capacitive Load Stability C L 1 pf R L = 5 kω, No Oscillation, (Note 4) Slew Rate SR.55 V/µs Phase Margin p M 66 Degree C L = 4 pf, R L = ( ) Short Circuit Current I SC 15 24 ma V DD = 5V, All V OUT Pins = Grounded. Tested at room temperature. Short Circuit Current Duration T SC_DUR Infinite hours (Note 4) DC Output Impedance R OUT 1 Ω Normal mode (Note 4) 1 kω Power-Down Mode 1 (PD1:PD = :1), V OUT to V SS 1 kω Power-Down Mode 2 (PD1:PD = 1:), V OUT to V SS 5 kω Power-Down Mode 3 (PD1:PD = 1:1), V OUT to V SS Dynamic Performance (Note 4) Major Code Transition Glitch 45 nv-s 1 LSB code change around major carry (from 7FFh to 8h) Digital Feedthrough <1 nv-s Analog Crosstalk <1 nv-s DAC-to-DAC Crosstalk <1 nv-s Digital Interface Output Low Voltage V OL.4 V I OL = 3 ma SDA and RDY/BSY pins Note 1: All digital input pins (SDA, SCL, LDAC) are tied to High, Output pins are unloaded, code = x. 2: The power-up ramp rate measures the rise of V DD over time. 3: This parameter is ensured by design and not 1% tested. 4: This parameter is ensured by characterization and not 1% tested. 5: Test code range: 1-4 codes, V REF = V DD, V DD = 5.5V. 6: Time delay to settle to a new reference when switching from external to internal reference or vice versa. 7: This parameter is indirectly tested by Offset and Gain error testing. 8: Within 1/2 LSB of the final value when code changes from 1/4 of to 3/4 of full scale. 9: This time delay is measured from the falling edge of ACK pulse in I 2 C command to the beginning of V OUT. This time delay is not included in the output settling time specification. 29 Microchip Technology Inc. DS22187D-page 5

ELECTRICAL CHARACTERISTICS (CONTINUED) Electrical Specifications: Unless otherwise indicated, all parameters apply at V DD = + 2.7V to 5.5V, V SS = V, R L = 5 kω, C L = 1 pf, G X = 1, T A = -4 C to +125 C. Typical values are at +25 C, V IH = V DD, V IL = V SS. Parameter Symbol Min Typical Max Units Conditions Schmitt Trigger Low Input Threshold Voltage Schmitt Trigger High Input Threshold Voltage V IL.3V DD V V DD > 2.7V. SDA, SCL, LDAC pins.2v DD V V DD 2.7V. SDA, SCL, LDAC pins V IH.7V DD V SDA, SCL, LDAC pins Input Leakage I LI ±1 µa SCL = SDA = LDAC = V DD, SCL = SDA = LDAC = V SS Pin Capacitance C PIN 3 pf (Note 4) EEPROM EEPROM Write Time TWRITE 25 5 ms EEPROM write time Data Retention 2 Years At +25 C, (Note 3) LDAC Input LDAC Low Time T LDAC 21 ns Updates analog outputs (Note 3) Note 1: All digital input pins (SDA, SCL, LDAC) are tied to High, Output pins are unloaded, code = x. 2: The power-up ramp rate measures the rise of V DD over time. 3: This parameter is ensured by design and not 1% tested. 4: This parameter is ensured by characterization and not 1% tested. 5: Test code range: 1-4 codes, V REF = V DD, V DD = 5.5V. 6: Time delay to settle to a new reference when switching from external to internal reference or vice versa. 7: This parameter is indirectly tested by Offset and Gain error testing. 8: Within 1/2 LSB of the final value when code changes from 1/4 of to 3/4 of full scale. 9: This time delay is measured from the falling edge of ACK pulse in I 2 C command to the beginning of V OUT. This time delay is not included in the output settling time specification. DS22187D-page 6 29 Microchip Technology Inc.

T HIGH T RSCL T FSCL SCL SDA T SP T SU:STA T LOW T HD:STA T HD:DAT T SU:DAT T SU:STO T BUF.3V DD.7V DD T FSDA T AA T RSDA FIGURE 1-1: I 2 C Bus Timing Data. LDAC T LDAC.7V DD.3V DD V OUT (UDAC = 1) No Update Update FIGURE 1-2: LDAC Pin Timing vs. V OUT Update. 29 Microchip Technology Inc. DS22187D-page 7

I 2 C SERIAL TIMING SPECIFICATIONS Electrical Specifications: Unless otherwise specified, all limits are specified for T A = -4 to +125 C, V SS = V, Standard and Fast Mode: V DD = +2.7V to +5.5V High Speed Mode: V DD = +4.5V to +5.5V. Parameters Sym Min Typ Max Units Conditions Clock Frequency f SCL 1 khz Standard Mode C b = 4 pf, 2.7V - 5.5V 4 khz Fast Mode C b = 4 pf, 2.7V - 5.5V 1.7 MHz High Speed Mode 1.7 C b = 4 pf, 4.5V - 5.5V 3.4 MHz High Speed Mode 3.4 C b = 1 pf, 4.5V - 5.5V Bus Capacitive Loading Cb 4 pf Standard Mode 2.7V - 5.5V 4 pf Fast Mode 2.7V - 5.5V 4 pf High Speed Mode 1.7 4.5V - 5.5V 1 pf High Speed Mode 3.4 4.5V - 5.5V Start Condition Setup Time T SU:STA 47 ns Standard Mode (Start, Repeated Start) 6 ns Fast Mode 16 ns High Speed Mode 1.7 16 ns High Speed Mode 3.4 Start Condition Hold Time T HD:STA 4 ns Standard Mode 6 ns Fast Mode 16 ns High Speed Mode 1.7 16 ns High Speed Mode 3.4 Stop Condition Setup Time T SU:STO 4 ns Standard Mode 6 ns Fast Mode 16 ns High Speed Mode 1.7 16 ns High Speed Mode 3.4 Clock High Time T HIGH 4 ns Standard Mode 6 ns Fast Mode 12 ns High Speed Mode 1.7 6 ns High Speed Mode 3.4 Clock Low Time T LOW 47 ns Standard Mode 13 ns Fast Mode 32 ns High Speed Mode 1.7 16 ns High Speed Mode 3.4 Note 1: This parameter is ensured by characterization and is not 1% tested. 2: After a Repeated Start condition or an Acknowledge bit. 3: If this parameter is too short, it can create an unintentional Start or Stop condition to other devices on the I 2 C bus line. If this parameter is too long, the Data Input Setup (T SU:DAT ) or Clock Low time (T LOW ) can be affected. Data Input: This parameter must be longer than t SP. Data Output: This parameter is characterized, and tested indirectly by testing T AA parameter. 4: This specification is not a part of the I 2 C specification. This specification is equivalent to the Data Hold Time (T HD:DAT ) plus SDA Fall (or rise) time: T AA = T HD:DAT + T FSDA (OR T RSDA ). 5: Time between Start and Stop conditions. DS22187D-page 8 29 Microchip Technology Inc.

I 2 C SERIAL TIMING SPECIFICATIONS (CONTINUED) Electrical Specifications: Unless otherwise specified, all limits are specified for T A = -4 to +125 C, V SS = V, Standard and Fast Mode: V DD = +2.7V to +5.5V High Speed Mode: V DD = +4.5V to +5.5V. Parameters Sym Min Typ Max Units Conditions SCL Rise Time T RSCL 1 ns Standard Mode (Note 1) 2 +.1Cb 3 ns Fast Mode 2 8 ns High Speed Mode 1.7 2 16 ns High Speed Mode 1.7 (Note 2) 1 4 ns High Speed Mode 3.4 1 8 ns High Speed Mode 3.4 (Note 2) SDA Rise Time T RSDA 1 ns Standard Mode (Note 1) 2 +.1Cb 3 ns Fast Mode 2 8 ns High Speed Mode 1.7 1 4 ns High Speed Mode 3.4 SCL Fall Time T FSCL 3 ns Standard Mode (Note 1) 2 +.1Cb 3 ns Fast Mode 2 16 ns High Speed Mode 1.7 1 8 ns High Speed Mode 3.4 SDA Fall Time T FSDA 3 ns Standard Mode (Note 1) 2 +.1Cb 3 ns Fast Mode 2 16 ns High Speed Mode 1.7 1 8 ns High Speed Mode 3.4 Data Input Setup Time T SU:DAT 25 ns Standard Mode 1 ns Fast Mode 1 ns High Speed Mode 1.7 1 ns High Speed Mode 3.4 Data Hold Time T HD:DAT 345 ns Standard Mode (Input, Output) 9 ns Fast Mode (Note 3) 7 ns High Speed Mode 1.7 15 ns High Speed Mode 3.4 Output Valid from Clock T AA 375 ns Standard Mode (Note 4) 12 ns Fast Mode 15 ns High Speed Mode 1.7 31 ns High Speed Mode 3.4 Bus Free Time T BUF 47 ns Standard Mode (Note 5) 13 ns Fast Mode ns High Speed Mode 1.7 ns High Speed Mode 3.4 Input Filter Spike Suppression T SP ns Standard Mode, (Not Applicable) (SDA and SCL) 5 ns Fast Mode (Not Tested) 1 ns High Speed Mode 1.7 1 ns High Speed Mode 3.4 Note 1: This parameter is ensured by characterization and is not 1% tested. 2: After a Repeated Start condition or an Acknowledge bit. 3: If this parameter is too short, it can create an unintentional Start or Stop condition to other devices on the I 2 C bus line. If this parameter is too long, the Data Input Setup (T SU:DAT ) or Clock Low time (T LOW ) can be affected. Data Input: This parameter must be longer than t SP. Data Output: This parameter is characterized, and tested indirectly by testing T AA parameter. 4: This specification is not a part of the I 2 C specification. This specification is equivalent to the Data Hold Time (T HD:DAT ) plus SDA Fall (or rise) time: T AA = T HD:DAT + T FSDA (OR T RSDA ). 5: Time between Start and Stop conditions. 29 Microchip Technology Inc. DS22187D-page 9

TEMPERATURE CHARACTERISTICS Electrical Specifications: Unless otherwise indicated, V DD = +2.7V to +5.5V, V SS =GND. Parameters Symbol Min Typical Max Units Conditions Temperature Ranges Specified Temperature Range T A -4 +125 C Operating Temperature Range T A -4 +125 C Storage Temperature Range T A -65 +15 C Thermal Package Resistances Thermal Resistance, 1L-MSOP θ JA 22 C/W DS22187D-page 1 29 Microchip Technology Inc.

2. TYPICAL PERFORMANCE CURVES Note: The graphs and tables provided following this note are a statistical summary based on a limited number of samples and are provided for informational purposes only. The performance characteristics listed herein are not tested or guaranteed. In some graphs or tables, the data presented may be outside the specified operating range (e.g., outside specified power supply range) and therefore, outside the warranted range. Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. INL (LSB) 6 4 2-2 V DD = 5.5V, V REF = Internal, Gain = x1 DNL(LSB).3.2.1 V DD = 5.5V, V REF = Internal, Gain = x1-4 -.1-6 124 248 372 496 Code -.2 124 248 372 496 Code FIGURE 2-1: INL vs. Code (T A = +25 C). FIGURE 2-4: DNL vs. Code (T A = +25 C). 6 4 V DD = 5.5V, V REF = Internal, Gain = x2.3.2 V DD = 5.5V, V REF = Internal, Gain = x2 INL (LSB) 2-2 DNL (LSB).1-4 -.1-6 124 248 372 496 Code -.2 124 248 372 496 Code FIGURE 2-2: INL vs. Code (T A = +25 C). FIGURE 2-5: DNL vs. Code (T A = +25 C). 6 4 V DD = 5.5V, V REF = V DD.2.15 V DD = 5.5V, V REF = V DD INL (LSB) 2-2 DNL (LSB).1.5-4 -.5-6 124 248 372 496 Code -.1 124 248 372 496 Code FIGURE 2-3: INL vs. Code (T A = +25 C). FIGURE 2-6: DNL vs. Code (T A = +25 C). 29 Microchip Technology Inc. DS22187D-page 11

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. 6 4 V DD = 2.7V, V REF = Internal, Gain = x1.4.3 V DD = 2.7V, V REF = Internal, Gain = x1 INL (LSB) 2-2 DNL (LSB).2.1-4 -.1-6 124 248 372 496 Code -.2 124 248 372 496 Code FIGURE 2-7: INL vs. Code (T A = +25 C). FIGURE 2-1: DNL vs. Code (T A = +25 C). 6 V DD = 2.7V, V REF = V DD.4 V DD = 2.7V, V REF = V DD 4.3 INL (LSB) 2-2 DNL (LSB).2.1-4 -.1-6 124 248 372 496 Code -.2 124 248 372 496 Code FIGURE 2-8: INL vs. Code (T A = +25 C). FIGURE 2-11: DNL vs. Code (T A = +25 C). INL (LSB) 6 4 2-2 -4-6 -8-1 -4 o C V DD = 5.5V, V REF = Internal, Gain = x1 +85 C +125 o C +25 o C 124 248 372 496 Code DNL(LSB).4.3.2.1 -.1 -.2 +125 o C V DD = 5.5V, V REF = Internal, Gain = x1-4 o C to +85 o C 124 248 372 496 Code FIGURE 2-9: Temperature. INL vs. Code and FIGURE 2-12: Temperature. DNL vs. Code and DS22187D-page 12 29 Microchip Technology Inc.

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. INL (LSB) 6 4 2-2 -4-6 -8-1 - 4 o C +25 o C V DD = 5.5V, V REF = Internal, Gain = x2 +125 o C +85 o C 124 248 372 496 Code DNL (LSB).4.3.2.1 -.1 -.2 -.3 V DD = 5.5V, V REF = Internal, Gain = x2 +125 o C - 4 o C to +85 o C 124 248 372 496 Code FIGURE 2-13: Temperature. INL vs. Code and FIGURE 2-16: Temperature. DNL vs. Code and INL (LSB) 6 4 2-2 -4-6 -8-1 +125 o C V DD = 2.7V, V REF = Internal, Gain = x1 +85 o C +25 o C - 4 o C 124 248 372 496 Code DNL (LSB).5.4.3.2.1 -.1 -.2 -.3 V DD = 2.7V, V REF = Internal, Gain = x1 +125 o C - 4 o C to +85 o C 124 248 372 496 Code FIGURE 2-14: Temperature. INL vs. Code and FIGURE 2-17: Temperature. DNL vs. Code and 6 4 V DD = 5.5V, V REF = V DD.4.3 V DD = 5.5V, V REF = V DD INL (LSB) 2-2 +85 o C - 4 o C DNL (LSB).2.1-4 -6 +125 o C +25 o C 124 248 372 496 Code -.1 -.2 +125 o C - 4 o C to +85 o C 124 248 372 496 Code FIGURE 2-15: Temperature. INL vs. Code and FIGURE 2-18: Temperature. DNL vs. Code and 29 Microchip Technology Inc. DS22187D-page 13

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. INL (LSB) 6 4 2-2 -4-6 -8 V DD = 2.7V, V REF = V DD - 4 o C +85 o C +25 o C +125 o C 124 248 372 496 Code DNL (LSB).5.4.3.2.1 -.1 -.2 -.3 V DD = 2.7V, V REF = V DD +125 o C - 4 o C to +85 o C 124 248 372 496 Code FIGURE 2-19: Temperature. INL vs. Code and FIGURE 2-22: DNL vs. Code and Temperature. Full Scale Error (mv) -1-2 -3-4 -5 V DD = 2.7V, Gain = 1 V DD = 5.5V, Gain = 1 V DD = 5.5V, Gain = 2-4 -25-1 5 2 35 5 65 8 95 11 125 Temperature ( o C) Offset Error (mv) 6 5 V DD = 5.5V, Gain = 2 4 3 V DD = 5.5V, Gain = 1 2 V DD = 2.7V, Gain = 1 1-4 -25-1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-2: Full Scale Error vs. Temperature (Code = FFFh, V REF = Internal). FIGURE 2-23: Zero Scale Error vs. Temperature (Code = h, V REF = Internal). 5 4 Full Scale Error (mv) 4 3 2 V DD = 5.5V, Gain = 1 V DD = 2.7V, Gain = 1 Offset Error (mv) 3 2 1 V DD = 5.5V V DD = 2.7V 1-4 -25-1 5 2 35 5 65 8 95 11 125 Temperature ( o C) -4-25 -1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-21: Full Scale Error vs. Temperature (Code = FFFh, V REF = V DD ). FIGURE 2-24: Error). Offset Error (Zero Scale DS22187D-page 14 29 Microchip Technology Inc.

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. LSB 16 14 12 1 8 6 4 2 V REF = Internal, Gain = x2 Temp = +25 o C Ch. D Ch. C Ch. A Ch. B 5 1 15 2 25 3 35 Codes LDAC V OUT (2V/Div) Time (2 µs/div) FIGURE 2-25: (V DD =5.5V). Absolute DAC Output Error FIGURE 2-28: Full Scale Settling Time (V REF = Internal, V DD = 5V, UDAC = 1, Gain = x1, Code Change: h to FFFh). V OUT (2V/Div) V OUT (2V/Div) LDAC Time (2 µs/div) LDAC Time (2 µs/div) FIGURE 2-26: Full Scale Settling Time (V REF = V DD, V DD = 5V, UDAC = 1, Code Change: h to FFFh). FIGURE 2-29: Full Scale Settling Time (V REF = V DD, V DD = 5V, UDAC = 1, Code Change: FFFh to h ). V OUT (2V/Div) V OUT (2V/Div) LDAC Time (2 µs/div) LDAC Time (2 µs/div) FIGURE 2-27: Half Scale Settling Time (V REF = V DD, V DD = 5V, UDAC = 1, Code Change: h to 7FFh). FIGURE 2-3: Half Scale Settling Time (V REF = V DD, V DD = 5V, UDAC = 1, Code Change: 7FFh to h). 29 Microchip Technology Inc. DS22187D-page 15

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. V OUT (2V/Div) V OUT (1V/Div) Discharging Time due to internal pull-down resistor (5 kω) LDAC Time (2 µs/div) Time (1 µs/div) CLK Last ACK CLK pulse FIGURE 2-31: Full Scale Settling Time (V REF = Internal, V DD = 5V, UDAC = 1, Gain = x1, Code Change: FFFh to h). FIGURE 2-34: Entering Power Down Mode (Code : FFFh, V REF = Internal, V DD = 5V, Gain = x1, PD1= PD = 1, No External Load). V OUT (1V/Div) V OUT (1V/Div) LDAC Time (2 µs/div) LDAC Time (2 µs/div) FIGURE 2-32: Half Scale Settling Time (V REF = Internal, V DD = 5V, UDAC = 1, Gain = x1, Code Change: h to 7FFh). FIGURE 2-35: Half Scale Settling Time (V REF = Internal, V DD = 5V, UDAC = 1, Gain = x1, Code Change: 7FFh to h). V OUT (1V/Div) V OUT (2V/Div) Td ExPD Td ExPD Time (5 µs/div) Time (5 µs/div) CLK Last ACK CLK pulse CLK Last ACK CLK pulse FIGURE 2-33: Exiting Power Down Mode (Code : FFFh, V REF = Internal, V DD = 5V, Gain = x1, for all Channels.). FIGURE 2-36: Exiting Power Down Mode (Code : FFFh, V REF = V DD, V DD = 5V, for all Channels). DS22187D-page 16 29 Microchip Technology Inc.

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. V OUT (2V/Div) Discharging Time due to internal pull-down resistor (5 kω) V OUT at Channel D (5V/Div) LDAC V OUT at Channel A (1 mv/div) Time (5 µs/div) Time (2 µs/div) CLK Last ACK CLK pulse FIGURE 2-37: Entering Power Down Mode (Code : FFFh, V REF = V DD, V DD = 5V, PD1= PD = 1, No External Load). FIGURE 2-4: Channel Cross Talk (V REF = V DD, V DD = 5V). V OUT (2V/Div) V OUT (5 mv/div) Time (1 µs/div) Time (2 µs/div) CLK Last ACK CLK pulse FIGURE 2-38: V OUT Time Delay when V REF changes from Internal Reference to V DD. FIGURE 2-41: Code Change Glitch (V REF = External, V DD = 5V, No External Load), Code Change: 8h to 7FFh. V OUT (2V/Div) V OUT (5 mv/div) Time (2 µs/div) Time (1 µs/div) CLK Last ACK CLK pulse FIGURE 2-39: V OUT Time Delay when V REF changes from V DD to Internal Reference. FIGURE 2-42: Code Change Glitch (V REF = Internal, V DD = 5V, Gain = 1, No External Load), Code Change: 8h to 7FFh. 29 Microchip Technology Inc. DS22187D-page 17

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. V OUT (V) 6 5 4 3 2 1 V DD = 5V V REF = V DD Code = FFFh I DD_EXT (µa) 9 8 7 6 All Channels On V DD = 5.5V V DD = 5V V DD = 3.3V V DD = 2.7V V DD = 4.5V 1 2 3 4 5 Load Resistance (kω) 5-4 -25-1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-43: V OUT vs. Resistive Load. FIGURE 2-46: I DD vs. Temperature (V REF = V DD, All channels are in Normal Mode, Code = FFFh). I DD_EXT (µa) 1 All Channels On V DD = 5.V 8 3 Channels On 6 2 Channels On 4 2 1 Channel On -4-25 -1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-44: I DD vs. Temperature (V REF = VDD, V DD = 5V, Code = FFFh). I DD_INT (µa) 1 V DD = 5.V All Channels On 8 3 Channels On 6 2 Channels On 4 1 Channel On 2-4 -25-1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-47: I DD vs. Temperature (V REF = Internal, V REF = 5V, Code = FFFh). I DD_EXT (µa) 8 V DD = 2.7V All Channels On 6 3 Channels On 4 2 Channels On 2 1 Channel On -4-25 -1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-45: I DD vs. Temperature (V REF = V DD, V DD = 2.7V, Code = FFFh). I DD_INT (µa) 1 V DD = 2.7V All Channels On 8 3 Channels On 6 2 Channels On 4 1 Channel On 2-4 -25-1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-48: I DD vs. Temperature (V REF = Internal, V DD = 2.7V, Code = FFFh). DS22187D-page 18 29 Microchip Technology Inc.

Note: Unless otherwise indicated, T A = -4 C to +125 C, V DD = +5.V, V SS = V, R L = 5 kω, C L = 1 pf. I DD_INT (µa) 9 8 7 6 All Channels On V DD = 5V V DD = 5.5V V DD = 4.5V V DD = 3.3V V DD = 2.7V V OUT (V) 6 5 4 3 2 1 Code = FFFh 5-4 -25-1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-49: I DD vs. Temperature (V REF = Internal, All Channels are in Normal Mode, Code = FFFh). 2 4 6 8 1 12 14 16 Current (ma) FIGURE 2-51: Source Current Capability (V REF = V DD, Code = FFFh). I DDP_INT (µa) 6 5 4 3 2 V DD = 4.5V V DD = 5V V DD = 3.3V V DD = 5.5V V DD = 2.7V All Channels Off -4-25 -1 5 2 35 5 65 8 95 11 125 Temperature ( o C) FIGURE 2-5: I DD vs. Temperature (V REF = Internal, All Channels are in Powered Down). V OUT (V) 6 Code = h 5 4 3 2 1 2 4 6 8 1 12 14 Sink Current (ma) FIGURE 2-52: Sink Current Capability (V REF = V DD, Code = h). 29 Microchip Technology Inc. DS22187D-page 19

NOTES: DS22187D-page 2 29 Microchip Technology Inc.

3. PIN DESCRIPTIONS The descriptions of the pins are listed in Table 3-1. TABLE 3-1: PIN FUNCTION TABLE Pin No. Name Pin Type Function 1 V DD P Supply Voltage 2 SCL OI I 2 C Serial Clock Input. (Note 1) 3 SDA OI/OO I 2 C Serial Data Input and Output. (Note 1) 4 LDAC ST This pin is used for two purposes: (a) Synchronization Input. It is used to transfer the contents of the DAC input registers to the output registers (V OUT ). (b) Select the device for reading and writing I 2 C address bits. (Note 2) 5 RDY/BSY OO This pin is a status indicator of EEPROM programming activity. An external pull-up resistor (about 1 kω) is needed from RDY/BSY pin to V DD line. (Note 1) 6 V OUT A AO Buffered analog voltage output of channel A. The output amplifier has rail-to-rail operation. 7 V OUT B AO Buffered analog voltage output of channel B. The output amplifier has rail-to-rail operation. 8 V OUT C AO Buffered analog voltage output of channel C. The output amplifier has rail-to-rail operation. 9 V OUT D AO Buffered analog voltage output of channel D. The output amplifier has rail-to-rail operation. 1 V SS P Ground reference. Legend: P = Power, OI = Open-Drain Input, OO = Open-Drain Output, ST = Schmitt Trigger Input Buffer, AO = Analog Output Note 1: This pin needs an external pull-up resistor from V DD line. Leave this pin float if it is not used. 2: This pin can be driven by MCU. 3.1 Analog Output Voltage Pins (V OUT A, V OUT B, V OUT C, V OUT D) The device has four analog voltage output (V OUT ) pins. Each output is driven by its own output buffer with a gain of 1 or 2 depending on the gain and V REF selection bit settings. In normal mode, the DC impedance of the output pin is about 1Ω. In Power-Down mode, the output pin is internally connected to 1 kω, 1 kω, or 5 kω, depending on the Power-Down selection bit settings. The V OUT pin can drive up to 1 pf of capacitive load. It is recommended to use a load with R L greater than 5 kω. 3.2 Supply Voltage Pins (V DD, V SS ) V DD is the power supply pin for the device. The voltage at the V DD pin is used as the power supply input as well as the DAC external reference. The power supply at the V DD pin should be as clean as possible for a good DAC performance. It is recommended to use an appropriate bypass capacitor of about.1 µf (ceramic) to ground. An additional 1 µf capacitor (tantalum) in parallel is also recommended to further attenuate high frequency noise present in application boards. The supply voltage (V DD ) must be maintained in the 2.7V to 5.5V range for specified operation. V SS is the ground pin and the current return path of the device. The user must connect the V SS pin to a ground plane through a low impedance connection. If an analog ground path is available in the application PCB (printed circuit board), it is highly recommended that the V SS pin be tied to the analog ground path or isolated within an analog ground plane of the circuit board. 29 Microchip Technology Inc. DS22187D-page 21

3.3 Serial Data Pin (SDA) SDA is the serial data pin of the I 2 C interface. The SDA pin is used to write or read the DAC register and EEPROM data. Except for start and stop conditions, the data on the SDA pin must be stable during the high duration of the clock pulse. The High or Low state of the SDA pin can only change when the clock signal on the SCL pin is Low. The SDA pin is an open-drain N-channel driver. Therefore, it needs a pull-up resistor from the V DD line to the SDA pin. Refer to Section 5. I 2 C Serial Interface Communications for more details on the I 2 C Serial Interface communication. 3.4 Serial Clock Pin (SCL) SCL is the serial clock pin of the I 2 C interface. The MCP4728 device acts only as a slave and the SCL pin accepts only external input serial clocks. The input data from the Master device is shifted into the SDA pin on the rising edges of the SCL clock and output from the MCP4728 occurs at the falling edges of the SCL clock. The SCL pin is an open-drain N-channel driver. Therefore, it needs a pull-up resistor from the V DD line to the SCL pin. Refer to Section 5. I 2 C Serial Interface Communications for more details on I 2 C Serial Interface communication. Typical range of the pull-up resistor value for SCL and SDA is from 5 kω to 1 kω for standard (1 khz) and fast (4 khz) modes, and less than 1 kω for high speed mode (3.4 MHz). 3.5 LDAC Pin This pin can be driven by an external control device such as an MCU I/O pin. This pin is used (a) to transfer the contents of the input registers to their corresponding DAC output registers and (b) to select a device of interest when reading or writing I 2 C address bits. See Section 5.4.4 General call Read Address Bits and Section 5.6.8 Write Command: Write I2C Address bits (C2=, C1=1, C=1) for more details on the reading and writing the device I 2 C address bits, respectively. When the logic status of the LDAC pin changes from High to Low, the contents of all input registers (Channels A - D) are transferred to their corresponding output registers and all analog voltage outputs are updated simultaneously. If this pin is permanently tied to Low, the content of the input register is transferred to its output register (V OUT ) immediately at the last input data byte s acknowledge pulse. The user can also use the UDAC bit instead. However, the UDAC bit updates a selected channel only. See Section 4.8 Output Voltage Update for more information on the LDAC pin and UDAC bit functions. 3.6 RDY/BSY Status Indicator Pin This pin is a status indicator of EEPROM programming activity. This pin is High when the EEPROM has no programming activity and Low when the EEPROM is in programming mode. It goes High when the EEPROM program is completed. The RDY/BSY pin is an open-drain N-channel driver. Therefore, it needs a pull-up resistor (about 1 kω) from the V DD line to the RDY/BSY pin. Leave this pin float if it is not used. DS22187D-page 22 29 Microchip Technology Inc.

4. THEORY OF DEVICE OPERATION The MCP4728 device is a 12-bit 4-channel buffered voltage output DAC with non-volatile memory (EEPROM). The user can program the EEPROM with I 2 C address bits, configuration and DAC input data of each channel. The device has an internal charge pump circuit to provide the programming voltage of the EEPROM. When the device is first powered-up, it automatically loads the stored data in its EEPROM to the DAC input and output registers, and provides analog outputs with the saved settings immediately. This event does not require an LDAC or UDAC bit condition. After the device is powered-up, the user can update the input registers using I 2 C write commands. The analog outputs can be updated with new register values if the LDAC pin or UDAC bit is low. The DAC output of each channel is buffered with a low power and precision output amplifier. This amplifier provides a rail-to-rail output with low offset voltage and low noise. The device uses a resistor string architecture. The resistor ladder DAC can be driven from V DD or internal V REF depending on the reference selection. The user can select internal (2.48V) or external reference (V DD ) for each DAC channel individually by software control. The V DD is used as the external reference. Each channel is controlled and operated independently. The device has a Power-Down mode feature. Most of the circuit in each powered down channel are turned off. Therefore, operating power can be saved significantly by putting any unused channel to the Power-Down mode. 4.1 Power-On-Reset (POR) The device contains an internal Power-On-Reset (POR) circuit that monitors power supply voltage (V DD ) during operation. This circuit ensures correct device start-up at system power-up and power-down events. If the power supply voltage is less than the POR threshold (V POR = 2V, typical), all circuits are disabled and there will be no analog output. When the V DD increases above the V POR, the device takes a reset state. During the reset period, each channel uploads all configuration and DAC input codes from EEPROM, and analog output (V OUT ) will be available accordingly. This enables the device to return to the same state that it was at the last write to the EEPROM before it was powered off. The POR status is monitored by the POR status bit by using the I 2 C read command. See Figure 5-15 for the details of the POR status bit. 4.2 Reset Conditions The device can be reset by two independent events: (a) by Power-On-Reset or (b) by I 2 C General Call Reset Command. Under the reset conditions, the device uploads the EEPROM data into both of the DAC input and output registers simultaneously. The analog output voltage of each channel is available immediately regardless of the LDAC and UDAC bit conditions. The factory default settings for the EEPROM prior to the device shipment are shown in Table 4-2. 4.3 Output Amplifier The DAC output is buffered with a low power precision amplifier. This amplifier provides low offset voltage and low noise, as well as rail-to-rail output. The output amplifier can drive the resistive and high capacitive loads without oscillation. The amplifier can provide a maximum load current of 24 ma which is enough for most of programmable voltage reference applications. Refer to Section 1. Electrical Characteristics for the specifications of the output amplifier. 4.3.1 PROGRAMMABLE GAIN BLOCK The rail-to-rail output amplifier of each channel has configurable gain option. When the internal voltage reference is selected, the output amplifier gain has two selection options: gain of 1 or gain of 2. When the external reference is selected (V REF = V DD ), the gain of 2 option is disabled, and only the gain of 1 is used by default. 4.3.1.1 Resistive and Capacitive Loads The analog output (V OUT ) pin is capable of driving capacitive loads up to 1 pf in parallel with 5 kω load resistance. Figure 2-43 shows the V OUT vs. Resistive Load. 29 Microchip Technology Inc. DS22187D-page 23

4.4 DAC Input Registers and Non-Volatile EEPROM Memory Each channel has its own volatile DAC input register and EEPROM. The details of the input registers and EEPROM are shown in Table 4-1 and Table 4-2, respectively. TABLE 4-1: INPUT REGISTER MAP (VOLATILE) Bit Name Bit Function CH. A CH. B CH. C RDY /BSY Configuration Bits DAC Input Data (12 bits) A2 A1 A VREF DAC1 DAC PD1 PD GX D11 D1 D9 D8 D7 D6 D5 D4 D3 D2 D1 D I 2 C Ref. DAC Channel Address Bits Select (Note 1) (Note 2) (Note 2) (Note 2) Power-Down Select (Note 2) Gain Select (Note 2) CH. D Note 1: EEPROM write status indication bit (flag). 2: Loaded from EEPROM during power-up, or can be updated by the user. TABLE 4-2: EEPROM MEMORY MAP AND FACTORY DEFAULT SETTINGS Configuration Bits (Note 2) DAC Input Data (12 bits) Bit Name A2 A1 A VREF PD1 PD GX D11 D1 D9 D8 D7 D6 D5 D4 D3 D2 D1 D Bit Function I 2 C Address Bits (Note 1) Ref. Select (Note 2) Power-Down Select Gain Select (Note 3) CH. A 1 CH. B 1 CH. C 1 CH. D 1 Note 1: Device I 2 C address bits. The user can also specify these bits during the device ordering process. The factory default setting is. These bits can be reprogrammed by the user using the I 2 C Address Write command. 2: Voltage Reference Select: = External V REF (V DD ), 1 = Internal V REF (2.48V). 3: Gain Select: = Gain of 1, 1 = Gain of 2. DS22187D-page 24 29 Microchip Technology Inc.

TABLE 4-3: CONFIGURATION BITS Bit Name Functions RDY/BSY (A2, A1, A) V REF DAC1, DAC PD1, PD G X This is a status indicator (flag) of EEPROM programming activity: 1 = EEPROM is not in programming mode = EEPROM is in programming mode Note: RDY/BSY status can also be monitored at the RDY/BSY pin. Device I 2 C address bits. See Section 5.3 MCP4728 Device Addressing for more details. Voltage Reference Selection bit: = V DD 1 = Internal voltage reference (2.48V) Note: Internal voltage reference circuit is turned off if all channels select external reference (V REF = V DD). DAC Channel Selection bits: = Channel A 1 = Channel B 1 = Channel C 11 = Channel D Power-Down selection bits: = Normal Mode 1 = V OUT is loaded with 1 kω resistor to ground. Most of the channel circuits are powered off. 1 = V OUT is loaded with 1 kω resistor to ground. Most of the channel circuits are powered off. 11 = V OUT is loaded with 5 kω resistor to ground. Most of the channel circuits are powered off. Note: See Table 4-7 and Figure 4-1 for more details. Gain selection bit: = x1 (gain of 1) 1 = x2 (gain of 2) Note: Applicable only when internal V REF is selected. If V REF = V DD, the device uses a gain of 1 regardless of the gain selection bit setting. UDAC DAC latch bit. Upload the selected DAC input register to its output register (V OUT ): = Upload. Output (V OUT ) is updated. 1 = Do not upload. Note: UDAC bit affects the selected channel only. 29 Microchip Technology Inc. DS22187D-page 25

4.5 Voltage Reference The device has a precision internal voltage reference which provides a nominal voltage of 2.48V. The user can select the internal voltage reference or V DD as the voltage reference source of each channel using the V REF configuration bit. The internal voltage reference circuit is turned off when all channels select V DD as their references. However, it stays turned on if any one of the channels selects the internal reference. 4.6 LSB Size The LSB is defined as the ideal voltage difference between two successive codes. LSB sizes of the MCP4728 device are shown in Table 4-4. TABLE 4-4: LSB SIZES (EXAMPLE) Gain (G V X ) REF LSB Size Condition Selection Internal V REF (2.48V) x1.5 mv 2.48V/496 x2 1 mv 4.96V/496 V DD x1 V DD /496 (Note 1) Note 1: LSB size varies with the V DD range. When V REF = V DD, the device uses G X = 1 by default. G X = 2 option is ignored. 4.7 DAC Output Voltage Each channel has an independent output associated with its own configuration bit settings and DAC input code. When the internal voltage reference is selected (V REF = internal), it supplies the internal V REF voltage to the resistor string DAC of the channel. When the external reference (V REF =V DD ) is selected, V DD is used for the channel s resistor string DAC. The V DD needs to be as clean as possible for accurate DAC performance. When the V DD is selected as the voltage reference, any variation or noises on the V DD line can directly affect on the DAC output. The analog output of each channel has a programmable gain block. The rail-to-rail output amplifier has a configurable gain of 1 or 2. But the gain of 2 is not applicable if V DD is selected for the voltage reference. The formula for the analog output voltage is given in Equation 4-1 and Equation 4-2. 4.7.1 OUTPUT VOLTAGE RANGE The DAC output voltage range varies depending on the voltage reference selection. When the internal reference (V REF =2.48V) is selected: - V OUT =.V to 2.48V * 495/496 for Gain of 1 - V OUT =.V to 4.96V * 495/496 for Gain of 2 When the external reference (V REF =V DD ) is selected: - V OUT =.V to V DD Note: The gain selection bit is not applicable for V REF = V DD. In this case, Gain of 1 is used regardless of the gain selection bit setting. EQUATION 4-1: V OUT FOR V REF = INTERNAL REFERENCE V OUT = ( V REF D n ) ------------------------------ 496 G x V DD Where: V REF = 2.48V for internal reference selection D n = DAC input code G x = Gain Setting EQUATION 4-2: V OUT FOR V REF = V DD ( V DD D n ) V OUT = ---------------------------- 496 Where: D n = DAC input code 4.8 Output Voltage Update The following events update the output registers (V OUT ): a. LDAC pin to Low : Updates all DAC channels. b. UDAC bit to Low : Updates a selected channel only. c. General Call Software Update Command: Updates all DAC channels. d. Power-On-Reset or General Call Reset command: Both input and output registers are updated with EEPROM data. All channels are affected. 4.8.1 LDAC PIN AND UDAC BIT The user can use the LDAC pin or UDAC bit to upload the input DAC register to output DAC register (V OUT ). However, the UDAC affects only the selected channel while the LDAC affects all channels. The UDAC bit is not used in the Fast Mode Writing. Table 4-5 shows the output update vs. LDAC pin and UDAC bit conditions. DS22187D-page 26 29 Microchip Technology Inc.

TABLE 4-5: LDAC AND UDAC CONDITIONS VS. OUTPUT UPDATE LDAC Pin UDAC Bit DAC Output (V OUT ) Update all DAC channel outputs. 1 Update all DAC channel outputs. 1 Update a selected DAC channel output. 1 1 No update 4.9 Analog Output Vs. DAC Input Code Table 4-6 shows an example of the DAC input data code vs. analog output. The MSB of the input data is always transmitted first and the format is unipolar binary. TABLE 4-6: DAC INPUT CODE VS. ANALOG OUTPUT (V OUT ) DAC Input Code Gain Selection V REF = Internal (2.48 V) Nominal Output Voltage (V) (See Note 1) Gain Selection V REF = V DD Nominal Output Voltage (V) 111111111111 x1 V REF - 1 LSB Ignored V DD - 1 LSB x2 2*V REF - 1 LSB 11111111111 x1 V REF - 2 LSB V DD - 2 LSB x2 2*V REF - 2 LSB 1 x1 2 LSB 2 LSB x2 2 LSB 1 x1 1 LSB 1 LSB x2 1 LSB x1 x2 Note 1: (a) LSB with gain of 1 =.5 mv, and (b) LSB with gain of 2 = 1 mv. 29 Microchip Technology Inc. DS22187D-page 27

4.1 Normal and Power-Down Modes Each channel has two modes of operation: (a) Normal mode where analog voltage is available and (b) Power-Down mode which turns off most of the internal circuits for power savings. The user can select the operating mode of each channel individually by setting the Power-Down selection bits (PD1 and PD). For example, the user can select normal mode for channel A while selecting power-down mode for all other channels. See Section 5.6 Write Commands for DAC Registers and EEPROM for more details on the writing the power-down bits. Most of the internal circuit in the powered down channel are turned off. However, the internal voltage reference circuit is not affected by the Power-Down mode. The internal voltage reference circuit is turned off only if all channels select external reference (V REF = V DD ). Device actions during Power-Down mode: The powered down channel stays in a power saving condition by turning off most of its circuits No analog voltage output at the powered down channel The output (V OUT ) pin of the powered down channel is switched to a known resistive load. The value of the resistive load is determined by the state of the Power-Down bits (PD1 and PD). Table 4-7 shows the outcome of the Power-Down bit settings The contents of both the DAC registers and EEPROM are not changed Draws less than 4 na (typical) when all four channels are powered down and V DD is selected as the voltage reference Circuits that are not affected during Power-Down Mode: The I 2 C serial interface circuits remain active in order to receive any command from the Master The internal voltage reference circuit stays turned-on if it is selected as reference by at least one channel Exiting Power-Down Mode: The device exits Power-Down mode immediately by the following commands: Any write command for normal mode. Only selected channel is affected I 2 C General Call Wake-Up Command. All channels are affected I 2 C General Call Reset Command. This is a conditional case. The device exits Power-Down mode depending on the Power-Down bit settings in EEPROM as the configuration bits and DAC input codes are uploaded from EEPROM. All channels are affected When the DAC operation mode is changed from the Power-Down to normal mode, there will be a time delay until the analog output is available. Typical time delay for the output voltage is approximately 4.5 µs. This time delay is measured from the acknowledge pulse of the I 2 C serial communication command to the beginning of the analog output (V OUT ). This time delay is not included in the output settling time specification. See Section 2. Typical Performance Curves for more details. TABLE 4-7: POWER-DOWN BITS PD1 PD Function Normal Mode 1 1kΩ resistor to ground (Note 1) 1 1 kω resistor to ground (Note 1) 1 1 5 kω resistor to ground (Note 1) Note 1: In Power-Down mode: V OUT is off and most of internal circuits in the selected channel are disabled. OP Amp Power-Down Control Circuit Resistor String DAC Resistive Load 1kΩ FIGURE 4-1: Output Stage for Power-Down Mode. V OUT 1 kω 5 kω DS22187D-page 28 29 Microchip Technology Inc.

5. I 2 C SERIAL INTERFACE COMMUNICATIONS The MCP4728 device uses a two-wire I 2 C serial interface. When the device is connected to the I 2 C 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 I 2 C serial interface commands. 5.1 Overview of I 2 C 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 (11), the address bits (A2, A1, A), and the R/W bit. The device code for the MCP4728 device is 11, 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 = ), 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 2 C serial communication operating modes: Standard Mode: bit rates up to 1 kbit/s Fast Mode: bit rates up to 4 kbit/s High Speed Mode (HS mode): bit rates up to 3.4 Mbit/s Refer to the Philips I 2 C document for more details of the I 2 C specifications. 5.1.1 HIGH-SPEED (HS) MODE The I 2 C 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 1XXX 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 I 2 C modes, please refer to the Philips I 2 C specification. 5.2 I 2 C BUS CHARACTERISTICS The specification of the I 2 C 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. 29 Microchip Technology Inc. DS22187D-page 29

In this case, the slave (MCP4728) will leave the data line HIGH to enable the master to generate the STOP condition. SCL (A) (B) (D) (D) (C) (A) SDA START CONDITION ADDRESS OR ACKNOWLEDGE VALID DATA ALLOWED TO CHANGE STOP CONDITION FIGURE 5-1: Data Transfer Sequence On The Serial Bus. 5.3 MCP4728 Device Addressing The address byte is the first byte received following the START condition from the master device. The first part of the address byte consists of a 4-bit device code which is set to 11 for the MCP4728 device. The device code is followed by three I 2 C address bits (A2, A1, A) which are programmable by the users. Although the three address bits are programmable at the user s application PCB, the user can also specify the address bits during the product ordering process. If there is no user s request, the factory default setting of the three address bits is which is programmed into the EEPROM. The three address bits allows eight unique addresses. Start bit Slave Address Read/Write bit Address Byte Acknowledge bit Slave Address for MCP4728 Device Code Address Bits 1 1 A2 A1 A R/W ACK 5.3.1 PROGRAMMING OF I 2 C ADDRESS BITS When the customer first receives any new MCP4728 device, its default address bit setting is if the address bit programming was not requested. The customer can reprogram the I 2 C address bits into the EEPROM by using Write Address Bit command. This write command needs current address bits. If the address bits are unknown, the user can find them by sending General Call Read Address Command. The LDAC pin is also used to select the device of interest to be programmed or to read the current address. The following steps are needed for the I 2 C address programming. (a) Read the address bits using General Call Read Address Command. (This is the case when the address is unknown.) (b) Write I 2 C address bits using Write I 2 C Address Bits Command. The write address command will replace the current address with a new address in both input registers and EEPROM. See Section 5.4.4 General call Read Address Bits for the details of reading the address bits, and Section 5.6.8 Write Command: Write I2C Address bits (C2=, C1=1, C=1) for writing the address bits. Device Code: Programmed (hard-wired) at the factory. Address Bits: Reprogrammable into EEPROM by the user. FIGURE 5-2: Device Addressing. DS22187D-page 3 29 Microchip Technology Inc.

5.4 I 2 C General Call Commands The device acknowledges the general call address command (x in the first byte). The meaning of the general call address is always specified in the second byte. The I 2 C specification does not allow the use of (h) in the second byte. Refer to the Philips I 2 C document for more details of the General Call specifications. The MCP4728 device supports the following I 2 C General Calls: General Call Reset General Call Wake-Up General Call Software Update General Call Read Address Bits 5.4.1 GENERAL CALL RESET The General Call Reset occurs if the second byte is 11 (6h). At the acknowledgement of this byte, the device will abort the current conversion and perform the following tasks: Internal reset similar to a Power-On-Reset (POR). The contents of the EEPROM are loaded into each DAC input and output registers immediately V OUT will be available immediately regardless of the LDAC pin condition Start Clock Pulse (CLK Line) ACK (MCP4728) Stop 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1st Byte (General Call Command) Data (SDA Line) 2nd Byte (Command Type = General Call Reset) Note 1 Note 1: At this falling edge of the last ACK clock bit: a. Startup Timer starts a reset sequence and b. EEPROM data is loaded into the DAC Input and Output Registers immediately. FIGURE 5-3: General Call Reset. 5.4.2 GENERAL CALL WAKE-UP If the second byte is 11 (9h), the device will reset the Power-Down bits (PD1, PD =,). Start Clock Pulse (CLK Line) ACK (MCP4728) Stop 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1st Byte (General Call Command) 2nd Byte (Command Type = General Call Wake-Up) Note 1 Data (SDA Line) Note 1: Resets Power-Down bits at this falling edge of the last ACK clock bit. FIGURE 5-4: General Call Wake-Up. 29 Microchip Technology Inc. DS22187D-page 31

5.4.3 GENERAL CALL SOFTWARE UPDATE If the second byte is 1 (8h), the device updates all DAC analog outputs (V OUT ) at the same time. Start Clock Pulse (CLK Line) ACK (MCP4728) Stop 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1st Byte (General Call Command) 2nd Byte (Command Type = General Call Software Update) Note 1 Data (SDA Line) Note 1: At this falling edge of the last ACK clock bit, V OUT A, V OUT B, V OUT C, V OUT D are updated. FIGURE 5-5: General Call Software Update. DS22187D-page 32 29 Microchip Technology Inc.

5.4.4 GENERAL CALL READ ADDRESS BITS This command is used to read the I 2 C address bits of the device. If the second byte is 11 (Ch), the device will output its address bits stored in EEPROM and register. This command uses the LDAC pin to select the device of interest to read on the I 2 C bus. The LDAC pin needs a logic transition from High to Low during the negative pulse of the 8th clock of the second byte, and stays Low until the end of the 3rd byte. The maximum clock rate for this command is 4 khz. Start ACK (MCP4728) Restart 4th Byte ACK (Master) Stop S A 1 1 A Sr 1 1 X X X 1 A A2 A1 A 1 A2 A1 A A P 1st Byte 2nd Byte 3rd Byte Address Bits (General Call Address) Restart Byte in EEPROM Address Bits in Input Register LDAC Pin (Notes 1, 2, 3) Reading Address Bits Note 3 Clock and LDAC Transition Details: ACK Clock Restart Clock ACK Clock Clock Pulse (CLK Line) 6 7 8 9 Sr 1 2 3 4 5 6 7 8 9 1 2 3 2nd Byte 3rd Byte 4th Byte Reading Address Bits LDAC Pin Note 2(b, c) Note 2 (a) Note 2(b) Note 3 Stay Low until the end of the 3rd Byte Note 1: Clock Pulse and LDAC Transition Details. 2: LDAC pin events at the 2nd and 3rd bytes. a. Keep LDAC pin High until the end of the positive pulse of the 8th clock of the 2nd byte. b. LDAC pin makes a transition from High to Low during the negative pulse of the 8th clock of the 2nd byte (just before the rising edge of the 9th clock) and stays Low until the rising edge of clock 9 of the 3rd byte. c. The MCP4728 device does not acknowledge the 3rd byte if the conditions (a) and (b) are not met. 3: LDAC pin resumes its normal function after Stop bit. FIGURE 5-6: General Call Read I 2 C Address. 29 Microchip Technology Inc. DS22187D-page 33

5.5 Writing and Reading Registers and EEPROM The Master (MCU) can write or read the DAC input registers or EEPROM using the I 2 C interface command. The following sections describe the communication examples to write and read the DAC registers and EEPROM using the I 2 C interface. 5.6 Write Commands for DAC Registers and EEPROM Table 5-1 summarizes the write command types and their functions.the write command is defined by using three write command type bits (C 2, C 1, C ) and two write function bits (W1, W). The register selection bits (DAC1, DAC) are used to select the DAC channel. TABLE 5-1: WRITE COMMAND TYPES Command Field Write Function Command Name C2 C1 C W1 W Fast Mode Write X Not Used Fast Write for DAC Input Registers Write DAC Input Register and EEPROM 1 Multi-Write for DAC Input Registers 1 Sequential Write for DAC Input Registers and EEPROM 1 1 Single Write for DAC Input Register and EEPROM Function This command writes to the DAC input registers sequentially with limited configuration bits. The data is sent sequentially from channels A to D. The input register is written at the acknowledge clock pulse of the channel s last input data byte. EEPROM is not affected. (Note 1) This command writes to multiple DAC input registers, one DAC input register at a time. The writing channel register is defined by the DAC selection bits (DAC1, DAC). EEPROM is not affected. (Note 2) This command writes to both the DAC input registers and EEPROM sequentially. The sequential writing is carried out from a starting channel to channel D. The starting channel is defined by the DAC selection bits (DAC1 and DAC). The input register is written at the acknowledge clock pulse of the last input data byte of each register. However, the EEPROM data is written altogether at the same time sequentially at the end of the last byte. (Note 2),(Note 3) This command writes to a single selected DAC input register and its EEPROM. Both the input register and EEPROM are written at the acknowledge clock pulse of the last input data byte. The writing channel is defined by the DAC selection bits (DAC1 and DAC). (Note 2),(Note 3) Write I 2 C Address Bits (A2, A1, A) 1 1 Not Used Write I 2 C Address Bits This command writes new I 2 C address bits (A2, A1, A) to the DAC input register and EEPROM. Write V REF, Gain, and Power-Down Select Bits (Note 4) 1 Not Used Write Reference (V REF ) selection bits to Input Registers This command writes Reference (V REF ) selection bits of each channel. 1 1 Not Used Write Gain selection This command writes Gain selection bits of each channel. bits to Input Registers 1 1 Not Used Write Power-Down bits to Input Registers This command writes Power-Down bits of each channel. Note 1: The analog output is updated when LDAC pin is (or changes to) Low. UDAC bit is not used for this command. 2: The DAC output is updated when LDAC pin or UDAC bit is Low. 3: The device starts writing to the EEPROM on the acknowledge clock pulse of the last channel. The device does not execute any command until RDY/BSY bit comes back to High. 4: The input and output registers are updated at the acknowledge clock pulse of the last byte. The update does not require LDAC pin or UDAC bit conditions. EEPROM is not affected. DS22187D-page 34 29 Microchip Technology Inc.

5.6.1 FAST WRITE COMMAND (C2=, C1=, C=X, X = DON T CARE) The Fast Write command is used to update the input DAC registers from channels A to D sequentially. The EEPROM data is not affected by this command. This command is called Fast Write because it updates the input registers with only limited data bits. Only the Power-Down mode selection bits (PD1 and PD) and 12 bits of DAC input data are writable. The input register is updated at the acknowledge pulse of each channel s last data byte. Figure 5-7 shows an example of the Fast Write command. Updating Analog Outputs: a. When the LDAC pin is High before the last byte of the channel D, all analog outputs are updated simultaneously by bringing down the LDAC pin to Low any time. b. If the command starts with the LDAC pin Low, the channel s analog output is updated at the falling edge of the acknowledge clock pulse of the channel s last byte. c. Send the General Call Software Update command: This command updates all channels simultaneously. Note: UDAC bit is not used in this command. 5.6.2 MULTI-WRITE COMMAND: WRITE DAC INPUT REGISTERS (C2=, C1=1, C=; W1=, W=) This command is used to write DAC input register, one at a time. The EEPROM data is not affected by this command. The DAC selection bits (DAC1, DAC) select the DAC channel to write. Only a selected channel is affected. Repeated bytes are used to write more multiple DAC registers. The D11 - D bits in the third and fourth bytes are the DAC input data of the selected DAC channel. Bytes 2-4 can be repeated for the other channels. Figure 5-8 shows an example of the Multi-Write command. Updating Analog Outputs: The analog outputs can be updated by one of the following events after the falling edge of the acknowledge clock pulse of the 4th byte. a. When the LDAC pin or UDAC bit is Low. b. If UDAC bit is High, bringing down the LDAC pin to Low any time. c. By sending the General Call Software Update command. Note: The UDAC bit can be used effectively to upload the input register to the output register, but it affects only a selected channel only, while the LDAC pin and General Call Software Update command affect all channels. 29 Microchip Technology Inc. DS22187D-page 35

5.6.3 SEQUENTIAL WRITE COMMAND: WRITE DAC INPUT REGISTERS AND EEPROM SEQUENTIALLY FROM STARTING CHANNEL TO CHANNEL D (C2=, C1=1, C=; W1=1, W=) When the device receives this command, it writes the input data to the DAC input registers sequentially from the starting channel to channel D, and also writes to EEPROM sequentially. The starting channel is determined by the DAC1 and DAC bits. Table 5-2 shows the functions of the channel selection bits for the sequential write command. When the device is writing EEPROM, the RDY/BSY bit stays Low until the EEPROM write operation is completed. The state of the RDY/BSY bit flag can be monitored by a read command or at the RDY/BSY pin. Any new command received during the EEPROM write operation (RDY/BSY bit is Low ) is ignored. Figure 5-9 shows an example of the sequential write command. Updating Analog Outputs: The analog outputs can be updated by one of the following events after the falling edge of the acknowledge clock pulse of the 4th byte. a. When the LDAC pin or UDAC bit is Low. b. If UDAC bit is High, bringing down the LDAC pin to Low any time. c. By sending the General Call Software Update command. 5.6.4 SINGLE WRITE COMMAND: WRITE A SINGLE DAC INPUT REGISTER AND EEPROM (C2=, C1=1, C=; W1=1, W=1) When the device receives this command, it writes the input data to a selected single DAC input register and also to its EEPROM. The channel is selected by the channel selection bits (DAC1 and DAC). See Table for the channel selection bit function. Figure 5-1 shows an example of the single write command. Updating Analog Outputs: The analog outputs can be updated by one of the following events after the falling edge of the acknowledge clock pulse of the 4th byte. a. When the LDAC pin or UDAC bit is Low. b. If UDAC bit is High, bringing down the LDAC pin to Low any time. c. By sending the General Call Software Update command. Note: The UDAC bit can be used effectively to upload the input register to the output register, but it affects only a selected channel only, while the LDAC pin and General Call Software Update command affect all channels. Note: TABLE 5-2: The UDAC bit can be used effectively to upload the input register to the output register, but it affects only a selected channel only, while the LDAC pin and General Call Software Update command affect all channels. DAC CHANNEL SELECTION BITS FOR SEQUENTIAL WRITE COMMAND DAC1 DAC Channels Ch. A - Ch. D 1 Ch. B - Ch. D 1 Ch. C - Ch. D 1 1 Ch. D DS22187D-page 36 29 Microchip Technology Inc.

5.6.5 WRITE COMMAND: SELECT VREF BIT (C2=1, C1=, C=) When the device receives this command, it updates the DAC voltage reference selection bit (V REF ) of each channel. The EEPROM data is not affected by this command. The affected channel s analog output is updated after the acknowledge pulse of the last byte. Figure 5-12 shows an example of the write command for Select V REF bits. 5.6.6 WRITE COMMAND: SELECT POWER-DOWN BITS (C2=1, C1=, C=1) When the device receives this command, it updates the Power-Down selection bits (PD1, PD) of each channel. The EEPROM data is not affected by this command. The affected channel is updated after the acknowledge pulse of the last byte. Figure 5-13 shows an example of the write command for the Select Power-Down bits. 5.6.7 WRITE COMMAND: SELECT GAIN BIT (C2=1, C1=1, C=) When the device receives this command, it updates the gain selection bits (G X ) of each channel. The EEPROM data is not affected by this command. The analog output is updated after the acknowledge pulse of the last byte. Figure 5-14 shows an example of the write command for select gain bits. 5.6.8 WRITE COMMAND: WRITE I 2 C ADDRESS BITS (C2=, C1=1, C=1) This command writes new I 2 C address bits (A2, A1, A) to the DAC input registers and EEPROM. When the device receives this command, it overwrites the current address bits with the new address bits. This command is valid only when the LDAC pin makes a transition from High to Low at the low time of the last bit (8th clock) of the second byte, and stays Low until the end of the 3rd byte. The update occurs after Stop bit if the conditions are met. The LDAC pin is used to select a device of interest to write. The highest clock rate of this command is 4 khz. Figure 5-11 shows the details of the address write command. Note: To write a new device address, the current address of the device is also required. If the current address is not known, it can be read out by sending General Call Read Address Bits command. See 5.4.4 General call Read Address Bits for more details of reading the I 2 C address bits. 5.6.9 READ COMMAND If the R/W bit is set to a logic High in the I 2 C serial communications command, the device enters a reading mode and reads out the input registers and EEPROM. Figure 5-15 shows the details of the read command. Note: The device address bits are read by using General Call Read Address Bits command. 29 Microchip Technology Inc. DS22187D-page 37

Command Type Bits: C2= C1= C=X ACK (MCP4728) Start 1st byte R/W (C2 C1) 2nd Byte 3rd Byte S 1 1 A2 A1 A A PD1 PD D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A Device Addressing Fast Write Command DAC Input Register of Channel A Update Channel A DAC Input Register at this ACK pulse. 2nd Byte ACK (MCP4728) 3rd Byte X X PD1 PD D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A DAC Input Register of Channel B Update Channel B DAC Input Register at this ACK pulse. ACK (MCP4728) 2nd Byte 3rd Byte X X PD1 PD D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A DAC Input Register of Channel C Update Channel C DAC Input Register at this ACK pulse. ACK (MCP4728) 2nd Byte 3rd Byte X X PD1 PD D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A DAC Input Register of Channel D Update Channel D DAC Input Register at this ACK pulse. Repeat Bytes P Stop Note 1: X is a don t care bit. V OUT can be updated after the last byte s ACK pulse is issued and by bringing down the LDAC pin to Low. FIGURE 5-7: Fast Write Command: Write DAC Input Registers Sequentially from Channel A to D. DS22187D-page 38 29 Microchip Technology Inc.

Command Type Bits: C2= C1=1 C= W1= W= ACK (MCP4728) Start 1st byte S 1 1 A2 A1 A A Device Addressing R/W ACK (MCP4728) (C2 C1 C W1 W2) 2nd Byte 3rd Byte 4th Byte 1 DAC1 DAC UDAC A V REF PD1 PD Gx D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A Multi-Write Command Channel Select DAC Input Register of Selected Channel Note 1 Repeat Bytes of the 2nd - 4th Bytes ACK (MCP4728) 2nd byte 3rd Byte 4th Byte X X X X X DAC1 DAC UDAC A V REF PD1 PD Gx D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A Note 3 Channel Select Note 2 DAC Input Register of Selected Channel Note 1 Repeat Bytes of the 2nd - 4th Bytes P Stop Note 1: V OUT Update: If UDAC = or LDAC Pin = : V OUT is updated after the 4th byte s ACK is issued. 2: The user can write to the other channels by sending repeated bytes with new channel selection bits (DAC1, DAC). 3: X is don t care bit. FIGURE 5-8: Multi-Write Command: Write Multiple DAC Input Registers. 29 Microchip Technology Inc. DS22187D-page 39

Command Type Bits: C2= C1=1 C= W1=1 W= ACK (MCP4728) Start 1st byte S 1 1 A2 A1 A A Device Addressing R/W ACK (MCP4728) (C2 C1 C W1 W2) 2nd Byte 3rd Byte 4th Byte 1 1 DAC1 DAC UDAC A V REF PD1 PD Gx D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A Sequential Write Command Sequential Write Starting Channel Select DAC Input Register of Starting Channel Repeat Bytes of the 3rd - 4th Bytes for the Starting Channel + 1,... until Channel D. Note 1 ACK (MCP4728) Stop 3rd Byte 4th Byte V REF PD1 PD Gx D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P DAC Input Register of Channel D (Last Channel) Notes 1 and 2 Note 1: V OUT Update: If UDAC = or LDAC Pin = : V OUT is updated after the 4th byte s ACK is issued. 2: EEPROM Write: The MCP4728 device starts writing EEPROM at the falling edge of the 4th byte s ACK pulse. FIGURE 5-9: Sequential Write Command: Write DAC Input Registers and EEPROM Sequentially from Starting Channel to Channel D. The sequential input register starts with the "Starting Channel" and ends at Channel D. For example, if DAC1:DAC =, then it starts with channel A and ends at channel D. If DAC1:DAC = 1, then it starts with channel B and ends at Channel D. Note that this command can send up to 1 bytes including the device addressing and command bytes. Any byte after the 1th byte is ignored. DS22187D-page 4 29 Microchip Technology Inc.

Command Type Bits: C2= C1=1 C= W1=1 W=1 ACK (MCP4728) Start 1st byte S 1 1 A2 A1 A A Device Addressing R/W ACK (MCP4728) Stop C2 C1 C W1 W 2nd Byte 3rd Byte 4th Byte 1 1 1 DAC1 DAC UDAC A V REF PD1 PD Gx D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P Single Write Command Channel Select DAC Input Register of Selected Channel Note 1 and Note 2 Note 1: V OUT Update: If UDAC = or LDAC Pin = : V OUT is updated after the 4th byte s ACK is issued. 2: EEPROM Write: The MCP4728 device starts writing EEPROM at the falling edge of the 4th byte s ACK pulse. FIGURE 5-1: Single Write Command: Write to a Single DAC Input Register and EEPROM. 29 Microchip Technology Inc. DS22187D-page 41

Command Type Bits: C2= C1=1 C=1 Start 1st Byte (C2 C1 C) 2nd Byte 3rd Byte 4th Byte Stop S 1 1 A2 A1 A A 1 1 A2 A1 A 1 A 1 1 A2 A1 A 1 A 1 1 A2 A1 A 1 1 A P Device Code Current R/W Address Bits Command Current Type Address Bits Command New Type Address Bits Command New Address Bits Type (for confirmation) Note 4 LDAC Pin (Notes 1, 2, 3) Note 3 Clock and LDAC Transition Details: Clock Pulse (CLK Line) ACK (MCP4728) Stop 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 ----- 9 P 2nd Byte 3rd Byte 4th Byte Note 4 LDAC Pin Note 2(b) Note 2 (a) Note 2(b) Note 3 Stay Low during this 3rd byte Note 1: Clock Pulse and LDAC Transition Details. 2: LDAC pin events at the 2nd and 3rd bytes: a. Keep LDAC pin High until the end of the positive pulse of the 8th clock of the 2nd byte. b. LDAC pin makes a transition from High to Low during the negative pulse of the 8th clock of the 2nd byte (just before the rising edge of the 9th clock), and stays Low until the rising edge of the 9th clock of the 3rd byte. c. The MCP4728 device does not acknowledge the 3rd byte if the conditions (a) and (b) are not met. 3: LDAC pin resumes its normal function after Stop bit. 4: EEPROM Write: a. Charge Pump initiates the EEPROM write sequence at the falling edge of the 4th byte s ACK pulse. b. The RDY/BSY bit (pin) goes Low at the falling edge of this ACK clock and back to High immediately after the EEPROM write is completed. FIGURE 5-11: Write Command: Write I 2 C Address Bits to the DAC Registers and EEPROM. DS22187D-page 42 29 Microchip Technology Inc.

Command Type Bits: C2=1 C1= C= ACK (MCP4728) Start 1st byte (C2 C1 C) 2nd Byte Stop S 1 1 A2 A1 A A 1 X V REF A V REF B V REF C V REF D A P R/W Device Addressing Write Command Note 1 Registers and V OUT are updated at this falling edge of ACK pulse. Note 1: V REF = : V DD = 1: Internal Reference (2.48V) V REF A = Voltage reference of Channel A V REF B = Voltage reference of Channel B V REF C = Voltage reference of Channel C V REF D = Voltage reference of Channel D 2: X is don t care bit. FIGURE 5-12: Registers. Write Command: Write Voltage Reference Selection Bit (V REF ) to the DAC Input Command Type Bits: C2=1 C1= C=1 ACK (MCP4728) Start 1st byte S 1 1 A2 A1 A A Device Addressing R/W ACK (MCP4728) Stop (C2 C1 C) 2nd Byte 3rd Byte 1 1 X PD1 A PD A PD1 B PD B A PD1 C PD C PD1 D PD D X X X X A P Write Command for Power-Down Selection Bits Channel A Channel B Channel C Channel D Registers and V OUT are updated at this falling edge of ACK pulse. Note 1: X is don t care bit. FIGURE 5-13: Write Command: Write Power-Down Selection Bits (PD1, PD) to the DAC Input Registers. See Table 4-7 for the power-down bit setting. 29 Microchip Technology Inc. DS22187D-page 43

Command Type Bits: C2=1 C1=1 C= ACK (MCP4728) Start 1st Byte (C2 C1 C) 2nd Byte Stop S 1 1 A2 A1 A A 1 1 X G X A G X B G X C G X D A P Device Addressing R/W Write Command for Gain Selection Bits Note 1 Registers and V OUT are updated at this falling edge of ACK pulse. Note 1: GX A = Gain Selection for Channel A GX B = Gain Selection for Channel B GX C = Gain Selection for Channel C GX D = Gain Selection for Channel D Ex: GX A = : Gain of 1 for Channel A = 1: Gain of 2 for Channel A 2: X is don t care bit. FIGURE 5-14: Write Command: Write Gain Selection Bit (G X ) to the DAC Input Registers. DS22187D-page 44 29 Microchip Technology Inc.

Start Read Command ACK (MCP4728) S 1 1 A2 A1 A 1 A Device Code R/W Address Bits ACK (MASTER) 2nd Byte 3rd Byte 4th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P 5th Byte Channel A DAC Input Register 6th Byte 7th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P 2nd Byte Channel A DAC EEPROM 3rd Byte 4th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P 5th Byte Channel B DAC Input Register 6th Byte 7th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P 2nd Byte Channel B DAC EEPROM 3rd Byte 4th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P 5th Byte Channel C DAC Input Register 6th Byte 7th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P 2nd Byte Channel C DAC EEPROM 3rd Byte 4th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P 5th Byte Channel D DAC Input Register 6th Byte 7th Byte Stop RDY/ BSY POR DAC1 DAC A2 A1 A A V REF PD1 PD G X D11 D1 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D A P Channel D DAC EEPROM Repeat FIGURE 5-15: Note 1: The 2nd - 4th bytes are the contents of the DAC Input Register and the 5th - 7th bytes are the EEPROM contents. The device outputs sequentially from channel A to D. POR Bit: 1 = Set (Device is powered on with V DD > V POR ), = Powered off state. Read Command and Device Outputs. 29 Microchip Technology Inc. DS22187D-page 45

NOTES: DS22187D-page 46 29 Microchip Technology Inc.

6. TERMINOLOGY 6.1 Resolution The resolution is the number of DAC output states that divide the full scale range. For the 12-bit DAC, the resolution is 2 12, meaning the DAC code ranges from to 495. 6.2 LSB The least significant bit or the ideal voltage difference between two successive codes. Analog Output (LSB) 7 6 5 4 3 2 1 INL =.5 LSB INL = - 1 LSB INL = < -1 LSB EQUATION 6-1: V REF LSB = ------------ 2 n Where V Full Scale ( V Zero Scale ) = --------------------------------------------------------- 2 12 1 ( V Full Scale V Zero Scale ) = --------------------------------------------------------- 495 V REF = V DD If external reference is selected = 2.48V If internal reference is selected n = The number of digital input bits, n = 12 for MCP4728. 6.3 Integral Nonlinearity (INL) Integral nonlinearity (INL) error is the maximum deviation of an actual transfer function from an ideal transfer function (straight line). In the MCP4728, INL is calculated using two end-points (zero and full scale). INL can be expressed as a percentage of full scale range (FSR) or in fraction of an LSB. INL is also called relative accuracy. Equation 6-2 shows how to calculate the INL error in LSB and Figure 6-1 shows an example of INL accuracy. 1 FIGURE 6-1: INL Accuracy. 6.4 Differential Nonlinearity (DNL) Differential nonlinearity (DNL) error (see Figure 6-2) is the measure of step size between codes in actual transfer function. The ideal step size between codes is 1 LSB. A DNL error of zero would imply that every code is exactly 1 LSB wide. If the DNL error is less than 1 LSB, the DAC guarantees monotonic output and no missing codes. The DNL error between any two adjacent codes is calculated as follows: EQUATION 6-3: Where: DNL 1 11 1 11 11 111 DAC Input Code Ideal Transfer Function Actual Transfer Function DNL ERROR ΔV OUT LSB = --------------------------------- LSB DNL is expressed in LSB. ΔV OUT = The measured DAC output voltage difference between two adjacent input codes. EQUATION 6-2: INL ERROR Where: INL = V OUT ( V Ideal ) -------------------------------------- LSB INL is expressed in LSB V Ideal = Code*LSB V OUT = The output voltage measured at the given input code 29 Microchip Technology Inc. DS22187D-page 47

Analog Output (LSB) 7 6 5 4 3 2 1 FIGURE 6-2: DNL = 2 LSB 1 1 11 1 11 11 111 DAC Input Code 6.5 Offset Error DNL =.5 LSB Ideal Transfer Function Actual Transfer Function DNL Accuracy. Offset error (see Figure 6-3) is the deviation from zero voltage output when the digital input code is zero (zero scale voltage). This error affects all codes by the same amount. For the MCP4728 device, the offset error is not trimmed at the factory. However, it can be calibrated by software in application circuits. For the MCP4728 device, the gain error is not calibrated at the factory and most of the gain error is contributed by the output buffer (op amp) saturation near the code range beyond 4. For applications that need the gain error specification less than 1% maximum, a user may consider using the DAC code range between 1 and 4 instead of using full code range (code to 495). The DAC output of the code range between 1 and 4 is much more linear than full scale range ( to 495). The gain error can be calibrated out by software in applications. 6.7 Full Scale Error (FSE) Full scale error (see Figure 6-4) is the sum of offset error plus gain error. It is the difference between the ideal and measured DAC output voltage with all bits set to one (DAC input code = FFFh). EQUATION 6-4: Where: FSE V OUT ( V Ideal ) = -------------------------------------- LSB FSE is expressed in LSB. V Ideal = (V REF ) (1-2 -n ) - Offset Voltage (V OS ) V REF = Voltage Reference Actual Transfer Function Actual Transfer Function Full Scale Error Analog Output Analog Gain Error Output Offset Error Ideal Transfer Function DAC Input Code Actual Transfer Function after Offset Error is removed Ideal Transfer Function FIGURE 6-3: 6.6 Gain Error Offset Error. Gain error (see Figure 6-4) is the difference between the actual full scale output voltage from the ideal output voltage of the DAC transfer curve. The gain error is calculated after nullifying the offset error, or full scale error minus the offset error. The gain error indicates how well the slope of the actual transfer function matches the slope of the ideal transfer function. The gain error is usually expressed as percent of full scale range (% of FSR) or in LSB. FIGURE 6-4: Error. 6.8 Gain Error Drift DAC Input Code Gain Error and Full Scale Gain error drift is the variation in gain error due to a change in ambient temperature. The gain error drift is typically expressed in ppm/ C. DS22187D-page 48 29 Microchip Technology Inc.

6.9 Offset Error Drift Offset error drift is the variation in offset error due to a change in ambient temperature. The offset error drift is typically expressed in ppm/ o C. 6.1 Settling Time The Settling time is the time delay required for the DAC output to settle to its new output value from the start of code transition, within specified accuracy. In the MCP4728 device, the settling time is a measure of the time delay until the DAC output reaches its final value within.5 LSB when the DAC code changes from 4h to Ch. 6.11 Major-Code Transition Glitch Major-code transition glitch is the impulse energy injected into the DAC analog output when the code in the DAC register changes state. It is normally specified as the area of the glitch in nv-sec. and is measured when the digital code is changed by 1 LSB at the major carry transition (Example: 11...111 to 1..., or 1... to 11... 111). 6.12 Digital Feedthrough Digital feedthrough is the glitch that appears at the analog output caused by coupling from the digital input pins of the device. The area of the glitch is expressed in nv-sec, and is measured with a full scale change (Example: all s to all 1s and vice versa) on the digital input pins. The digital feedthrough is measured when the DAC is not being written to the output register. This condition can be created by writing input register with both UDAC bit and LDAC pin high. 6.13 Analog Crosstalk Analog crosstalk is the glitch that appears at the output of one DAC due to a change in the output of the other DAC. The area of the glitch is expressed in nv-sec, and measured by loading one of the input registers with a full scale code change (all s to all 1s and vice versa) while keeping both UDAC bit and LDAC pin high. Then bring down the LDAC pin to low and measure the output of the DAC whose digital code was not changed. 6.14 DAC-to-DAC Crosstalk DAC-to-DAC crosstalk is the glitch that appears at the output of one DAC due to an input code change and subsequent output change of the other DAC. This includes both digital and analog crosstalks. The area of the glitch is expressed in nv-sec, and measured by loading one of the input registers with a full scale code change (all s to all 1s and vice versa) while keeping UDAC bit or LDAC pin low. 6.15 Power-Supply Rejection Ratio (PSRR) PSRR indicates how the output of the DAC is affected by changes in the supply voltage. PSRR is the ratio of the change in V OUT to a change in V DD for full scale output of the DAC. It is measured on one DAC that is using an internal V REF while the V DD is varied ±1%, and expressed in db or µv/v. 29 Microchip Technology Inc. DS22187D-page 49

NOTES: DS22187D-page 5 29 Microchip Technology Inc.

7. TYPICAL APPLICATIONS The MCP4728 device is a part of Microchip s latest DAC family with non-volatile EEPROM memory. The device is a general purpose resistor string DAC intended to be used in applications where a precision, and low power DAC with moderate bandwidth is required. Since the device includes non-volatile EEPROM memory, the user can use this device for applications that require the output to return to the previous set-up value on subsequent power-ups. Applications generally suited for the MCP4728 device family include: Set Point or Offset Trimming Sensor Calibration Portable Instrumentation (Battery Powered) Motor Speed Control 7.1 Connecting to I 2 C BUS using Pull-Up Resistors The SCL, SDA, and RDY/BSY pins of the MCP4728 device are open-drain configurations. These pins require a pull-up resistor as shown in Figure 7-1. The LDAC pin has a schmitt trigger input configuration and it can be driven by an external MCU I/O pin. The pull-up resistor values (R 1 and R 2 ) for SCL and SDA pins depend on the operating speed (standard, fast, and high speed) and loading capacitance of the I 2 C bus line. Higher value of pull-up resistor consumes less power, but increases the signal transition time (higher RC time constant) on the bus line. Therefore, it can limit the bus operating speed. A lower resistor value, on the other hand, consumes higher power, but allows for higher operating speed. If the bus line has higher capacitance due to long metal traces or multiple device connections to the bus line, a smaller pull-up resistor is needed to compensate the long RC time constant. The pull-up resistor is typically chosen between 1 kω and 1 kω ranges for standard and fast modes, and less than 1 kω for high speed mode. C 1 C 2 V DD R 1 R 3 R 2 V DD SCL SDA LDAC RDY/BSY 1 2 3 4 5 MCP4728 V 1 SS 9 V OUT D 8 V OUT C 7 V OUT B 6 V OUT A Analog Outputs To MCU R 1 - R 3 are the pull-up resistors: R 1 and R 2 (Pull-up resistors for I 2 C Serial Communications): 5kΩ - 1 kω for f SCL = 1 khz to 4 khz ~7Ω for f SCL = 3.4 MHz R 3 (Pull-Up resistor ( ~ 1 kω) to monitor RDY/BSY bit. Leave this pin float if it is not used.): C 1 :.1 µf, Ceramic capacitor C 2 : 1 µf, Tantalum capacitor FIGURE 7-1: Example of the MCP4728 Device Connection. 29 Microchip Technology Inc. DS22187D-page 51

7.1.1 DEVICE CONNECTION TEST The user can test the presence of the MCP4728 device on the I 2 C bus line without performing a data conversion. This test can be achieved by checking an acknowledge response from the MCP4728 device after sending a read or write command. Figure 7-2 shows an example with a read command: a. Set the R/W bit High or Low in the address byte. b. Check the ACK pulse after sending the address byte. If the device acknowledges (ACK = ) the command, then the device is connected, otherwise it is not connected. c. Send Stop bit. SCL SDA Start Bit FIGURE 7-2: Address Byte 1 2 3 4 5 6 7 8 9 1 1 1 A2 A1 A 1 Device Code Address bits I 2 C Bus Connection Test. 7.2 Layout Considerations Inductively-coupled AC transients and digital switching noise from other devices can affect DAC performance and DAC output signal integrity. Careful board layout will minimize these effects. Bench testing has shown that a multi-layer board utilizing a low-inductance ground plane, isolated inputs, isolated outputs and proper decoupling are critical to achieving good DAC performance. Separate digital and analog ground planes are recommended. In this case, the V SS pin and the ground pins of the V DD capacitors of the MCP4728 should be terminated to the analog ground plane. ACK R/W Stop Bit MCP4728 Response 7.3 Power Supply Considerations The power source should be as clean as possible. The power supply to the device is used for both V DD and DAC voltage reference by selecting V REF = V DD. Any noise induced on the V DD line can affect DAC performance. A typical application will require a bypass capacitor in order to filter out high frequency noise on the V DD line. The noise can be induced onto the power supply s traces or as a result of changes on the DAC output. The bypass capacitor helps to minimize the effect of these noise sources on signal integrity. Figure 7-1 shows an example of using two bypass capacitors (a 1 µf tantalum capacitor and a.1 µf ceramic capacitor) in parallel on the V DD line. These capacitors should be placed as close to the V DD pin as possible (within 4 mm). If the application circuit has separate digital and analog power supplies, the V DD and V SS pins of the MCP4728 device should reside on the analog plane. 7.4 Using Power Saving Feature The device consumes very little power when it is in Power-Down (shut-down) mode. During the Power-Down mode, most circuits in the selected channel are turned off. It is recommended to power down any unused channel. The device consumes the least amount of power if it enters the Power-Down mode after the internal voltage reference is disabled. This can be achieved by selecting V DD as the voltage reference for all 4 channels and then issuing the Power-Down mode for all channels. 7.5 Using Non-Volatile EEPROM Memory The user can store the I 2 C device address bits, configuration bits and DAC input code of each channel in the on-board non-volatile EEPROM memory using the I 2 C write command. The contents of EEPROM are readable and writable using the I 2 C command. When the MCP4728 device is first powered-up or receives General Call Reset Command, it uploads the EEPROM contents to the DAC output registers automatically and provides analog outputs immediately with the saved settings in EEPROM. This feature is very useful in applications where the MCP4728 device is used to provide set points or calibration data for other devices in the application systems. The MCP4728 device can save important system parameters when the application system experiences power failure. See Section 5.5 Writing and Reading Registers and EEPROM for more details on using the non-volatile EEPROM memory. DS22187D-page 52 29 Microchip Technology Inc.

7.6 Application Examples The MCP4728 device is a rail-to-rail output DAC designed to operate with a V DD range of 2.7V to 5.5V. Its output amplifier of each channel is robust enough to drive common, small-signal loads directly, thus eliminating the cost and size of external buffers for most applications. Since each channel has its own configuration bits for selecting the voltage reference, gain, power-down, etc., the MCP4728 device offers great simplicity and flexibility to use for various DAC applications. 7.6.1 DC SET POINT OR CALIBRATION VOLTAGE SETTINGS A common application for the MCP4728 device is a digitally-controlled set point or a calibration of variable parameters such as sensor offset or bias point. Figure 7-3 shows an example of the set point settings. Let us consider that the application requires different trip voltages (Trip 1 - Trip 4). Assuming the DAC output voltage requirements are given as shown in Table 7-1, examples of sending the Sequential Write and Fast Write commands are shown in Figure 7-4 and Figure 7-5. TABLE 7-1: DAC Channel EXAMPLE: SETTING V OUT OF EACH CHANNEL Voltage Reference DAC Output (V OUT ) V OUT A V DD V DD /2 V OUT B V DD V DD - 1 LSB V OUT C Internal 2.48V V OUT D Internal 4.96V 29 Microchip Technology Inc. DS22187D-page 53

Light V DD R SENSE Comparator 1 R 1 V TRIP 1 R 2.1 µf Light V DD R SENSE Comparator 2.1 µf 1 µf V DD R 1 V TRIP 2 R 1 R 2.1 µf R 4 R 3 R 2 V DD SCL SDA LDAC RDY/BSY 1 2 3 4 5 MCP4728 V 1 SS 9 V OUT D 8 V OUT C 7 V OUT B 6 V OUT A Light V DD Analog Outputs Comparator 3 R SENSE To MCU R 1 V TRIP 3 R 2.1 µf Light V DD D n = Input Code ( to 495) D n V OUT = V REF -----------G 496 x R 2 V TRIP = V OUT ------------------ R 1 + R 2 R SENSE R 1 V TRIP 4 R 2.1 µf Comparator 4 FIGURE 7-3: Using the MCP4728 for Set Point or Threshold Calibration. DS22187D-page 54 29 Microchip Technology Inc.

ACK (MCP4728) Start R/W UDAC V REF G X S 1 1 A 1 1 A 1 A A 1st Byte Device Addressing Sequential Write Command Selecting Channel A as Starting Channel Dn = 2 11 = 248 Update DAC A Input Register at this ACK pulse. ACK (MCP4728) V REF G X 1 1 1 1 A 1 1 1 1 1 1 1 1 A Dn = 495 Update DAC B Input Register at this ACK pulse. ACK (MCP4728) V REF G X 1 1 1 A A Dn = 248 Update DAC C Input Register at this ACK pulse. ACK (MCP4728) Stop V REF G X 1 1 1 1 1 1 A 1 1 1 1 1 1 1 1 A P Dn = 495 Update DAC D Input Register at this ACK pulse. Expected Output Voltage at Each Channel: V DD D n V OUT A V DD ----------- 248 = = V 496 DD ----------- = ---------- ( V) 496 2 D n V OUT B V DD ----------- 495 = = V 496 DD ----------- 496 = ( V DD LSB) ( V) D n V OUT C V REF ----------- 248 = G 496 x = 2.48 ----------- 496 2 = 2.48 ( V) D n V OUT D V REF ----------- 495 = G 496 x = 2.48 ----------- 496 2 = 4.96 ( V) FIGURE 7-4: Sequential Write Command for Setting Test Points in Figure 7-3. 29 Microchip Technology Inc. DS22187D-page 55

Start 1st Byte 2nd Byte 3rd Byte Stop S 1 1 A2 A1 A A 1 1 A2 A1 A 1 A 1 1 A2 A1 A 1 A....... P Address Byte Fast Mode Write Command DAC A Next DAC Channels The following example shows the expected analog outputs with the corresponding DAC input codes: DAC A Input Code = 1111-11111111 DAC B Input Code = 111-11111111 DAC C Input Code = 11-11111111 DAC D Input Code = 1-11111111 ( V V REF D n ) OUT = ---------------------------------G 496 x (A) Channel A Output: Dn for Channel A = FFF (hex) = 495 (decimal) V OUT A ( ----------------------------------- V DD 495) 496 V -------------------- 496 1 1 = = DD = V 496 DD 1 ----------- 496 = V DD LSB (B) Channel B Output: Dn for Channel B = 7FF (hex) = 247 (decimal) ( V V OUT B ----------------------------------- DD 247) 496 V 248 1 V -------------------- DD 2 = = DD = ------------ 1 ----------- = 496 2 496 (C) Channel C Output: V ------------ DD LSB 2 Dn for Channel C = 3FF (hex) = 123 (decimal) V V OUT C ---------------------------------- DD 123 496 V 124 = = -------------------- 1 DD = 496 (D) Channel D Output: V ------------ DD 1 4 4 ----------- = 496 V ------------ DD LSB 4 Dn for Channel D = 1FF (hex) = 511 (decimal) V V OUT D ------------------------------- DD 511 496 V 512 = = ----------------- 1 DD = 496 V ------------ DD 1 8 8 ----------- = 496 V ------------ DD LSB 8 FIGURE 7-5: Channels. Example of Writing Fast Write Command for Various V OUT. V REF = V DD for all DS22187D-page 56 29 Microchip Technology Inc.

8. DEVELOPMENT SUPPORT 8.1 Evaluation & Demonstration Boards The MCP4728 Evaluation Board is available from Microchip Technology Inc. This board works with Microchip s PICkit Serial Analyzer. The user can easily program the DAC input registers and EEPROM using the PICkit Serial Analyzer, and test out the DAC analog output voltages.the PICkit Serial Analyzer uses the PC Graphic User Interface software. Refer to www.microchip.com for further information on this product s capabilities and availability. FIGURE 8-2: Setup for the MCP4728 Evaluation Board with PICkit Serial Analyzer. FIGURE 8-1: MCP4728 Evaluation Board. FIGURE 8-3: Example of PICkit Serial User Interface. 29 Microchip Technology Inc. DS22187D-page 57

NOTES: DS22187D-page 58 29 Microchip Technology Inc.

9. PACKAGING INFORMATION 9.1 Package Marking Information 1-Lead MSOP XXXXXX YWWNNN Example 4728 96256 Legend: XX...X Customer-specific information Y Year code (last digit of calendar year) YY Year code (last 2 digits of calendar year) WW Week code (week of January 1 is week 1 ) NNN e3 Alphanumeric traceability code Pb-free JEDEC designator for Matte Tin (Sn) * This package is Pb-free. The Pb-free JEDEC designator ( e3 ) can be found on the outer packaging for this package. Note: In the event the full Microchip part number cannot be marked on one line, it will be carried over to the next line, thus limiting the number of available characters for customer-specific information. 29 Microchip Technology Inc. DS22187D-page 59

N D E E1 NOTE 1 1 2 b e A A2 c φ A1 L1 L DS22187D-page 6 29 Microchip Technology Inc.

APPENDIX A: REVISION HISTORY Revision D (October 29) The following is the list of modifications: 1. Front page - Applications: Added new item: Bias Voltage Adjustment for Power Amplifiers. 2. Electrical Characteristics: Changed typical, max values for Offset Error. 3. Electrical Characteristics: Changed Min, Max values for Gain Error. 4. Section 2. Typical Performance Curves: Added new Figure 2-25: Absolute Gain Error. 5. Page 45, Figure 5-15: Changed ACK (MCP4728) to ACK (MASTER). Revision C (September 29) The following is the list of modifications: 6. Updated Figure 5-11 and Figure 7-4. Revision B (August 29) The following is the list of modifications: 7. Updated Figure 2-25 to Figure 2-41 in Section 2. Typical Performance Curves. 8. Updated Figure 5-7, Figure 5-8 and Figure 5-11. Revision A (June 29) Original Release of this Document. 29 Microchip Technology Inc. DS22187D-page 61

NOTES: DS22187D-page 62 29 Microchip Technology Inc.

PRODUCT IDENTIFICATION SYSTEM To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office. PART NO. X /XX Device Temperature Range Package Examples: a) MCP4728: Tape and Reel, Extended Temperature, 1LD MSOP package. Device: MCP4728: Single Comparator Temperature Range: E = -4 C to +125 C Package: UN = Plastic Micro Small Outline Transistor, 1-lead 29 Microchip Technology Inc. DS22187D-page 63

NOTES: DS22187D-page 64 29 Microchip Technology Inc.

Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet. Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as unbreakable. Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights. Trademarks The Microchip name and logo, the Microchip logo, dspic, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, rfpic and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Application Maestro, CodeGuard, dspicdem, dspicdem.net, dspicworks, dsspeak, ECAN, ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mtouch, Octopus, Omniscient Code Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, PIC 32 logo, REAL ICE, rflab, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. 29, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received ISO/TS-16949:22 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company s quality system processes and procedures are for its PIC MCUs and dspic DSCs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip s quality system for the design and manufacture of development systems is ISO 91:2 certified. 29 Microchip Technology Inc. DS22187D-page 65