English
Language : 

MIC74 Datasheet, PDF (8/20 Pages) Micrel Semiconductor – 2-Wire Serial I/O Expander and Fan Controller Advance Information
MIC74
notify the host of an input change without requiring periodic
polling by the host or a message transaction on the bus.
Regardless of whether interrupts are enabled or disabled,
each input-change event also sets the corresponding bit in
the status register. I/O configuration is performed using the
output configuration (OUT_CFG), I/O direction (DIR), and
interrupt mask (INT_MASK) registers.
If the FAN bit in the device configuration register is set, the
states of P[7:4] are controlled by the FAN_SPEED register.
The bits in the OUT_CFG, DIR, and INT_MASK registers
corresponding to P[7:4] are ignored. When in Fan Mode,
P[7:4] are referred to as /FS2, /FS1, /FS0, and /SHDN. While
in this mode, no interrupts of any kind will be generated by
these pins.
/ALERT
The alert signal is an open-drain, active-low output. The
operation of the /ALERT output is controlled by the IMn bits
in the INT_MASK register and the global interrupt enable bit
(IE) in the DEV_CFG register.
If the IE bit is set to zero, or if the corresponding interrupt
enable bit, IMn, is set to zero, no input-change interrupts will
be generated. (Regardless of the IE bit setting, the change
will be reflected in the status register.)
If the IE bit is set to one, IMn is set to one, and Pn is an input,
then /ALERT is driven active whenever Pn changes state,
(goes from a high-to-low or low-to-high state). Once triggered,
/ALERT is unconditionaly reset to its inactive state once the
MIC74 successfully responds to the alert response address
or STATUS is read.
Serial Port Operation
The MIC74 uses standard SMBus Read_Byte and Write_Byte
operations to communicate with its host.
The Read_Byte operation is a composite read-write opera-
tion consisting of first sending the MIC74’s slave address
followed by a command byte (a write) and then resending the
slave address and clocking out the data byte (a read). The
command byte is the address of the target register. See Table
2. An example of a Read_Byte operation is shown in Figure
8.
Similarly, the write-byte operation consists of sending the
device’s slave address followed by a command byte and the
byte to be written to the target register. Again, in the case of
Micrel
the MIC74, the command byte is the address of the target
register. See Table 2.
In addition, to the read byte and write byte protocols, the
MIC74 adheres to the SMBus protocol for response to the
ARA (alert response address). An MIC74 expects to be
interrogated using the ARA when it has asserted its /ALERT
output. /ALERT interrupts can be enabled or disabled using
the IE bit in the DEV_CFG register.
Power-On
When power is initially applied, the MIC74’s internal registers
will assume their power-up default state and the state of the
address inputs, A2, A1 and A0, will be read to establish the
device’s slave address. See the individual register descrip-
tions for each registers default state. Also see Table 2.
I/O Ports
Each I/O bit, P0 through P7, may be individually programmed
as an input or output using the corresponding bit in the I/O
direction register, DIR.
If programmed as an output, each is further programmable as
either a complementary push-pull or open-drain output using
the output configuration register, OUT_CFG.
If enabled by the corresponding bit, IMn, in the interrupt mask
register INT_MASK, each Pn programmed as an input will
generate an interrupt to the host on /ALERT if the input
changes state. In this way, the MIC74 can notify the host of
an input change without requiring periodic polling by the host
or a transaction on the bus.
Each input-change event also sets the corresponding bit in
the status register, STATUS.
See “Functional Diagram” for the logic arrangement of a
typical MIC74 I/O port.
Fan Speed Control
If the FAN bit in the device configuration register is set, the
state of P[7:4] is controlled by the FAN_SPEED register. The
bits in the OUT_CFG, DIR, and INT_MASK registers corre-
sponding to P[7:4] are ignored. When in Fan Control Mode,
P[7:4] are referred to as /FS2, /FS1, /FS0, and /SHDN. While
in this mode, no interrupts of any kind will be generated by
these pins. See “Applications Information” for typical fan
speed control applications.
MIC74
Register
Name
DEV_CONFIG
DIR
OUT_CFG
STATUS
INT_MASK
DATA
FAN_SPEED
Register
Description
Address
Binary
Hex
Available
Operations
Device Configuration 0000 0000b 00h
I/O Direction
0000 0001b 01h
Output Configuration 0000 0010b 02h
Interrupt Status
0000 0011b 03h
Interrupt Mask
0000 0100b 04h
General-Purpose I/O 0000 0101b 05h
Fan Speed
0000 0110b 06h
8-bit read/write
8-bit read/write
8-bit read/write
8-bit read
8-bit read/write
8-bit read/write
8-bit read/write
Table 2. Register Summary
8
Power-On Default
Binary
Hex
0000 0000b 00h
0000 0000b 00h
0000 0000b 00h
0000 0000b 00h
0000 0000b 00h
1111 1111b FFh
0000 0000b 00h
August 1, 2000