Professional Documents
Culture Documents
Features
S Controls Up to Six Independent Fans with PWM Drive S Up to 12 Tachometer Inputs S Controlled Duty Cycle Rate-of-Change for Best Acoustics S I2C Bus Interface with Timeout and Watchdog S 3.0V to 5.5V Supply Voltage Range S 1.5mA (typ) Operating Supply Current
Applications
Servers Networking Telecom
Ordering Information appears at end of data sheet.
For related parts and recommended products to use with this part, refer to: www.maximintegrated.com/MAX31790.related
VCC
VCC
MAX31790
CLKOUT I2C INTERFACE, REGISTERS, AND CONTROL LOGIC PWM OUTPUT DRIVER, TACH MONITOR
PWMOUT3 TACH3 PWMOUT4 TACH4 PWMOUT5 TACH5 PWMOUT6 TACH6 GND 6 CHANNELS
PWM_START1 PWM_START0 FREQ_START SET POWER-UP VALUES SPIN_START WD_START ADD1 ADD0
For pricing, delivery, and ordering information, please contact Maxim Direct at 1-888-629-4642, or visit Maxim Integrateds website at www.maximintegrated.com.
ELECTRICAL CHARACTERISTICS
(TA = -40C to +125C, typical values are VCC = 3.3V, TA = +25C, unless otherwise noted.) (Notes 2, 3) PARAMETER Quiescent Supply Current (Note 4) POR Threshold Watchdog Timer Accuracy Output Low Voltage (SDA, FAN_ FAIL, PWMOUTn, CLKOUT) Output High Voltage (CLKOUT) XTAL1 Input Threshold Input Leakage Input Capacitance IL (Note 6) All digital inputs -1 5 SYMBOL ICC VPOR fTOSC = 32.768kHz (Note 5) IOL = 3mA IOH = 1mA, VCC = 3.0V 2.7 0.85 +1 -0.5 CONDITIONS 3.0V < VCC < 3.6V 4.5V < VCC < 5.5V MIN TYP 1.5 2.5 2 +0.5 0.4 MAX 3 8 UNITS mA V s V V V FA pF
Maxim Integrated
Maxim Integrated
ns ns ms
Note 2: All voltages referenced to ground. Currents entering the IC are specified as positive. Note 3: Limits are 100% production tested at TA = +25C and/or TA = +85C. Limits over the operating temperature range and relevant supply voltage range are guaranteed by design and characterization. Typical values are not guaranteed. Note 4: SDA = SCL = VCC, PWM active with PWM_FREQUENCY = 25kHz. Note 5: The watchdog timer is derived from fTOSC and the watchdog timer accuracy specifications do not include the oscillators associated error fERR:TOSC. Note 6: Applies to pins SDA, SCL, PWM_STARTn, WD_START, FREQ_START, SPIN_START, ADDn, TACHn, PWMOUTn, FULL_SPEED. Note 7: fTOSC is used to measure fan speed by counting the number of 8192Hz (fTOSC/4) clock cycles that take place during a selectable number of tachometer periods. For internal oscillator only, typical frequency shift due to aging is within 0.5%. Aging stressing includes level 1 moisture reflow preconditioning (24hr +125C bake, 168hr +85C/85%RH moisture soak, and three solder reflow passes +260C +0C/-5C peak) followed by 192hr (max) VCC biased. Note 8: All timing specifications are guaranteed by design. Note 9: A master device must provide a hold time of at least 300ns for the SDA signal to bridge the undefined region of SCLs falling edge. Note 10: CBtotal capacitance of one bus line in pF. Note 11: Holding the SDA line low for a time greater than tTIMEOUT causes the device to reset SDA to the idle state of the serial bus communication (SDA set high).
Maxim Integrated
SDA tBUF tLOW SCL tHIGH tHD:DAT STOP START tSU:DAT REPEATED START tF tHD:STA tSP
tHD:STA
tR
tSU:STA
tSU:STO
1.47kHz
Maxim Integrated
TOP VIEW
VCC
20
TACH1
19
18
TACH2
17
MAX31790
+
2 SPIN_START 3 ADD1 4 ADD0 5 WD_START
EP
6 XTAL2
Pin Description
PIN 1 2 3 4 5 6 NAME FREQ_START SPIN_START ADD1 ADD0 WD_START XTAL2 FUNCTION This input is sampled at power-up and sets the power-up value for the PWM output frequency. See the Register Map for values. This input is sampled at power-up and sets the initial spin-up behavior. See the Register Map for values. Address Select Inputs. Sampled at the start of every I2C transaction. One of 16 possible addresses can be selected by connecting ADD0 and ADD1 to GND, VCC, SDA, or SCL. This input is sampled at power-up and sets the initial I2C watchdog behavior. See the Register Map for values. Pins for Connecting to Optional 32,768Hz Crystal. The crystal can be used when the best RPM precision is required. At POR the internal oscillator is used, and a nominal 32,768Hz clock is produced at CLKOUT. If a crystal is connected between XTAL1 and XTAL2, the crystal oscillator can be enabled by writing to a register. If no crystal is present, ground XTAL1 and leave XTAL2 unconnected. Ground
7 8
XTAL1 GND
Maxim Integrated
28
CLKOUT EP
Maxim Integrated
OSCILLATOR CIRCUIT
INTERNAL OSCILLATOR
POWER CONTROL
WATCHDOG TIMER
PWMOUT4
PULSE-WIDTH MODULATOR
PWMOUT3
SCL PWMOUT2
SDA
USER MEMORY
PWMOUT1
TACH12 TACH11 TACH10 TACH9 TACH8 TACH7 ADD0 ADD1 SLAVE ADDRESS DECODE LOGIC FAN TACHOMETER INPUTS TACH6 TACH5 TACH4 TACH3 TACH2 TACH1 POR PIN SAMPLE LOGIC FAN FAIL LOGIC
MAX31790
SPIN_START
WD_START
FAN_FAIL
FULL_SPEED
Maxim Integrated
Fan Control
Maxim Integrated
PWM1 activates. The PWM duty cycle begins to increase at the selected rate of change. After the selected delay time has elapsed, PWM2 activates. Again, the PWM duty cycle begins to increase at the selected rate of change. The other PWM channels activate in sequence, each delayed by the selected delay time relative to the previous channel. Note that the time delay applies to unused or disabled channels. FULL_SPEED Input Driving this input low forces all fans to full speed with the exception of any failed fans (if 0% on failure has been selected). This input allows an external temperature switch to provide fail-safe overtemperature protection. In systems with multiple MAX31790s, all FAN_FAIL outputs can be connected to all FULL_SPEED inputs, thereby providing full-speed operation if any fan fails, regardless
Maxim Integrated
10
TACH1
PWMOUT1 (TACH7)
MAX31790
TACH2
PWMOUT2 (TACH8)
TACH3
PWMOUT3 (TACH9)
TACH4
PWMOUT4 (TACH10)
TACH5
PWMOUT5 (TACH11)
TACH6
PWMOUT6 (TACH12)
Maxim Integrated
11
TACH1 PWMOUT1
TACH1 PWMOUT1
MAX31790
TACH2
MAX31790
TACH2
PWMOUT2 (TACH8)
PWMOUT2 (TACH8)
TACH3
TACH3
PWMOUT3 (TACH9)
PWMOUT3 (TACH9)
TACH4
TACH4 PWMOUT4
PWMOUT4 (TACH10)
TACH5
TACH5
PWMOUT5 (TACH11)
PWMOUT5 (TACH11)
TACH6
TACH6
PWMOUT6 (TACH12)
PWMOUT6 (TACH12)
Maxim Integrated
12
TACH1 PWMOUT1
TACH1 PWMOUT1
MAX31790
TACH2
MAX31790
TACH2
PWMOUT2 (TACH8)
PWMOUT2 (TACH8)
TACH3 PWMOUT3
TACH3 PWMOUT3
TACH4
TACH4 PWMOUT4
PWMOUT4 (TACH10)
TACH5 PWMOUT5
TACH5
PWMOUT5 (TACH11)
TACH6
TACH6 PWMOUT6
PWMOUT6 (TACH12)
When enabled, the device monitors the TACH inputs to determine when a fan has failed. For fans with tachometer outputs, failure is detected in various ways depending on the fan control mode. In every case, from one to six consecutive fault detections (selected by the Fan Fault Queue bits) are required to decide that the fan has failed. When the selected number of fault detections has occurred, the FAN_FAIL output asserts (if fault detection is not masked for the fan).
Fan Failure
PWM Mode Failure Detection In PWM mode, the TACH Target Count register holds the upper limit for tachometer count values. A potential fault condition is identified when the TACH count exceeds the value written to the TACH Target Count register. If the Fan Fault Queue bit value is 1 and the following tachometer count (1 second later) also exceeds the limit value, the fan is considered to have failed. A higher Fan Fault Queue bit value requires a larger number of consecutive values in excess of the limit value. When a PWM output is used as a TACH input, the PWM-mode failure criteria apply. In PWM mode, fan-failure detection is masked when the target duty cycle is set to zero.
13
Maxim Integrated
reside on the same I2C bus. See Table 1 for a complete list of all 16 possibilities and the corresponding ADD0 and ADD1 pin connections. For example, the devices slave address byte is 40h when ADD0 and ADD1 pins are grounded during a START condition. I2C communication is described in detail in the I2C Serial Interface Description section. Note: If the state of the ADD0 and ADD1 pins is changing during normal operation, the slave address of the device dynamically changes to reflect the pins states at every START condition. The ADD0 and ADD1 pins cannot change during an I2C transaction.
MSB 0 1 0 0
SEE TABLE 1 0 0 0
LSB R/W
SLAVE ADDRESS*
READ/WRITE BIT
14
Register Map
R/W REGISTER POR STATE FUNCTION D7 D6 D5 D4 D3 OSC: 0 = Internal oscillator 1 = External crystal D2 D1 D0 I2C Watchdog Status 1 = Watchdog fault detected
R/W
00h
0010 0XX0b
Global Configuration
RESERVED
R/W
01h
FREQ_START
PWM Frequency
PWM4-PWM6 Frequency: 0000b = 25Hz 0001b = 30Hz 0010b = 35Hz 0011b = 100Hz 0100b = 125Hz 0101b = 149.7Hz 0110b = 1.25kHz 0111b = 1.47kHz 1000b = 3.57kHz 1001b = 5kHz 1010b = 12.5kHz 1011b = 25kHz
PWM1-PWM3 Frequency: 0000b = 25Hz 0001b = 30Hz 0010b = 35Hz 0011b = 100Hz 0100b = 125Hz 0101b = 149.7Hz 0110b = 1.25kHz 0111b = 1.47kHz 1000b = 3.57kHz 1001b = 5kHz 1010b = 12.5kHz 1011b = 25kHz
R/W
02h
0XX0 0000b
Fan 1 Configuration
Spin-Up 00b = No Spin-up TACH/ 01b = 2 TACH counts Control/Monitor TACH Locked or 0.5s Input 0 = Control Rotor 10b = 2 TACH counts Enable 0 = TACH 1 = Monitor or 1s 1 = Enabled 1 = Locked only 11b = 2 TACH counts Rotor or 2s Same as Fan 1 Configuration Same as Fan 1 Configuration
R/W R/W
03h 04h
Maxim Integrated
15
Same as Fan 1 Configuration Same as Fan 1 Configuration Same as Fan 1 Configuration PWM Rate-of-Change: 000b = 0ms per LSB (PWM) 000b = 0.9765ms per LSB (RPM) 001b = 1.953125ms per LSB 010b = 3.90625ms per LSB 011b = 7.8125ms per LSB (default) 100b = 15.625ms per LSB 101b = 31.25ms per LSB 110b = 62.5ms per LSB 111b = 125ms per LSB Same as Fan 1 Dynamics Same as Fan 1 Dynamics Same as Fan 1 Dynamics Same as Fan 1 Dynamics Same as Fan 1 Dynamics Fan 12 Fault RESERVED RESERVED 1 = Fault RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED Fan 6 Fault 1 = Fault Fan 12 Mask 1 = Masked Fan 6 Mask 1 = Masked Fan 11 Fault 1 = Fault Fan 5 Fault 1 = Fault Fan 11 Mask 1 = Masked Fan 5 Mask 1 = Masked Fan 10 Fault Fan 9 Fault Fan 8 Fault Fan 7 Fault 1 = Fault 1 = Fault 1 = Fault 1 = Fault Fan 4 Fault Fan 3 Fault Fan 2 Fault Fan 1 Fault 1 = Fault 1 = Fault 1 = Fault 1 = Fault Fan 10 Mask Fan 9 Mask Fan 8 Mask Fan 7 Mask 1 = Masked 1 = Masked 1 = Masked 1 = Masked Fan 4 Mask Fan 3 Mask Fan 2 Mask Fan 1 Mask 1 = Masked 1 = Masked 1 = Masked 1 = Masked
R/W
08h
0100 1100b
Fan 1 Dynamics
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
09h 0Ah 0Bh 0Ch 0Dh 0Eh 0Fh 10h 11h 12h 13h
0100 1100b 0100 1100b 0100 1100b 0100 1100b 0100 1100b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0011 1111b 0011 1111b
Fan 2 Dynamics Fan 3 Dynamics Fan 4 Dynamics Fan 5 Dynamics Fan 6 Dynamics User Byte User Byte Fan Fault Status 2 Fan Fault Status 1 Fan Fault Mask 2 Fan Fault Mask 1
Maxim Integrated
16
R/W
14h
0100 0101b
Sequential Start Delay 000b = 0s 001b = 250ms 010b = 500ms 011b = 1s 100b = 2s 101b, 110b, 111b = 4s
RESERVED
Failed Fan Options 00b = duty cycle = 0% on fail 01b = Continue PWM or RPM mode operation on fail. 10b = duty cycle = 100% on fail 11b = All fans to 100% on any unmasked fan failure.
Fan Faut Queue 00b = 1 fault 01b = 2 faults 10b = 4 faults 11b = 6 faults
15h 16h 17h 18h 19h 1Ah 1Bh 1Ch 1Dh 1Eh 1Fh 20h 21h 22h 23h 24h 25h
0000 0000b 0000 0000b 0000 0000b 1111 1111b 1110 0000b 1111 1111b 1110 0000b 1111 1111b 1110 0000b 1111 1111b 1110 0000b 1111 1111b 1110 0000b 1111 1111b 1110 0000b 1111 1111b 1110 0000b
User Byte User Byte User Byte TACH 1 Count MSB TACH 1 Count LSB TACH 2 Count MSB TACH 2 Count LSB TACH 3 Count MSB TACH 3 Count LSB TACH 4 Count MSB TACH 4 Count LSB TACH 5 Count MSB TACH 5 Count LSB TACH 6 Count MSB TACH 6 Count LSB TACH 7 Count MSB TACH 7 Count LSB 210 22 29 21 28 20 27 0
26 0 25 0 24 0 23 0
Maxim Integrated
17
30h
0000 0000b
25
24
23
22
21
31h
0000 0000b
20
32h
0000 0000b
33h
0000 0000b
34h
0000 0000b
35h
0000 0000b
Maxim Integrated
18
36h
37h
0000 0000b
38h
0000 0000b
39h
0000 0000b
3Ah
0000 0000b
R R R R R R/W
0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b
0 0 0 0 25
0 0 0 0 24
0 0 0 0 23
0 0 0 0 22
0 0 0 0 21
PWMOUT1 PWM_START Target Duty Cycle MSB PWMOUT1 PWM_START Target Duty Cycle LSB PWMOUT2 PWM_START Target Duty Cycle MSB PWMOUT2 PWM_START Target Duty Cycle LSB PWMOUT3 PWM_START Target Duty Cycle MSB PWMOUT3 PWM_START Target Duty Cycle LSB
R/W
41h
20
RESERVED RESERVED
RESERVED
R/W
42h
R/W
43h
R/W
44h
R/W
45h
Maxim Integrated
19
R/W
46h
PWMOUT4 PWM_START Target Duty Cycle MSB PWMOUT4 PWM_START Target Duty Cycle LSB PWMOUT5 PWM_START Target Duty Cycle MSB PWMOUT5 PWM_START Target Duty Cycle LSB PWMOUT6 PWM_START Target Duty Cycle MSB PWMOUT6 PWM_START Target Duty Cycle LSB 0000 0000b 0000 0000b 0000 0000b 0000 0000b User Byte User Byte User Byte User Byte 210 29
R/W
47h
R/W
48h
R/W
49h
R/W
4Ah
28 27 26 25 24 23
TACH 1 0011 1100b Target Count MSB TACH 1 0000 0000b Target Count LSB TACH 2 0011 1100b Target Count MSB TACH 2 0000 0000b Target Count LSB TACH 3 0011 1100b Target Count MSB TACH 3 0000 0000b Target Count LSB
R/W
51h
22
21
20
RESERVED
R/W
52h
R/W
53h
R/W
54h
R/W
55h
Maxim Integrated
20
R/W
56h
TACH 4 0011 1100b Target Count MSB TACH 4 0000 0000b Target Count LSB TACH 5 0011 1100b Target Count MSB TACH 5 0000 0000b Target Count LSB TACH 6 0011 1100b Target Count MSB TACH 6 0000 0000b Target Count LSB 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b 0000 0000b User Byte User Byte User Byte User Byte Window 1 Window 2 Window 3 Window 4 Window 5 Window 6 User Byte User Byte 27 26 25
R/W
57h
R/W
58h
R/W
59h
R/W
5Ah
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
5Bh 5Ch 5Dh 5Eh 5Fh 60h 61h 62h 63h 64h 65h 66h 67h
24 23 22 21 20 Same as Window 1 Same as Window 1 Same as Window 1 Same as Window 1 Same as Window 1
Maxim Integrated
21
00h
Reset
Bus Timeout
RESERVED
OSC
I2C Watchdog
BIT 7
Run/Standby: Places the device in standby mode. 0 = Run 1 = Standby Entering standby mode sets all PWM duty cycles to 0 and stops fan failure detection. However, driving the FULL_SPEED input low forces all enabled PWMOUT outputs high (100% duty cycle) regardless of the state of the Run bit. Reset: 0 = Normal operation 1 = Reset all registers to POR value This bit automatically resets itself and always returns a 0 when read. Bus Timeout: I2C bus timeout. 0 = Enabled 1 = Disabled The I2C interface resets if SDA is low for more than 35ms. RESERVED Oscillator Selection: 0 = Internal oscillator (default at power-on) 1 = External 32.768kHz crystal Selects on-chip oscillator or external 32.768kHz crystal/ceramic resonator for TACH count and source for CLKOUT pin. Use crystal or ceramic resonator if higher accuracy is required. When switching from the internal oscillator to an external crystal, the device operates from the internal oscillator until the crystal oscillator has started up. If the crystal is damaged or the oscillator fails to start, the device continues to operate from the internal oscillator.
BIT 6
BIT 5
BIT 4
BIT 3
Maxim Integrated
22
BITS 2:1
BIT 0
I2C Watchdog Status: 0 = I2C transactions occurred within watchdog period 1 = Time between I2C transaction exceeds watchdog period Clear this bit by writing a 0 to it.
Maxim Integrated
23
The POR state is set by the state of the FREQ_START pin at power-up as shown. PWM1-PWM3 Frequency: These bits select the PWM OUT frequency for PWMOUT1, PWMOUT2, and PWMOUT3 according to the following: BITS 7:4 0000b 0001b 0010b 0011b BITS 3:0 0100b 0101b 0110b 0111b 1000b 1001b 1010b 1011b PWM OUPUT FREQUENCY 25Hz 30Hz 35Hz 100Hz 125Hz 149.7Hz 1.25kHz 1.47kHz 3.57kHz 5kHz 12.5kHz 25kHz POR CONDITION FREQ_START = GND FREQ_START = Unconnected FREQ_START = VCC
The POR state is set by the state of the FREQ_START pin at power-up as shown.
Maxim Integrated
24
Mode BIT 7
Spin-Up
Control/ Monitor
BIT 7
Mode: RPM/PWM mode select. 0 = PWM mode. PWM duty cycle is set by the value in the associated PWMOUT Target Duty Cycle register. 1 = RPM mode. The PWM duty cycle is adjusted to produce the TACH count value in the associated TACH Target Count register. When changing from PWM to RPM mode, if the current RPM value is different from the value selected in the TACH Target Count register, the PWM duty cycle starts from the current value and increment/decrements toward the desired value at the selected duty cycle rate-of-change. Spin-Up: When spin-up is selected and the fan is started with a target PWM duty cycle less than 100%, the device produces 100% duty cycle until two tachometer pulses have been detected. A maximum spin-up time is also selectable to ensure that the spin-up time is not excessive. After two tachometer pulses have been detected, or the spin-up has timed out, the duty cycle goes to the value in the PWMOUT Target Duty Cycle register. The POR state is set by the state of the SPIN_START pin at power-up.
BITS 6:5
SPIN-UP BEHAVIOR No spin-up Spin-up until two tachometer pulses or 0.5s (max) Spin-up until two tachometer pulses or 1s (max) Spin-up until two tachometer pulses or 2s (max)
BIT 4
Control/Monitor: 0 = Control fan speed. 1 = Monitor only. Associated duty cycle = 0% regardless of other settings; monitor associated TACH or locked rotor if enabled by bit 3.
Maxim Integrated
25
BIT 2
BIT 1
BIT 0
Maxim Integrated
26
Speed Range: The device determines fan speed by counting the number of internal 8192Hz (fTOSC/4) clock cycles (using an 11-bit counter) during one or more fan tachometer periods. Three bits set the nominal RPM range for the fan, as shown in the table below. For example, a setting of 010b causes the device to count the number of 8192Hz (fTOSC/4) clock cycles that occur during four complete tachometer periods. If the fan has a nominal speed of 2000 RPM and two tachometer pulses per revolution, one tachometer period is nominally 15ms, and four tachometer periods are 60ms. With an 8192Hz (fTOSC/4) clock, the TACH count is therefore equal to 491. With a fan speed of 1/3 the nominal value, the count is 1474. If the fans nominal speed is 1000 RPM, the full-speed TACH count is 983. At 1/3 the nominal speed, there are 2948 clock cycles in four tachometer periods. This is greater than the maximum 11-bit count of 2047, so four tachometer periods is too many for this fan; a setting of 001 (two clock cycles) is recommended instead. The table below shows the full-speed tachometer counts for several combinations of nominal fan speeds and bits 7:5 settings. The shaded combinations provide the best results. Nonshaded combinations should generally be avoided. When setting bits 7:5, the goal is to obtain the highest tachometer count without exceeding the maximum count of 2047 when the fan is at the minimum speed of interest. For example, if the minimum speed of interest is 1/3 of full speed, the maximum tachometer count is three times the value shown in the table. BITS 7:5 NUMBER OF TACH PERIODS COUNTED 1 2 4 8 16 32 RPM 500 491 (60ms) 983 (120ms) 1966 (240ms) 2047 (480ms) 2047 (960ms) 2047 (1920ms) 1000 245 (30ms) 491 (60ms) 983 (120ms) 1966 (240ms) 2047 (480ms) 2047 (960ms) 2000 122 (15ms) 245 (30ms) 491 (60ms) 983 (120ms) 1966 (240ms) 2047 (480ms) 4000 61 (7.5ms) 122 (15ms) 245 (30ms) 491 (60ms) 983 (120ms) 1966 (240ms) 8000 30 (3.75ms) 61 (7.5ms) 122 (15ms) 245 (30ms) 491 (60ms) 983 (120ms) 16000 15 (1.875ms) 30 (3.75ms) 61 (7.5ms) 122 (15ms) 245 (30ms) 491 (60ms)
27
BITS 7:5
BITS 4:2
Asymmetric Rate of Change: 0 = Same rate of change whether duty cycle is increasing or decreasing. 1 = Rate of change when duty cycle is decreasing is half the rate when increasing. RESERVED
Maxim Integrated
28
BIT 7 General-purpose volatile bits. These bits have no affect on the device operation.
BIT 0
10h
RESERVED
Fan 9 Fault
Fan 8 Fault
RESERVED Fan [12:7] Fault: This register applies only to PWMOUTs that are being used as TACH inputs. The associated fan experienced faults as defined in the Fan Failure section. When a fan fault is detected, the associated fault bit is set to 1. The fault bits latch until they are cleared by writing a PWM target duty cycle or TACH target count to the associate fans control register, thus allowing short-term faults to be identified.
BITS 5:0
Maxim Integrated
29
BITS 5:0
12h
RESERVED
Fan 9 Mask
Fan 8 Mask
RESERVED Fan [12:7] Mask: This register applies only to PWMOUTs that are being used as TACH inputs. These bits mask faults on selected fans from asserting the FAN_FAIL output. Faults are still indicated by the fault status bits: 0 = Not masked 1 = Masked When a fan fails, the PWM behavior is controlled by the Failed Fan Options register.
BITS 5:0
Maxim Integrated
30
BITS 5:0
Maxim Integrated
31
Fan Fault Queue: These bits select the number of consecutive fault detections that are required to decide that the fan has failed according to the following: BITS 1:0 00b BITS 1:0 01b 10b 11b NUMBER OF QUALIFIED FAULTS 1 2 4 6
When the selected number of fault detections has occurred, the FAN_FAIL output asserts (if fault detection is not masked for the fan). Note: Fan fault queue has no effect on the locked rotor fanfailure detection.
Maxim Integrated
32
210
29
28
27
26
25
24
23
22
21
20
BIT 7
BIT 0
Indicates the associated number of 8192Hz (fTOSC/4) clock pulses counted during the counting period. The TACH Count register consists of 11 bits, left-justified, contained in 2 bytes. The lower 5 bits always return zeros. To minimize noise from spurious tachometer transitions, pulses less that tTACHMIN are ignored. The TACH 7 Count to TACH 12 Count registers apply only to PWMOUTs that are being used as TACH inputs.
Maxim Integrated
33
28
27
26
25
24
23
22
21
20 BIT 7
FS BIT 0
This is a 9-bit left-justified value that ranges from 0 to 511 and is contained in 2 bytes. This register shows the actual PWM duty cycle for the associate PWM output. When the value is 511 (decimal), the duty cycle is 100%. The 6:1 bits always return zeros. Register does not apply when associated PWMOUTs are being used as TACH inputs. The register value is converted to the duty cycle at the fan as follows: BITS 15:7 DECIMAL 0 200 300 400 480 511 When duty cycle reaches 100%, bit 0 is set to a 1. HEX 000h 0C8h 12Ch 190h 1E0h 1FFh PWM DUTY CYCLE (%) 0 39 59 78 94 100
Maxim Integrated
34
This is a 9-bit left-justified value that ranges from 0 to 511 and is contained in 2 bytes. In PWM mode, write the desired PWM duty cycle to these two registers. The device then increments the duty cycle to this value at a rate determined by the PWM duty cycle rate-of-change bits. In RPM mode, the value contained in this register is the duty cycle at PWMOUT immediately after spin-up or after changing the TACH target count from 2047 (7FF) to any value lower than 2047 (7FF). For example, if the fan is currently stopped with spin-up disabled, and a new TACH target count corresponding to 60% of the full-scale fan speed is to be selected, the duty cycle can be programmed to immediately go to 60% when the new TACH target count is selected, and then close the RPM control loop starting from that duty cycle. The register value is converted to the duty cycle at the fan as follows: BITS 15:7 DECIMAL 0 200 300 400 480 511 HEX 000h 0C8h 12Ch 190h 1E0h 1FFh PWM DUTY CYCLE (%) 0 39 59 78 94 100
The value of the PWMOUT target duty cycle at POR depends on the state of the PWM_START0 and PWM_ START1 inputs as follows: POR CONDITION PWM_START0 GND GND GND Unconnected Unconnected VCC VCC
Maxim Integrated
210
29
28
27
26
25
24
23
22 BIT 7
21
20
RESERVED
RESERVED
RESERVED
RESERVED
RESERVED BIT 0
This is an 11-bit left-justified value that is contained in 2 bytes. It indicates the desired number of 8192Hz (fTOSC/4) clock pulses counted during the counting period. In RPM mode, write the desired tachometer count to this register. The device then adjusts the associated PWM duty cycle to achieve this tachometer count. In PWM mode, this register is not used as part of the fan control algorithm. In both PWM and RPM modes, this register is used to determine fan faults. See the Fan Faults register description for details. When changing from PWM mode to RPM mode, best results are obtained by loading this register with the current TACH count before changing to RPM mode. The TACH target count for a given RPM is obtained by the following equation: 60 TACH Count = SR 8192 NP RPM where: NP = number of TACH pulse per revolution SR = 1, 2, 4, 8, 16, 32 (see the Speed Range bit information in the associated Fan Dynamics register)
Maxim Integrated
36
27 BIT 7
26
25
24
23
22
21
20 BIT 0
When the fans speed is near the target speed in RPM modethat is, when the TACH count is near the corresponding TACH target countthe control loop dynamics can often be improved by slowing the rate of change of the PWM duty cycle. This operates as follows: First, set a value for the count window and store it in the appropriate window register. In RPM mode, calculate the difference between the current TACH count and the target TACH count. If the absolute value of this difference is less than the value in the window register, then the update rate of the PWM duty cycle is slowed to 1 LSB per second. When the current TACH count falls outside of the window, the duty cycle rate of change reverts to the selected value. Note: When operating in PWM mode, the window value is typically set to 0.
Maxim Integrated
37
I2C Definitions
Acknowledgement (ACK and NACK): An acknowledgement (ACK) or not-acknowledge (NACK) is always the 9th bit transmitted during a byte transfer. The device receiving data (the master during a read or the slave during a write operation) performs an ACK by transmitting a zero during the 9th bit. A device performs a NACK by transmitting a one (done by releasing SDA) during the 9th bit. The timing (Figure 1) for the ACK and NACK is identical to all other bit writes. An ACK is the acknowledgment that the device is properly receiving data. A NACK is used to terminate a read sequence or as an indication that the device is not receiving data. Byte Write: A byte write consists of 8 bits of information transferred from the master to the slave (most significant bit first) plus a 1-bit acknowledgement from the slave to the master. The 8 bits transmitted by the master are done according to the bit write definition and the acknowledgement is read using the bit read definition. Byte Read: A byte read is an 8-bit information transfer from the slave to the master plus a 1-bit ACK or NACK from the master to the slave. The 8 bits of information that are transferred (most significant bit first) from the slave to the master are read by the master using the bit read definition, and the master transmits an ACK using the bit write definition to receive additional data bytes. The master must NACK the last byte read to terminate communication so the slave returns control of SDA to the master. Slave Address Byte: Each slave on the I2C bus responds to a slave address byte sent immediately following a START condition. The slave address byte contains the slave address in the most significant 7 bits and the R/W bit in the least significant bit. See the Slave Address Byte and Address Pins section for details on the MAX31790s slave address. If an incorrect (nonmatching) slave address is written, the MAX31790 assumes the master is communicating with another I2C device and ignores the communication until the next START condition is sent. Memory Address: During an I2C write operation to the MAX31790, the master must transmit a memory address to identify the memory location where the slave is to store the data. The memory address is always the second byte transmitted during a write operation following the slave address byte.
38
MSB START 0 1 0
SEE TABLE 1
MSB b7 b6 b5 b4 b3 b2 b1
MSB b7 b6 b5 b4 b3 b2 b1
SLAVE ADDRESS*
REGISTER ADDRESS
DATA
EXAMPLE I2C TRANSACTIONS WITH 40h AS THE DEVICE ADDRESS (WHEN ADD0 AND ADD1 ARE CONNECTED TO GND)
40h 0Eh 00h SLAVE 0 0 0 0 0 0 0 0 SLAVE START 0 1 0 0 0 0 0 0 SLAVE 0 0 0 0 1 1 1 0 ACK ACK ACK 40h 0Eh START 0 1 0 0 0 0 0 0 SLAVE 0 0 0 0 1 1 1 0 SLAVE ACK ACK
STOP
REPEATED START
C)
40h 0Eh 01h 75h SLAVE 0 0 0 0 0 0 0 1 SLAVE 0 1 1 1 0 1 0 1 SLAVE START 0 1 0 0 0 0 0 0 SLAVE 0 0 0 0 1 1 1 0 ACK ACK ACK ACK 40h 0Eh SLAVE SLAVE 0 0 0 0 1 1 1 0 ACK ACK 41h REPEATED START 01000001 SLAVE ACK DATA
STOP
START 0 1 0 0 0 0 0 0
DATA IN 0Eh
Maxim Integrated
39
Changing from PWM Mode to RPM Mode: Write the desired tachometer count to the corresponding TACH Target Count registers.
Maxim Integrated
40
MAX31790
91k
TACH OUTPUT
+20V
R3 0.5
L1 47H D1 1N5819 IN
C3 47F C1 470pF
VCC TC
IPK
D 33063A GND
R2 3.6k C2 470F
C4 0.1F
R1A 1.2k
3.3V 0.1F
MAX31790
Figure 10. Using a Low-Cost DC-DC Converter to Efficiently Transform PWMOUT Signal Into Variable Power Supply for the Fan
Maxim Integrated
41
Power-Supply Decoupling
Layout Considerations
Ordering Information
PART MAX31790ATI+ TEMP RANGE -40NC to +125NC -40NC to +125NC PIN-PACKAGE 28 TQFN-EP* 28 TQFN-EP*
3.3V 0.1F 3.3V 4.7k TACH1 TACH OUTPUT 3.3V 4.7k PWMOUT1 VFAN 3.3V
MAX31790ATI+T
Packaging Information
For the latest package outline information and land patterns (footprints), go to www.maximintegrated.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 28 TQFN-EP PACKAGE CODE T2844+1 OUTLINE NO. 21-0139 LAND PATTERN NO. 90-0035
MAX31790
Figure 11. Controlling the Speed of a 2-/3-Wire Fan by PulseWidth Modulating the Fans Power-Supply Voltage
Maxim Integrated
42
Maxim Integrated cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim Integrated product. No circuit patent licenses are implied. Maxim Integrated 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 160 Rio Robles, San Jose, CA 95134 USA 1-408-601-1000
2013 Maxim Integrated Products, Inc.
43
Maxim Integrated and the Maxim Integrated logo are trademarks of Maxim Integrated Products, Inc.