19-5949; Rev 0; 6/11 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection General Description The MAX7304 consists of 16 port GPIOs, with 12 pushpull GPIOs and four open-drain GPIOs configurable as PWM-controlled LED drivers. The device supports a 1.62V to 3.6V separate power supply for level translation. An address-select input (AD0) allows up to four unique slave addresses for the device. Each GPIO can be programmed to one of the two externally applied logic voltage levels. PORT15–PORT12 can also be configured as LED drivers that feature constant-current sinks and PWM intensity control with the internal oscillator. The maximum constant-current level for each open-drain LED port is 20mA. The intensity of the LED on each open-drain port can be individually adjusted through a 256-step PWM control. The port also features LED fading. The same index rows and columns in the device can be used as a direct logic-level translator. The device is offered in a 24-pin (3.5mm x 3.5mm) TQFN package with an exposed pad, and a small 25-bump (2.159mm x 2.159mm) wafer-level package (WLP) for cell phones, pocket PCs, and other portable consumer electronic applications. The device operates over the -40NC to +85NC extended temperature range. Applications Cell Phones Features S Four LED Driver Pins on PORT15–PORT12 S Integrated High-ESD Protection ±8kV IEC 61000-4-2 Contact Discharge ±14kV IEC 61000-4-2 Air-Gap Discharge S 5V Tolerant, Open-Drain I/O Ports Capable of Constant-Current LED Drive S 256-Step PWM Individual LED Intensity-Control Accuracy S Individual LED Blink Rates and Common LED Fade-In /Out Rates from 256ms to 4096ms S User-Configurable Debounce Time (1ms to 32ms) S Configurable Edge-Triggered Port Interrupt (INT) S 1.62V to 3.6V Operating Supply Voltage S Individually Programmable GPIOs to Two Logic Levels S 8-Channel Individual Programmable Level Translators S Supports Hot Insertion S 400kbps, 5.5V Tolerant I2C Serial Interface with Selectable Bus Timeout Ordering Information appears at end of data sheet. For related parts and recommended products to use with this part, refer to www.maxim-ic.com/MAX7304.related. Notebooks PDAs Typical Operating Circuit Handheld Games Portable Consumer Electronics +1.8V +2.6V VCC VLA PORT0 PORT1 INT MCU GPIO +5V MAX7304 SDA PORT13 SCL PORT14 AD0 14 GND PORT15 ���������������������������������������������������������������� Maxim Integrated Products 1 For pricing, delivery, and ordering information, please contact Maxim Direct at 1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com. MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection ABSOLUTE MAXIMUM RATINGS VCC, VLA to GND.....................................................-0.3V to +4V PORT11–PORT0 to GND........................... -0.3V to (VCC + 0.3V) PORT15–PORT12 to GND........................................-0.3V to +6V SDA, SCL, AD0, INT to GND...................................-0.3V to +6V VLA to VCC............................................................-0.3V to +2.3V DC Current on PORT15–PORT12 to GND..........................25mA DC Current on PORT11–PORT0 to GND..............................7mA VCC, VLA, GND Current......................................................80mA DC Current VCC, VLA to PORT11–PORT0............................5mA Continuous Power Dissipation (TA = +70NC) TQFN (derate 15.4mW/NC above +70NC)..................1229mW WLP (derate 19.2mW/NC above +70NC)......................850mW Operating Temperature Range........................... -40NC to +85NC Junction Temperature......................................................+150NC Storage Temperature Range............................. -65NC to +150NC Lead Temperature (TQFN) (soldering, 10s).....................+300NC Soldering Temperature (reflow).......................................+260NC Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. PACKAGE THERMAL CHARACTERISTICS (Note 1) TQFN Junction-to-Ambient Thermal Resistance (BJA).....65.1NC/W Junction-to-Case Thermal Resistance (BJC)............5.4NC/W WLP Junction-to-Ambient Thermal Resistance (BJA)........52NC/W Note 1: Package thermal resistances were obtained using the method described in JEDEC specification JESD51-7, using a fourlayer board. For detailed information on package thermal considerations, refer to www.maxim-ic.com/thermal-tutorial. ELECTRICAL CHARACTERISTICS (VCC = 1.62V to 3.6V, TA = -40NC to +85NC, unless otherwise noted. Typical values are at VCC = 3.3V, TA = +25NC.) (Notes 2, 3) PARAMETER SYMBOL CONDITIONS Operating Supply Voltage VCC Second Logic Supply VLA Operating Supply Current ICC Oscillator running ISL Not using GPO or LED configuration Sleep-Mode Supply Current POR Threshold MIN TYP MAX UNITS 1.62 3.3 3.6 V VCC 3.3 3.6 V 50 65 FA 1.8 3 FA VPOR 1.2 V GPIO SPECIFICATIONS External Supply Voltage PORT15–PORT12 (LED Drivers) VLED LED Port-to-Port Sink Current Variation 10mA Port Sink Current PORT15–PORT12 VCC = 3.3V, VOL = 1V, TA = +25NC, 10mA output mode IOL VOL = 1V VOL = 0.5V 20mA Port Sink Current PORT15–PORT12 IOL Input High Voltage PORT_ VIH Input Low Voltage PORT_ VIL VOL = 1V VOL = 0.5V TA = +25NC 8.6 VCC = 3.3V 9.04 V Q1.5 Q2.4 % 10 10.96 11.4 mA 9.5 VCC = 3.6V, TA = +25NC TA = +25NC 18.13 VCC = 3.3V 18.47 21.52 20 21.34 mA 19.05 VCC = 3.6V, TA = +25NC VS = VCC or VLA depending on reference logic level setting 5 V 0.7 O VS 0.3 O VS V Input Leakage Current PORT11–PORT0 ILEAKAGE Input voltage = VCC or VGND -2 +2 FA Input Leakage Current PORT15–PORT12 ILEAKAGE Input voltage = 5V -1 +1 FA ���������������������������������������������������������������� Maxim Integrated Products 2 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection ELECTRICAL CHARACTERISTICS (continued) (VCC = 1.62V to 3.6V, TA = -40NC to +85NC, unless otherwise noted. Typical values are at VCC = 3.3V, TA = +25NC.) (Notes 2, 3) PARAMETER SYMBOL Input Capacitance PORT_ CIN Output Low Voltage PORT_ VOL CONDITIONS MIN TYP MAX 20 pF VCC = 1.62V and ISINK = 2.5mA 50 100 VCC = 1.62V and ISINK = 5mA 80 250 VCC = 1.62V and ISOURCE = 2.5mA VCC 120 VCC 40 VCC = 1.62V and ISOURCE = 5mA VCC 250 VCC 70 Output High Voltage COL3–COL0, ROW_ VOH Output Logic-Low Voltage (INT) VOL ISINK = 6mA PWM Frequency fPWM Derived from oscillator clock UNITS mV mV 0.6 500 V Hz SERIAL-INTERFACE SPECIFICATIONS Input High Voltage SDA, SCL, AD0 VIH Input Low Voltage SDA, SCL, AD0 VIL Input Leakage Current SDA, SCL, AD0 ILEAKAGE V 0.7 O VCC 0.3 O VCC Input voltage = 5.5V or VGND -1 V +1 FA Output Logic-Low Voltage SDA VOL ISINK = 6mA 0.6 V Input Capacitance SDA, SCL, AD0 CIN (Notes 4, 5) 10 pF I2C TIMING SPECIFICATIONS Bus timeout enabled 0.05 400 Bus timeout disabled 0 400 SCL Serial-Clock Frequency fSCL Bus Free Time Between a STOP and START Condition tBUF 1.3 Fs Hold Time (Repeated) START Condition tHD, STA 0.6 Fs Repeated START Condition Setup Time tSU, STA 0.6 Fs 0.6 kHz STOP Condition Setup Time tSU, STO Data Hold Time tHD, DAT Data Setup Time tSU, DAT 100 ns SCL Clock Low Period tLOW 1.3 Fs SCL Clock High Period tHIGH 0.7 Fs Fs (Note 6) 0.9 Fs Rise Time of Both SDA and SCL Signals, Receiving tR (Notes 4, 5) 20 + 0.1CB 300 ns Fall Time of Both SDA and SCL Signals, Receiving tF (Notes 4, 5) 20 + 0.1CB 300 ns tF, TX (Notes 4, 7) 20 + 0.1CB 250 ns Fall Time of SDA Signal, Transmitting ���������������������������������������������������������������� Maxim Integrated Products 3 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection ELECTRICAL CHARACTERISTICS (continued) (VCC = 1.62V to 3.6V, TA = -40NC to +85NC, unless otherwise noted. Typical values are at VCC = 3.3V, TA = +25NC.) (Notes 2, 3) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS Pulse Width of Spike Suppressed tSP (Notes 4, 8) 50 ns Capacitive Load for Each Bus Line CB (Note 4) 400 pF 27 ms Bus Timeout tTIMEOUT 14 19 ESD PROTECTION PORT_ All Other Pins IEC 61000-4-2 Air-Gap Discharge Q14 IEC 61000-4-2 Contact Discharge Q8 Human Body Model kV kV Q1.5 All parameters are tested at TA = +25NC. Specifications over temperature are guaranteed by design. All digital inputs at VCC or GND. Guaranteed by design. CB = total capacitance of one bus line in pF. tR and tF measured between 0.8V and 2.1V. A master device must provide a hold time of at least 300ns for the SDA signal (referred to VIL of the SCL signal) to bridge the undefined region of SCL’s falling edge. Note 7: ISINK = 6mA. CB = total capacitance of one bus line in pF. tR and tF measured between 0.8V and 2.1V. Note 8: Input filters on the SDA, SCL, and AD0 inputs suppress noise spikes less than 50ns. Note Note Note Note Note 2: 3: 4: 5: 6: Typical Operating Characteristics (VCC = 2.5V, VLA = 2.5V, TA = +25NC, unless otherwise noted.) 80 60 TA = +25°C 40 TA = -40°C 20 0 100 TA = +85°C 80 60 TA = +25°C 40 TA = -40°C 20 0 0 2 4 6 8 10 12 14 16 18 20 SINK CURRENT (mA) 120 MAX7304 toc03 TA = +85°C VCC = 3.0V GPO OUTPUT LOW VOLTAGE (mV) 100 120 GPO OUTPUT LOW VOLTAGE vs. SINK CURRENT (PORT15–PORT12) MAX7304 toc02 VCC = 2.4V GPO OUTPUT LOW VOLTAGE (mV) GPO OUTPUT LOW VOLTAGE (mV) 120 GPO OUTPUT LOW VOLTAGE vs. SINK CURRENT (PORT15 –PORT12) MAX7304 toc01 GPO OUTPUT LOW VOLTAGE vs. SINK CURRENT (PORT15–PORT12) VCC = 3.6V 100 TA = +85°C 80 60 TA = +25°C 40 TA = -40°C 20 0 0 2 4 6 8 10 12 14 16 18 20 SINK CURRENT (mA) 0 2 4 6 8 10 12 14 16 18 20 SINK CURRENT (mA) ���������������������������������������������������������������� Maxim Integrated Products 4 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Typical Operating Characteristics (continued) MAX7304 toc04 TA = +85°C 1.6 1.4 1.2 1.0 TA = +25°C 0.8 0.6 0.4 TA = -40°C 0.2 0 25 VCC = 2.4V 20 TA = +85°C 15 TA = -40°C TA = +25°C 10 5 0 0 0.5 1.0 1.5 2.0 2.5 3.0 OUTPUT VOLTAGE (V) CONSTANT-CURRENT GPIO OUTPUT SINK CURRENT vs. OUTPUT VOLTAGE (PORT15–PORT12) CONSTANT-CURRENT GPIO OUTPUT SINK CURRENT vs. OUTPUT VOLTAGE (PORT15 –PORT12) 25 VCC = 3.0V 20 TA = +85°C 15 TA = -40°C TA = +25°C 10 5 0 0 0.5 1.0 1.5 2.0 OUTPUT VOLTAGE (V) 2.5 3.0 25 MAX7304 toc07 SUPPLY VOLTAGE (V) MAX7304 toc06 CONSTANT-CURRENT GPIO OUTPUT SINK CURRENT (mA) 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 CONSTANT-CURRENT GPIO OUTPUT SINK CURRENT (mA) SLEEP-MODE SUPPLY CURRENT (µA) 1.8 CONSTANT-CURRENT GPIO OUTPUT SINK CURRENT vs. OUTPUT VOLTAGE (PORT15 –PORT12) MAX7304 toc05 SLEEP-MODE SUPPLY CURRENT vs. SUPPLY VOLTAGE CONSTANT-CURRENT GPIO OUTPUT SINK CURRENT (mA) (VCC = 2.5V, VLA = 2.5V, TA = +25NC, unless otherwise noted.) VCC = 3.6V 20 TA = +85°C 15 TA = -40°C TA = +25°C 10 5 0 0 0.5 1.0 1.5 2.0 2.5 3.0 OUTPUT VOLTAGE (V) ����������������������������������������������������������������� Maxim Integrated Products 5 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Pin Configurations INT SCL SDA AD0 VLA TOP VIEW VCC TOP VIEW (BUMPS SIDE DOWN) 18 17 16 15 14 13 12 PORT8 PORT1 20 11 PORT9 PORT2 21 10 PORT10 9 PORT11 8 GND 7 PORT12 MAX7304 GND 23 *EP + 1 2 3 4 5 6 PORT5 PORT6 PORT7 PORT15 PORT14 PORT13 PORT4 24 TQFN 1 2 3 4 5 A PORT4 PORT5 PORT7 PORT14 PORT13 B GND PORT6 PORT15 PORT12 GND C PORT3 PORT2 GND PORT10 PORT11 D PORT1 VCC SDA VLA PORT9 E PORT0 INT SCL AD0 PORT8 + PORT0 19 PORT3 22 MAX7304 *CONNECT EP TO GROUND. WLP Pin Description PIN TQFN 1 2 3 4 5 6 7 8, 23 9 10 11 12 13 14 15 16 17 WLP A2 B2 A3 B3 A4 A5 B4 B1, B5, C3 C5 C4 D5 E5 D4 E4 D3 E3 E2 NAME PORT5 PORT6 PORT7 PORT15 PORT14 PORT13 PORT12 GND PORT11 PORT10 PORT9 PORT8 VLA AD0 SDA SCL INT FUNCTION GPIO Port 5. Push-pull I/O. GPIO Port 6. Push-pull I/O. GPIO Port 7. Push-pull I/O. GPIO Port 15. Open-drain I/O. PORT15 can be configured as a constant-current sink. GPIO Port 14. Open-drain I/O. PORT14 can be configured as a constant-current sink. GPIO Port 13. Open-drain I/O. PORT13 can be configured as a constant-current sink. GPIO Port 12. Open-drain I/O. PORT12 can be configured as a constant-current sink. Ground GPIO Port 11. Push-pull I/O. GPIO Port 10. Push-pull I/O. GPIO Port 9. Push-pull I/O. GPIO Port 8. Push-pull I/O. Second Logic Level for GPIO Level Shifting (where VCC P VLA P 3.6V) Address Input. Selects up to four device slave addresses (Table 2). I2C-Compatible, Serial-Data I/O I2C-Compatible Serial-Clock Input Active-Low Key-Switch Interrupt Output. INT is open-drain and requires a pullup resistor. ���������������������������������������������������������������� Maxim Integrated Products 6 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Pin Description (continued) PIN NAME TQFN WLP 18 D2 VCC 19 20 21 22 24 E1 D1 C2 C1 A1 PORT0 PORT1 PORT2 PORT3 PORT4 — — EP FUNCTION Positive Supply Voltage. Bypass to GND with a 0.1FF capacitor as close as possible to the device. GPIO Port 0. Push-pull I/O. GPIO Port 1. Push-pull I/O. GPIO Port 2. Push-pull I/O. GPIO Port 3. Push-pull I/O. GPIO Port 4. Push-pull I/O. Exposed Pad (TQFN Only). Internally connected to GND. Connect to a large ground plane to maximize thermal performance. Not intended as an electrical connection point. Functional Diagram VCC VLA I/0 SUPPLY CONTROL PWM LOGIC LED ENABLE PWM SIGNAL MAX7304 128kHz OSCILLATOR GPIO ENABLE GPIO INPUT INT GPIO OUTPUT SDA SCL AD0 I2C INTERFACE CONTROL REGISTERS FIFO OPEN-DRAIN GPIO/LED DRIVERS 4 PUSH-PULL GPIO 12 PORT15–PORT12 I/O LOGIC GPIO ENABLE GPIO INPUT PORT11–PORT10 GPIO OUTPUT BUS TIMEOUT POR ���������������������������������������������������������������� Maxim Integrated Products 7 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Detailed Description The MAX7304 is an I2C-interfaced 16-port GPIO expander. The device features 12 push-pull GPIOs configured for digital I/O and four open-drain GPIOs configurable as constant-current outputs for LED applications up to 5V. The device supports a second 1.62V to 3.6V power supply for level translation. The second logic supply voltage (VLA) must be set equal to or higher than VCC. Each GPIO can be programmed to one of the two externally applied logic voltage levels. PORT15–PORT12 can also be configured as LED drivers that feature constant-current and PWM intensity control. The maximum constant-current level for each open-drain LED port is 20mA. The intensity of the LED on each open-drain port can be individually adjusted through a 256-step PWM control. The port also features LED fading. The device meets ESD requirements for Q8kV contact discharge and Q14kV air-gap discharge on all port pins (configured as GPIO and/or LED drivers). Initial Power-Up On power-up, all control registers reset to power-up values (Table 1) and the device is in sleep mode. Table 1. Register Address Map and Power-Up Conditions ADDRESS CODE (hex) READ/ WRITE POWER-UP VALUE (hex) REGISTER FUNCTION 0x01 R/W 0x0B Configuration 0x31 R/W 0x00 LED driver enable 0x34 R/W 0x00 GPIO direction 1 GPIO input/output control register 1 for PORT7–PORT0 0x35 R/W 0x00 GPIO direction 2 GPIO input/output control register 2 for PORT15–PORT8 0x36 R/W 0xFF GPO output mode 1 GPO open-drain/push-pull output setting for PORT7–PORT0 0x37 R/W 0x0F GPO output mode 2 GPO open-drain/push-pull output setting for PORT15–PORT8 0x38 R/W 0x00 GPIO supply voltage 1 GPIO voltages supplied by VCC or VLA for PORT7–PORT0 0x39 R/W 0x00 GPIO supply voltage 2 GPIO voltages supplied by VCC or VLA for PORT15–PORT8 0x3A R/W 0xFF GPIO values 1 Debounced input or output values of PORT7–PORT0 0x3B R/W 0xFF GPIO values 2 Debounced input or output values of PORT15–PORT8 0x3C R/W 0x00 GPIO level-shifter enable GPIO global configuration GPIO standby, GPIO reset, LED fade PORT7–PORT0 debounce time setting 0x40 R/W 0x00 0x42 R/W 0x00 GPIO debounce LED constant-current setting DESCRIPTION Power-down and I2C timeout enable LED driver enable register GPIO level-shifter pair enable 0x43 R/W 0xC0 0x45 R/W Read only 0x00 Common PWM Common PWM duty-cycle setting 0x48 0x00 I2C timeout flag I2C timeout since last POR 0x50 R/W 0x00 PORT12 PWM ratio PORT12 individual duty-cycle setting 0x51 R/W 0x00 PORT13 PWM ratio PORT13 individual duty-cycle setting 0x52 R/W 0x00 PORT14 PWM ratio PORT14 individual duty-cycle setting R/W 0x00 PORT15 PWM ratio PORT15 individual duty-cycle setting 0x53 PORT15–PORT12 constant-current output setting ���������������������������������������������������������������� Maxim Integrated Products 8 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 1. Register Address Map and Power-Up Conditions (continued) ADDRESS CODE (hex) READ/ WRITE POWER-UP VALUE (hex) REGISTER FUNCTION 0x54 R/W 0x00 PORT12 LED configuration PORT12 interrupt, PWM mode control, and blinkperiod settings 0x55 R/W 0x00 PORT13 LED configuration PORT13 interrupt, PWM mode control, and blinkperiod settings 0x56 R/W 0x00 PORT14 LED configuration PORT14 interrupt, PWM mode control, and blinkperiod settings 0x57 R/W 0x00 PORT15 LED configuration PORT15 interrupt, PWM mode control, and blinkperiod settings 0x58 DESCRIPTION R/W 0xFF Interrupt mask 1 Interrupt mask for PORT7–PORT0 0x59 R/W 0xFF Interrupt mask 2 Interrupt mask for PORT15–PORT8 0x5A R/W 0x00 GPI trigger mode 1 GPI edge-triggered detection setting for PORT7–PORT0 0x5B R/W 0x00 GPI trigger mode 2 GPI edge-triggered detection setting for PORT15–PORT8 GPIOs The device has 16 GPIO ports, of which four have LED control functions. The ports can be used as logic inputs and logic outputs. PORT15–PORT12 are also configurable as constant-current PWM LED drivers. Each ports’ logic level is referenced to VCC or VLA. The GPIO port’s inputs can also be debounced. When in PWM mode, the ports are set up to start their PWM cycle in 45N phase increments. This prevents large current spikes on the LED supply voltage when driving multiple LEDs. Configuration Register (0x01) The configuration register controls the I2C bus timeout feature (see Table 5 in the Register Tables section). The bus timeout feature prevents the SDA being held low when the SCL line hangs. LED Driver Enable Register (0x31) Bits D[3:0] correspond to PORT15–PORT12 on the device. Set the corresponding bit to 1 for enabling the LED driver circuitry and 0 for normal GPIO function (see Table 6 in the Register Tables section). GPIO Direction 1 and 2 Registers (0x34, 0x35) These registers configure the pin as an input or an output. GPIO direction 1 register bits D[7:0] correspond with PORT7–PORT0 (see Table 7 in the Register Tables section). GPIO direction 2 register bits D[7:0] correspond with PORT15–PORT8 (see Table 8 in the Register Tables section). Set the corresponding bit to 0 to configure as input and 1 to configure as output. When the port is initially programmed as an input, there is a delay of one debounce period prior to detecting a transition on the input port. This is to prevent a false interrupt from occurring when changing a port from an output to an input. GPO Output Mode 1 and 2 Registers (0x36, 0x37) These registers configure the pins as an open-drain or push-pull output. GPO output mode 1 register bits D[7:0] correspond with PORT7–PORT0 (see Table 9 in the Register Tables section). GPO output mode 2 register bits D[7:0] correspond with PORT15–PORT8 (see Table 10 in the Register Tables section). Set the corresponding bit to 0 to configure the output mode as open-drain and 1 to configure the output mode as push-pull. GPIO Supply Voltage 1 and 2 Registers (0x38, 0x39) These registers configure input and output voltages to be referenced to VCC or VLA. GPIO supply voltage 1 register bits D[7:0] correspond with PORT7–PORT0 (see Table 11 in the Register Tables section). GPIO supply voltage 2 register bits D[7:0] correspond with PORT15–PORT8 (see Table 12 in the Register Tables section). Set the bit to 0 for input/output voltages referenced to VCC and set the bit to 1 for the input/output voltage referenced to VLA. ���������������������������������������������������������������� Maxim Integrated Products 9 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection GPIO Values 1 and 2 Registers (0x3A, 0x3B) The GPIO values 1 and 2 registers contain the debounced input data for all the GPIOs for PORT7–PORT0 and PORT15–PORT8, respectively (see Tables 13 and 14 in the Register Tables section). There is one debounce period delay prior to detecting a transition on the input port. This prevents a false interrupt from occurring when changing a port from an output to an input. The GPIO values 1 and 2 registers reports the state of all input ports regardless of any interrupt mask settings. When writing to the GPIO values 1 and 2 registers, the corresponding PORT_ voltage is set high when written 1 or cleared when written 0. Reading the port when configured as an output always returns the value 0 for the corresponding port regardless of the output value. GPIO Level-Shifter Enable Register (0x3C) Enabling bit D_ in this register enables the direct level shifter between GPIO pins PORT15–PORT8 and PORT7–PORT0 (see Table 15 in the Register Tables section). The level-shifting pairs are PORT0/PORT8, PORT1/ PORT9, etc. The direction of the level shifter is controlled by the GPIO direction 2 register (0x35). When the corresponding bit in the GPIO direction 2 register is set to 0, PORT15–PORT8 are inputs, while PORT7–PORT0 are outputs. When the bit is set to 1, PORT7–PORT0 are inputs, while PORT15–PORT8 are outputs. GPIO Global Configuration Register (0x40) The GPIO global configuration register controls the main settings for the GPIO ports (see Table 16 in the Register Tables section). Bit D5 enables interrupt generation for I2C timeouts. D4 is the main enable/shutdown bit for the GPIOs. Bit D3 functions as a software reset for the GPIO registers (0x31 to 0x5B). Bits D[2:0] set the fade-in/out time for the GPIOs configured as constant-current sinks. GPIO Debounce Configuration Register (0x42) The GPIO debounce configuration register sets the amount of time a GPIO must be held in order for the device to register a logic transition (see Table 17 in the Register Tables section). Five bits (D[4:0]) set 32 possible debounce times from 9ms up to 40ms. LED Constant-Current Setting Register (0x43) The LED constant-current setting register sets the global constant-current level (see Table 18 in the Register Tables section). Bit D0 selects the global current values between 10mA and 20mA. This setting only applies to the LED driver enabled pins, PORT15–PORT12. Common PWM Ratio Register (0x45) The common PWM ratio register stores the common constant-current output PWM duty cycle (see Table 19 in the Register Tables section). The values stored in this register translate over to a PWM ratio in the same manner as the individual PWM ratio registers (0x50 to 0x53). Ports can use their own individual PWM value or the common PWM value. Write to this register to change the PWM ratio of several ports at once. I2C Timeout Flag Register (0x48) (Read Only) The I2C timeout flag register contains a single bit (D0), which indicates if an I2C timeout has occurred (see Table 20 in the Register Tables section). Read this register to clear an I2C timeout initiated interrupt. PORT12–PORT15 Individual PWM Ratio Registers (0x50 to 0x53) Each LED driver port has an individual PWM ratio register, 0x50 to 0x53 (see Table 21 in the Register Tables section). Use values 0x00 to 0xFE in these registers to configure the number of cycles out of 256 the output sinks current (LED is on), from 0 cycles to 254 cycles. Use 0xFF to have an output continuously sink current (always on). For applications requiring multiple ports to have the same intensity, program a particular port’s configuration register (0x54 to 0x57) to use the common PWM ratio register (0x45). New PWM settings take place at the beginning of a PWM cycle, to allow changes from common intensity to individual intensity with no interruption in the PWM cycle. PORT12–PORT15 LED Configuration Registers (0x54 to 0x57) Registers 0x54 to 0x57 set individual configurations for each port (see Table 22 in the Register Tables section). D5 sets the port’s PWM setting to either the common or individual PWM setting. Bits D[4:2] enable and set the port’s individual blink period from 0 to 4096ms. Bits D1 and D0 set a port’s blink duty cycle. Interrupt Mask 1 and 2 Registers (0x58, 0x59) The interrupt mask 1 and 2 registers control which ports trigger an interrupt for PORT7–PORT0 and PORT15– PORT8, respectively (see Tables 23 and 24 in the Register Tables section). Set the bit to 0 to enable the interrupt. Set the bit to 1 to mask the interrupt. If the port that has generated the interrupt is not masked, the interrupt causes the INT signal to assert. A read of the GPIO values 1 and 2 registers (0x3A, 0x3B) is required to deassert the INT pin. Note that transitions that occur while the INT signal is asserted, but before the read of ��������������������������������������������������������������� Maxim Integrated Products 10 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection the values 1 and 2 registers, sets the appropriate bit of the values 1 and 2 registers only, but has no effect on the INT pin as it is already asserted. However, transitions that occur when the I2C is active cannot be latched into the values 1 and 2 registers until after the read has taken place. If there are transitions that cause the INT signal to assert, during the time of an I2C read, they cause the INT signal to reassert once the read transaction has taken place. Note that the interrupt configurations only apply when a port is configured as an input. GPI Trigger Mode 1 and 2 Registers (0x5A, 0x5B) The GPI trigger mode 1 and 2 registers control how ports can trigger an interrupt for PORT7–PORT0 and PORT15–PORT8, respectively (see Tables 25 and 26 in the Register Tables section). Set the bit to 0 for risingedge triggering. Set the bit to 1 for rising- and fallingedge triggering. The inputs are debounced (if enabled) by taking a snapshot of the port state when the transition occurs, and another after the debounce time has elapsed—ensuring that the state of the port is stable prior to triggering the interrupt. After the debounce cycle, an interrupt is generated and the INT pin asserts if it is not masked for that particular port. Regardless of whether or not the INT signal is masked, the GPIO values 1 and 2 registers (0x3A, 0x3B) report the state of all input ports. Sleep Mode The device is put into sleep mode by clearing bit D4 in the GPIO global configuration register (0x40). In sleep mode, the device draws minimal current. The device is taken out of sleep mode and put into operating mode by setting bit D4 in the GPIO configuration register. When the GPIOs are enabled, the part is in operating mode. In sleep mode, the internal oscillator and I2C timeout features are disabled. LED Fade Set the fade cycle time in the GPIO global configuration register (0x40) to a non-zero value to enable fade in/out (see Table 16 in the Register Tables section). Fade in increases an LED’s PWM intensity in 16 even steps, from zero to its stored value. Fade out decreases an LED’s PWM intensity in 16 even steps, from its current value to zero. Fading occurs automatically in any of the following scenarios: 1) Change the common PWM register value from any value to zero to cause all ports using the common PWM register settings to fade out. No ports using individual PWM settings are affected. 2) Change the common PWM register value to any value from zero to cause all ports using the common PWM register settings to fade in. No ports using individual PWM settings are affected. 3) Take the part out of sleep mode to cause all ports to fade in. Changing an individual PWM intensity during fade in automatically cancels that port’s fade and immediately outputs at its newly programmed intensity. 4) Put the part into sleep mode to cause all ports to fade out. Changing an individual PWM intensity during fade out automatically cancels that port’s fade and immediately turns off. LED PWM Each port has an individual PWM ratio register. The value stored in this register configures the number of cycles out of 255 that the output is sinking current (LED is on). Setting a value of 0xFF in an individual intensity register sets the output to continuously sink current (always on). Conversely, setting a value of 0x00 in an individual intensity register sets the output in a high-impedance state (always off). For applications requiring multiple ports to have the same intensity, the common PWM ratio intensity setting can be used in lieu of the individual intensity setting. To use the common intensity setting, program bit D5 of the corresponding port’s configuration register to logic-high. Setting a port to use the common PWM ratio setting copies the value of the common intensity register into the individual intensity register at the beginning of each PWM cycle. This allows an output port to be seamlessly changed from common intensity to individual intensity with no interruption in the PWM cycle. Outputs are configured to sink a constant current of either 10mA or 20mA during the period when the output is on. The setting in the individual constant-current setting register (0x43) controls the value of the current. ��������������������������������������������������������������� Maxim Integrated Products 11 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Serial Interface LED Blink Each LED driver-supported port has its own blink-control settings through registers 0x54 to 0x57 (see Table 22 in the Register Tables section). The blink period ranges from 0 (blink disabled) to 4.096s. Settable blink duty cycles range from 6.25% to 50%. All blink periods start at the same PWM cycle for synchronized blinking between multiple ports. Figure 1 shows the 2-wire serial interface timing details. Serial Addressing The device operates as a slave that sends and receives data through an I2C-compatible 2-wire interface. The interface uses a serial-data line (SDA) and a serialclock line (SCL) to achieve bidirectional communication between master(s) and slave(s). A master (typically a microcontroller) initiates all data transfers to and from the device and generates the SCL clock that synchronizes the data transfer. Each port has its own counter to generate blink timing. The blink counter can be programmed to cause the output to gate off and on at a programmable rate. The blink period can be set to 256ms, 512ms, 1.024s, 2.048s, or 4.096s using D[4:2] of the port’s individual configuration register. The percentage of time that the LED is on for one blink cycle is set to 50%, 25%, 12.5%, or 6.25% by D[1:0] of the individual configuration register. The device’s SDA line operates as both an input and an open-drain output. A pullup resistor, typically 4.7kI, is required on SDA. The device’s SCL line operates only as an input. A pullup resistor is required on SCL if there are multiple masters on the 2-wire interface, or if the master in a single-master system has an open-drain SCL output. Interrupt Two possible sources generate INT: I2C timeout or GPIOs configured as inputs (registers 0x48, 0x5A, and 0x5B). Read the respective data/status registers for each type of interrupt in order to clear INT. If multiple sources generate the interrupt, all the related status registers must be read to clear INT. Each transmission consists of a START (S) condition (Figure 2) sent by a master, followed by the device’s 7-bit slave address plus R/W bit, a register address byte, one or more data bytes, and finally, a STOP (P) condition. START and STOP Conditions Both SCL and SDA remain high when the interface is not busy. A master signals the beginning of a transmission with a START condition by transitioning SDA from high to low while SCL is high. When the master has finished communicating with the slave, it issues a STOP condition by transitioning SDA from low to high while SCL is high. The bus is then free for another transmission. tR SDA tSU, DAT tLOW tSU, STA tF tF, TX tBUF tHD, STA tHD, DAT tSU, STO tHIGH SCL tHD, STA tR tF START CONDITION REPEATED START CONDITION STOP CONDITION START CONDITION Figure 1. Two-Wire Serial Interface Timing Details ��������������������������������������������������������������� Maxim Integrated Products 12 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Bit Transfer One data bit is transferred during each clock pulse (Figure 3). The data on SDA must remain stable while SCL is high. Acknowledge The acknowledge bit is a clocked 9th bit (Figure 4), which the recipient uses to handshake receipt of each byte of data. Thus, each byte transferred effectively requires 9 bits. The master generates the 9th clock pulse, and the recipient pulls down SDA during the acknowledge clock pulse; therefore, the SDA line is stable low during the high period of the clock pulse. When the master is transmitting to the device, the device generates the acknowledge bit because the device is the recipient. When the device is transmitting to the master, the master generates the acknowledge bit because the master is the recipient. SDA SCL S P START CONDITION STOP CONDITION Figure 2. START and STOP Conditions SDA SCL DATA LINE STABLE; DATA VALID CHANGE OF DATA ALLOWED Figure 3. Bit Transfer START CONDITION CLOCK PULSE FOR ACKNOWLEDGE 1 SCL 2 8 9 SDA BY TRANSMITTER SDA BY RECEIVER S Figure 4. Acknowledge ��������������������������������������������������������������� Maxim Integrated Products 13 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Slave Addresses The device has two 7-bit long slave addresses. The bit following a 7-bit slave address is the R/W bit, which is low for a write command and high for a read command. The first 4 bits (MSBs) of the device slave addresses are always 0111. Slave address bits A[3:1] correspond, by the matrix in Table 2, to the states of the device address input pin AD0, and A0 corresponds to the R/W bit (Figure 5). The AD0 input can be connected to any of four signals: GND, VCC, SDA, or SCL, giving four possible slave-address pairs, allowing up to four devices to share the same bus. Because SDA and SCL are dynamic signals, care must be taken to ensure that AD0 transitions no sooner than the signals on SDA and SCL. The device monitors the bus continuously, waiting for a START condition followed by its slave address. When the device recognizes its slave address, it acknowledges and is then ready for continued communication. Table 2. 2-Wire Interface Address Map A3 A2 GND A7 0 0 VCC 0 1 1 0 1 1 0 SDA A6 A5 1 1 A4 1 SCL SDA 0 1 A1 A0 0 1 Message Format for Writing A write to the device comprises the transmission of the slave address with the R/W bit set to zero, followed by at least one byte of information. The first byte of information is the command byte. The command byte determines which register of the device is to be written by the next byte, if received. If a STOP condition is detected after the command byte is received, the device takes no further action (Figure 6) beyond storing the command byte. Any bytes received after the command byte are data bytes. The first data byte goes into the internal register of the device selected by the command byte (Figure 7). DEVICE ADDRESS PIN AD0 Bus Timeout The device features a 20ms (min) bus timeout on the 2-wire serial interface, largely to prevent the device from holding the SDA I/O low during a read transaction, should the SCL lock up for any reason before a serial transaction is completed. Bus timeout operates by causing the device to internally terminate a serial transaction, either read or write, if the time between adjacent edges on SCL exceeds 20ms. After a bus timeout, the device waits for a valid START condition before responding to a consecutive transmission. This feature can be enabled or disabled under user control by writing to the configuration register. If multiple data bytes are transmitted before a STOP condition is detected, these bytes are generally stored in subsequent device internal registers, because the command byte address generally autoincrements. R/W 1 A3 A2 R/W A1 MSB ACK LSB SCL Figure 5. Slave Address COMMAND BYTE IS STORED ON RECEIPT OF ACKNOWLEDGE CONDITION D7 D6 D5 D4 D3 D2 D1 D0 ACKNOWLEDGE FROM MAX7304 S SLAVE ADDRESS 0 R/W A COMMAND BYTE A P ACKNOWLEDGE FROM MAX7304 Figure 6. Command Byte Received ��������������������������������������������������������������� Maxim Integrated Products 14 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Message Format for Reading Command Address Autoincrementing The device is read using the internally stored command byte as an address pointer, the same way the stored command byte is used as an address pointer for a write. The pointer generally autoincrements after each data byte is read using the same rules as for a write. Thus, a read is initiated by first configuring the device’s command byte by performing a write (Figure 6). The master can now read N consecutive bytes from the device, with the first data byte being read from the register addressed by the initialized command byte. When performing read-afterwrite verification, remember to reset the command byte’s address because the stored command byte address is generally autoincremented after the write (Figure 8). Address autoincrementing allows the device to be configured with fewer transmissions by minimizing the number of times the command address needs to be sent. The command address (0x31 to 0x5B) stored in the device increments after each data byte is written or read. Autoincrement only functions when doing a multiburst read or write. Applications Information Reset from I2C After a catastrophic event such as ESD discharge or microcontroller reset, use bit D4 of the GPIO global configuration register (0x40) as a software reset. Operation with Multiple Masters Hot Insertion When the device is operated on a 2-wire interface with multiple masters, a master reading the device uses a repeated START between the write that sets the device’s address pointer, and the read(s) that takes the data from the location(s). This is because it is possible for master 2 to take over the bus after master 1 has set up the device’s address pointer but before master 1 has read the data. If master 2 subsequently resets the device’s address pointer, master 1’s read can be from an unexpected location. The INT, SCL, and AD0 inputs and SDA remain high impedance with up to 5.5V asserted on them when the device powers down (VCC = 0V). I/O ports remain high impedance with up to 5.5V asserted on them when not powered. Use the device in hot-swap applications. ACKNOWLEDGE FROM MAX7304 ACKNOWLEDGE FROM MAX7304 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 ACKNOWLEDGE FROM MAX7304 S SLAVE ADDRESS 0 A COMMAND BYTE A DATA BYTE A P N BYTES R/W AUTOINCREMENT COMMAND BYTE ADDRESS Figure 7. Command and Single Data Byte Received ACKNOWLEDGE FROM MAX7304 ACKNOWLEDGE FROM MAX7304 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 ACKNOWLEDGE FROM MAX7304 S SLAVE ADDRESS 0 R/W A COMMAND BYTE A DATA BYTE A P N BYTES AUTOINCREMENT COMMAND BYTE ADDRESS Figure 8. N Data Bytes Received ��������������������������������������������������������������� Maxim Integrated Products 15 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Staggered PWM The LED’s on-time in each PWM cycle is phase delayed by 45N into four evenly spaced start positions. Optimize phasing when using fewer than four ports as constantcurrent outputs by allocating the ports with the most appropriate start positions. For example, if using two constant-current outputs, choose PORT12 and PORT14 because their PWM start positions are evenly spaced. In general, choose the ports that spread the current demand from the ports’ load supply. Power-Supply Considerations The device operates with a 1.62V to 3.6V power-supply voltage. Bypass the power supply VCC to GND with a 0.1FF or higher ceramic capacitor as close as possible to the device. Bypass the logic power supply (VLA) to GND with a 0.1FF or higher ceramic capacitor as close as possible to the device. ESD Protection All device pins meet the Q1.5kV Human Body Model ESD tolerances. The GPIOs meet IEC 61000-4-2 ESD protection. The IEC test stresses consist of 10 consecutive ESD discharges per polarity at the maximum specified level and below (per IEC 61000-4-2). Test criteria include: 1) The powered device does not latch up during the ESD discharge event. 2) The device subsequently passes the final test used for prescreening. Tables 3 and 4 are from the IEC 61000-4-2: Edition 1.1 1999-05: Electromagnetic compatibility (EMC) Testing and measurement techniques—Electrostatic discharge immunity test. Table 3. ESD Test Levels 1A—CONTACT DISCHARGE 1B—AIR DISCHARGE LEVEL TEST VOLTAGE (kV) LEVEL TEST VOLTAGE (kV) 1 2 1 2 2 4 2 4 3 6 3 8 4 8 4 15 X Special X Special X = Open level. The level has to be specified in the dedicated equipment specification. If higher voltages than those shown are specified, special test equipment could be needed. Table 4. ESD Waveform Parameters LEVEL INDICATED VOLTAGE (kV) FIRST PEAK OF CURRENT DISCHARGE Q10% (A) RISE TIME (tR) WITH DISCHARGE SWITCH (ns) CURRENT (Q30%) AT 30ns (A) CURRENT (Q30%) AT 60ns (A) 1 2 7.5 0.7 to 1 4 2 2 4 15 0.7 to 1 8 4 3 6 22.5 0.7 to 1 12 6 4 8 30 0.7 to 1 16 8 ��������������������������������������������������������������� Maxim Integrated Products 16 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Register Tables Table 5. Configuration Register (0x01) REGISTER BIT DESCRIPTION VALUE D[7:1] Reserved — — 0 I2C timeout enabled 1 I2C timeout disabled D0 Timeout disable FUNCTION DEFAULT VALUE 0000101 1 Table 6. LED Driver Enable Register (0x31) REGISTER BIT DESCRIPTION VALUE D[7:4] Reserved 0000 D3 PORT15 D2 PORT14 D1 PORT13 D0 PORT12 FUNCTION — 0 GPIO function 1 LED driver enable 0 GPIO function 1 LED driver enable 0 GPIO function 1 LED driver enable 0 GPIO function 1 LED driver enable DEFAULT VALUE 0000 0 0 0 0 Table 7. GPIO Direction 1 Register (0x34) REGISTER BIT DESCRIPTION D7 PORT7 D6 PORT6 D5 PORT5 D4 PORT4 D3 PORT3 D2 PORT2 D1 PORT1 D0 PORT0 VALUE FUNCTION 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin DEFAULT VALUE 0 0 0 0 0 0 0 0 ��������������������������������������������������������������� Maxim Integrated Products 17 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 8. GPIO Direction 2 Register (0x35) REGISTER BIT DESCRIPTION D7 PORT15 D6 PORT14 D5 PORT13 D4 PORT12 D3 PORT11 D2 PORT10 D1 PORT9 D0 PORT8 VALUE FUNCTION 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin 0 Set as input pin 1 Set as output pin DEFAULT VALUE 0 0 0 0 0 0 0 0 Table 9. GPO Output Mode 1 Register (0x36) REGISTER BIT DESCRIPTION D7 PORT7 D6 PORT6 D5 PORT5 D4 PORT4 D3 PORT3 D2 PORT2 D1 PORT1 D0 PORT0 VALUE FUNCTION 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output DEFAULT VALUE 1 1 1 1 1 1 1 1 ��������������������������������������������������������������� Maxim Integrated Products 18 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 10. GPO Output Mode 2 Register (0x37) REGISTER BIT DESCRIPTION VALUE D7 PORT15 0 Port is an open-drain output 0 D6 PORT14 0 Port is an open-drain output 0 D5 PORT13 0 Port is an open-drain output 0 D4 PORT12 0 Port is an open-drain output 0 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output 0 Port is an open-drain output 1 Port is a push-pull output D3 PORT11 D2 PORT10 D1 PORT9 D0 PORT8 FUNCTION DEFAULT VALUE 1 1 1 1 Note: When programmed as GPO, PORT15–PORT12 are always open-drain and bits D[7:4] are not writable. Table 11. GPIO Supply Voltage 1 Register (0x38) REGISTER BIT DESCRIPTION D7 PORT7 D6 PORT6 D5 PORT5 D4 PORT4 D3 PORT3 D2 PORT2 D1 PORT1 D0 PORT0 VALUE FUNCTION 0 PORT7 supplied by VCC 1 PORT7 supplied by VLA 0 PORT6 supplied by VCC 1 PORT6 supplied by VLA 0 PORT5 supplied by VCC 1 PORT5 supplied by VLA 0 PORT4 supplied by VCC 1 PORT4 supplied by VLA 0 PORT3 supplied by VCC 1 PORT3 supplied by VLA 0 PORT2 supplied by VCC 1 PORT2 supplied by VLA 0 PORT1 supplied by VCC 1 PORT1 supplied by VLA 0 PORT0 supplied by VCC 1 PORT0 supplied by VLA DEFAULT VALUE 0 0 0 0 0 0 0 0 ��������������������������������������������������������������� Maxim Integrated Products 19 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 12. GPIO Supply Voltage 2 Register (0x39) REGISTER BIT DESCRIPTION D7 PORT15 D6 PORT14 D5 PORT13 D4 PORT12 D3 PORT11 D2 PORT10 D1 PORT9 D0 PORT8 VALUE FUNCTION 0 PORT15 supplied by VCC 1 PORT15 supplied by VLA 0 PORT14 supplied by VCC 1 PORT14 supplied by VLA 0 PORT13 supplied by VCC 1 PORT13 supplied by VLA 0 PORT12 supplied by VCC 1 PORT12 supplied by VLA 0 PORT11 supplied by VCC 1 PORT11 supplied by VLA 0 PORT10 supplied by VCC 1 PORT10 supplied by VLA 0 PORT9 supplied by VCC 1 PORT9 supplied by VLA 0 PORT8 supplied by VCC 1 PORT8 supplied by VLA DEFAULT VALUE 0 0 0 0 0 0 0 0 Table 13. GPIO Values 1 Register (0x3A) REGISTER BIT DESCRIPTION D7 PORT7 D6 PORT6 D5 PORT5 D4 PORT4 D3 PORT3 D2 PORT2 D1 PORT1 D0 PORT0 VALUE FUNCTION 0 Clear PORT7 low 1 Set PORT7 high 0 Clear PORT6 low 1 Set PORT6 high 0 Clear PORT5 low 1 Set PORT5 high 0 Clear PORT4 low 1 Set PORT4 high 0 Clear PORT3 low 1 Set PORT3 high 0 Clear PORT2 low 1 Set PORT2 high 0 Clear PORT1 low 1 Set PORT1 high 0 Clear PORT0 low 1 Set PORT0 high DEFAULT VALUE 1 1 1 1 1 1 1 1 ��������������������������������������������������������������� Maxim Integrated Products 20 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 14. GPIO Values 2 Register (0x3B) REGISTER BIT DESCRIPTION D7 PORT15 D6 PORT14 D5 PORT13 D4 PORT12 D3 PORT11 D2 PORT10 D1 PORT9 D0 PORT8 VALUE FUNCTION 0 Clear PORT15 low 1 Set PORT15 high* 0 Clear PORT14 low 1 Set PORT14 high* 0 Clear PORT13 low 1 Set PORT13 high* 0 Clear PORT12 low 1 Set PORT12 high* 0 Clear PORT11 low 1 Set PORT11 high 0 Clear PORT10 low 1 Set PORT10 high 0 Clear PORT9 low 1 Set PORT9 high 0 Clear PORT8 low 1 Set PORT8 high DEFAULT VALUE 1 1 1 1 1 1 1 1 *Open-drain output, pullup resistor required. Table 15. GPIO Level-Shifter Enable (0x3C) REGISTER BIT DESCRIPTION D7 PORT7/PORT15 D6 PORT6/PORT14 D5 PORT5/PORT13 D4 PORT4/PORT12 D3 PORT3/PORT11 D2 PORT2/PORT10 VALUE FUNCTION 0 Level shifting disabled 1 Level shift between PORT7 and PORT15 enabled; direction controlled by GPIO direction 2 register (0x35) 0 Level shifting disabled 1 Level shift between PORT6 and PORT14 enabled; direction controlled by GPIO direction 2 register (0x35) 0 Level shifting disabled 1 Level shift between PORT5 and PORT13 enabled; direction controlled by GPIO direction 2 register (0x35) 0 Level shifting disabled 1 Level shift between PORT4 and PORT12 enabled; direction controlled by GPIO direction 2 register (0x35) 0 Level shifting disabled 1 Level shift between PORT3 and PORT11 enabled; direction controlled by GPIO direction 2 register (0x35) 0 Level shifting disabled 1 Level shift between PORT2 and PORT10 enabled; direction controlled by GPIO direction 2 register (0x35) DEFAULT VALUE 0 0 0 0 0 0 ��������������������������������������������������������������� Maxim Integrated Products 21 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 15. GPIO Level-Shifter Enable (0x3C) (continued) REGISTER BIT DESCRIPTION D1 PORT1/PORT9 D0 PORT0/PORT8 VALUE FUNCTION 0 Level shifting disabled 1 Level shift between PORT1 and PORT9 enabled; direction controlled by GPIO direction 2 register (0x35) 0 Level shifting disabled 1 Level shift between PORT0 and PORT8 enabled; direction controlled by GPIO direction 2 register (0x35) DEFAULT VALUE 0 0 Table 16. GPIO Global Configuration Register (0x40) REGISTER BIT DESCRIPTION VALUE D[7:6] Reserved 0 — 0 Disabled 1 INT is asserted when I2C bus times out. INT is deasserted when a read is performed on the I2C timeout flag register (0x48). 0 PWM, constant-current circuits, and GPIs are shut down. GPO values depend on their setting. Register 0x31 to 0x5B values are stored and cannot be changed. The entire part is shut down. D5 D4 D3 D[2:0] I2C timeout interrupt enable GPIO enable GPIO reset Fade-in/out time FUNCTION 1 Normal GPIO operation. PWM, constant-current circuits, and GPIOs are enabled. 0 Normal operation. 1 Return all GPIO registers (registers 0x31 to 0x5B) to their POR value. This bit is momentary and resets itself to 0 after the write cycle. 000 No fading. XXX PWM intensity ramps up (down) between the common PWM value and 0% duty cycle in 16 steps over the following time period: D[2:0] = 001 = 256ms D[2:0] = 010 = 512ms D[2:0] = 011 = 1024ms D[2:0] = 100 = 2048ms D[2:0] = 101 = 4096ms D[2:0] = 110/111 = Undefined DEFAULT VALUE 00 0 0 0 000 ��������������������������������������������������������������� Maxim Integrated Products 22 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 17. GPIO Debounce Configuration Register (0x42) REGISTER DATA REGISTER DESCRIPTION D7 D6 D5 D4 D3 RESERVED D2 D1 D0 DEBOUNCE TIME Power-up default setting Debounce time is 9ms 0 0 0 0 0 0 0 0 Debounce time is 10ms 0 0 0 0 0 0 0 1 Debounce time is 11ms 0 0 0 0 0 0 1 0 Debounce time is 12ms 0 0 0 0 0 0 1 1 ⋮ Debounce time is 37ms 0 0 0 1 1 1 0 0 Debounce time is 38ms 0 0 0 1 1 1 0 1 Debounce time is 39ms 0 0 0 1 1 1 1 0 Debounce time is 40ms 0 0 0 1 1 1 1 1 Table 18. LED Constant-Current Setting Register (0x43) REGISTER BIT DESCRIPTION VALUE D[7:6] Reserved 11 FUNCTION D[5:1] Reserved 00000 D0 Constantcurrent setting 0 Constant current is 20mA 1 Constant current is 10mA DEFAULT VALUE Set always as 11 11 — 00000 0 Table 19. Common PWM Ratio Register (0x45) REGISTER DATA REGISTER DESCRIPTION D7 D6 D5 D4 D3 D2 D1 D0 COMMON PWM Power-up default setting Common PWM ratio is 0/256 0 0 0 0 0 0 0 0 Common PWM ratio is 1/256 0 0 0 0 0 0 0 1 Common PWM ratio is 2/256 0 0 0 0 0 0 1 0 Common PWM ratio is 3/256 0 0 0 0 0 0 1 1 ⋮ Common PWM ratio is 252/256 1 1 1 1 1 1 0 0 Common PWM ratio is 253/256 1 1 1 1 1 1 0 1 Common PWM ratio is 254/256 1 1 1 1 1 1 1 0 Common PWM ratio is 256/256 (100% duty cycle) 1 1 1 1 1 1 1 1 ��������������������������������������������������������������� Maxim Integrated Products 23 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 20. I2C Timeout Flag Register (0x48) (Read Only) REGISTER BIT DESCRIPTION VALUE D[7:1] Reserved 0000000 D0 I2C timeout flag FUNCTION DEFAULT VALUE — 0000000 0 No I2C timeout has occurred since last read or POR. 1 I2C timeout has occurred since last read or POR. This bit is reset to zero when a read is performed on this register. I2C timeouts must be enabled for this function to work (see Table 5). 0 Table 21. PORT12–PORT15 Individual PWM Ratio Registers (0x50 to 0x53) REGISTER DATA REGISTER DESCRIPTION D7 D6 D5 D4 D3 D2 D1 D0 PORT PWM Power-up default setting PORT PWM ratio is 0/256 0 0 0 0 0 0 0 0 PORT PWM ratio is 1/256 0 0 0 0 0 0 0 1 PORT PWM ratio is 2/256 0 0 0 0 0 0 1 0 PORT PWM ratio is 3/256 0 0 0 0 0 0 1 1 PORT PWM ratio is 252/256 1 1 1 1 1 1 0 0 PORT PWM ratio is 253/256 1 1 1 1 1 1 0 1 PORT PWM ratio is 254/256 1 1 1 1 1 1 1 0 PORT PWM ratio is 256/256 (100% duty cycle) 1 1 1 1 1 1 1 1 ⋮ Table 22. PORT12–PORT15 LED Configuration Registers (0x54 to 0x57) REGISTER BIT DESCRIPTION VALUE D[7:6] Don’t care 00 — 0 Port uses individual PWM intensity register to set the PWM ratio 1 Port uses common PWM intensity register to set the PWM ratio D5 D[4:2] Common PWM Blink period 000 Port does not blink 001 Port blink period is 256ms 010 Port blink period is 512ms 011 Port blink period is 1024ms 100 Port blink period is 2048ms 101 Port blink period is 4096ms 110/111 D[1:0] Blink-on time FUNCTION DEFAULT VALUE 00 0 000 Undefined 00 LED is on for 50% of the blink period 01 LED is on for 25% of the blink period 10 LED is on for 12.5% of the blink period 11 LED is on for 6.25% of the blink period 00 ��������������������������������������������������������������� Maxim Integrated Products 24 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 23. Interrupt Mask 1 Register (0x58) REGISTER BIT DESCRIPTION D7 PORT7 D6 PORT6 D5 PORT5 D4 PORT4 D3 PORT3 D2 PORT2 D1 PORT1 D0 PORT0 VALUE FUNCTION 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked DEFAULT VALUE 1 1 1 1 1 1 1 1 Table 24. Interrupt Mask 2 Register (0x59) REGISTER BIT DESCRIPTION D7 PORT15 D6 PORT14 D5 PORT13 D4 PORT12 D3 PORT11 D2 PORT10 D1 PORT9 D0 PORT8 VALUE FUNCTION 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked 0 Interrupt is not masked 1 Interrupt is masked DEFAULT VALUE 1 1 1 1 1 1 1 1 ��������������������������������������������������������������� Maxim Integrated Products 25 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Table 25. GPI Trigger Mode 1 Register (0x5A) REGISTER BIT DESCRIPTION D7 PORT15 D6 PORT14 D5 PORT13 D4 PORT12 D3 PORT11 D2 PORT10 D1 PORT9 D0 PORT8 VALUE FUNCTION 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts DEFAULT VALUE 0 0 0 0 0 0 0 0 Table 26. GPI Trigger Mode 2 Register (0x5B) REGISTER BIT DESCRIPTION D7 PORT15 D6 PORT14 D5 PORT13 D4 PORT12 D3 PORT11 D2 PORT10 D1 PORT9 D0 PORT8 VALUE FUNCTION 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts 0 Rising-edge-triggered interrupts 1 Rising- and falling-edge-triggered interrupts DEFAULT VALUE 0 0 0 0 0 0 0 0 ��������������������������������������������������������������� Maxim Integrated Products 26 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Wafer-Level Packaging (WLP) Applications Information For the latest application details on WLP construction, dimensions, tape-carrier information, PCB techniques, bump-pad layout, and recommended reflow temperature profile, as well as the latest information on reliability testing results, refer to Application Note 1891: WaferLevel Packaging (WLP) and Its Applications, available at www.maxim-ic.com. Chip Information PROCESS: BiCMOS Ordering Information TEMP RANGE PIN-PACKAGE MAX7304ETG+ PART -40NC to +85NC 24 TQFN-EP* MAX7304EWA+** -40NC to +85NC 25 WLP +Denotes a lead(Pb)-free/RoHS-compliant package. *EP = Exposed pad. **Future product—contact factory for availability. Package Information For the latest package outline information and land patterns (footprints), go to www.maxim-ic.com/packages. Note that a “+”, “#”, or “-” in the package code indicates RoHS status only. Package drawings may show a different suffix character, but the drawing pertains to the package regardless of RoHS status. PACKAGE TYPE PACKAGE CODE OUTLINE NO. LAND PATTERN NO. 24 TQFN-EP T243A3+1 21-0188 90-0122 25 WLP W252F2+1 21-0453 Refer to Application Note 1891 ��������������������������������������������������������������� Maxim Integrated Products 27 MAX7304 I2C-Interfaced 16-Port, Level-Translating GPIO and LED Driver with High Level of Integrated ESD Protection Revision History REVISION NUMBER REVISION DATE 0 6/11 DESCRIPTION Initial release PAGES CHANGED — Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim reserves the right to change the circuitry and specifications without notice at any time. The parametric values (min and max limits) shown in the Electrical Characteristics table are guaranteed. Other parametric values quoted in this data sheet are provided for guidance. Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 © 2011 Maxim Integrated Products 28 Maxim is a registered trademark of Maxim Integrated Products, Inc.