MCC MIIC-101 User manual

User’s Guide
I2C Bus / SMBus Monitor
and
I2C/SMBus Software Analyzer
Version 1.6
Micro Computer Control Corporation
www.mcc-us.com

This user’s guide is for use with MCC’s I2C/SMBus Monitor
(#MIIC-101), and I2C/SMBus Analyzer Software (#SMB-SW)
Table of Contents:
System Requirements (Remote Mode Only) .........................I
System Components ............................................I
Optional Add-On Parts .........................................I
Introduction .................................................. 1
I2CBus/SMBusMonitor.................................. 1
ProductFeatures ......................................... 2
Input / Output Ports ........................................... 3
I2CBus/SMBusPort..................................... 3
RS-232 Serial Port ....................................... 4
ExternalTriggerPort ..................................... 4
Set-Up ...................................................... 5
ConnectingaPowerSource ................................ 5
InternalBatteryPower .................................... 5
ExternalPower .......................................... 5
Connecting to an I2CBus/SMBus........................... 6
ConnectingtheExternalTrigger............................. 6
ConnectingtheSerialCable(optional)........................ 6
Operating Modes ............................................. 9
Stand-AloneOperation .................................... 9
QuickStart ............................................. 9
AddressSelectMode .................................... 10
ViewStatusMode....................................... 10

TraceMode............................................ 11
ViewDataMode........................................ 11
RemoteMode .......................................... 13
BusSimulationMode.................................... 13
RemoteOperation....................................... 14
I2C Bus / SMBus Analyzer Software ............................. 15
QuickStart ............................................ 15
SoftwareInstallation..................................... 16
EquipmentSetup ....................................... 16
StartingTheProgram .................................... 16
ProgramControls:....................................... 17
ButtonControls: ........................................ 17
CheckBoxControls:..................................... 18
GridControl:........................................... 19
MenuControls:......................................... 19
Application Program Interface ................................. 22
CommandSyntax ....................................... 22
BaudRateSelect........................................ 23
ASCIIRemoteSelect .................................... 24
BinaryRemoteSelect .................................... 25
CTS/RTSHandshakingCommand.......................... 27
DumpTraceBuffer...................................... 27
EnableBusSimulation ................................... 28
RemoteTrace .......................................... 29
SelectAddress.......................................... 29
Remote ............................................... 29
TestSystem............................................ 30
Help ................................................. 31
Appendix A - Solving Problems ................................. 32
Appendix B - Operating Specifications ........................... 34
Appendix C - Serial Port Commands ............................ 34

LIMITED WARRANTY
Micro Computer Control (MCC) Corporation warrants this products against
defects in materials and workmanship for a period of ninety (90) days from
the original date of purchase.
This limited warranty is not applicable to:
1) Normal wear and tear;
2) Abuse, unreasonable use, mistreatment or neglect;
3) Damage caused by the equipment or system with which the product is
used; or
4) Damage caused by modification or repair not authorized by MCC.
THIS WARRANTY IS EXTENDED TO THE ORIGINAL PURCHASER
ONLY AND IS IN LIEU OF ALL OTHER WARRANTIES, INCLUDING
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE.
In no event will MCC be liable for any incidental or consequential damages.
During the warranty period, MCC will repair, replace or refund the purchase
price of any product found defective at its option. Returned items require
an RMA (Return Material Authorization) issued by MCC, must be carefully
packaged, insured for the full replacement value, with shipping charges
prepaid, before the return will be accepted.

I
System Requirements (Remote Mode Only)
The I2C/SMBus Monitor can be used in stand-alone mode or host
computer controlled remote mode. To use the I2C/SMBus Monitor in
remote mode with the I2C/SMBus Analyzer Software, your PC must meet
the following requirements:
IBM PC or 100% compatible System.
4MB of RAM.
1 MB Free Hard Disk Space.
Microsoft Windows 3.1, 3.11, 95, 98, NT or above.
Mouse.
VGA or Better Monitor.
1 Free RS-232 Serial Port (COM1,2,3,4).
System Components
The I2C/SMBus Monitor package includes the following components:
1. I2C/SMBus Monitor (#MIIC-101)
2. I2C Bus Clip Lead Cable, 2Ft. (#CABCL).
3. I2C Interface Cable, 4Ft. (#CAB4).
4. RS-232 Serial Cable, 7Ft. with DB-25 adapter (#MEE-PS).
5. Wall Transformer (depending on power configuration selected, see next
pg).
6. User’s Guide.
7. I2C/SMBus Analyzer Software (#SMB-SW) for remote usage, (included
with MIIC-101K only)

Power Configurations
Standard (#MIIC-101) 120 VAC 60Hz 6W to 5VDC
300mA Regulated, USA Plug.
European (#MIIC-101E) 220V~50Hz 5W to 5V 300mA
Regulated, European Plug.
International (#MIIC-101I) 120 VAC 60Hz 6W to 5VDC
300mA Regulated, USA Plug,
220/240VAC, 50-60Hz, up to 50
Watts Converter, and International
Adapter Set.
Optional Add-On Parts
1. I2C/SMBus Analyzer Software (#SMB-SW).
2. I2C Interface Cable, 8Ft. (#CAB8).
3. I2C Interface Cable, 16Ft. (#CAB16).
4. I2C Bus Clip Lead Cable, 2Ft. (#CABCL).

I2C Bus / SMBus
Monitor
Model No. MIIC-101

1
Introduction
The I2C Bus / SMBus Monitor is a Troubleshooting Tool for the Inter-
Integrated Circuit (I2C) Bus developed by Philips Semiconductors and the
System Management Bus (SMBus) developed by Intel Corporation. When
connected to an I2C Bus or SMBus network, the I2C Bus / SMBus Monitor
can capture and display bus message activity.
The I2C Bus / SMBus Monitor can operate in two modes, stand-alone and
remote. In stand-alone mode, the built-in display and keypad supports the
capture and display of bus messages. In remote mode, the monitor is
controlled by a host computer via an RS-232 serial communications port.
For remote mode operation, MCC offers an optional Windows-based I2C
Bus / SMBus Analyzer software (#SMB-SW) to provide remote control of
the monitor from a PC. This software allows bus message data to be
captured, logged, filtered, displayed, and analyzed using one of several
built-in protocol parsers, including the display of Smart Battery System
(SBS) messages in engineering units.
In addition to MCC’s standard software, a customer may also develop
custom software to meet special processing requirements. Custom
software can control, collect, and upload bus message data to a host
system. This provides a powerful tool for integrating the monitor into an
automatic manufacturing-test environment. Remote control is
accomplished via a series of ASCII text commands. A description of the
monitor command set is provided in the Application Program Interface
section of this manual.
The complete I2C Bus / SMBus Monitor package consists of a hand-held
unit, connecting clip-lead and interface cables, power supply, and optional
Windows-based analyzer software.
I2C Bus / SMBus Monitor

2
Product Features
I2C Bus and SMBus Compatible.
Captures bus traffic to 100kHz with minimal clock-stretching
requirements.
Compatible with 3.3 to 5 volt bus logic.
Trace Buffer stores up to 2700 messages. Unlimited when operated in
remote mode.
Stand-Alone and Remote Operating Modes.
RS-232 Port supports Host Computer communication.
Optional software integrates monitor and PC resources.

3
Input / Output Ports
The I2CBus/SMBus Monitor includes three I/O ports (Bus, COM, and
TRIG
) for connecting the unit to the network under test and an optional
host computer system.
This section provides a general description of these I/O ports. For specific
port use, see th “Installation”section of this guide.
The monitor provides a Molex Semicon connector (BUS) for connecting to
the I2C Bus or SMBus.
Pin Signal Description
1 GND Ground Line
2 SDA Data Line
3 V Bus +5V (Optional)
4 SCL Clock Line
A clip lead cable (#CABCL), included with the unit, provides connection to
the system under test. The Bus +5v line is used to optionally supply or
source power from the target system. See the Power Supply Section for
information on the use of this line.
I2C Bus / SMBus Port

4
An RS-232 serial port connector (COM) and cable provides connection to
an optional Host system. This port provides remote unit control and data
uploading capabilities.
Pin Signal Description
1 CTS Clear To Send (Host > Monitor) (Optional)
2 TX Data (Monitor > Host)
3 GND Ground Line
4 RX Data (Host > Monitor)
A serial port cable with DB-25 and DB-9 adapter, included with the unit,
provides connection to the RS-232 serial communications port on an
optional Host system.
An External Trigger port connector (TRIG
) and clip lead provides Trace
synchronization with external signals. The trigger is activated on a high to
low signal transition.
RS-232 Serial Port
External Trigger Port

5
Set-Up
~ ~ ~ ~ CAUTION ~ ~ ~ ~
Powering the monitor from its +5V external power jack applies power to
the BUS +5V (V) line. The BUS V line should only be connected to the
system under test if: a) You are powering the monitor from the target
system; or, b) You are powering the target system from the monitor. DO
NOT CONNECT BOTH THE WALL POWER AND TARGET POWER
SUPPLIES TOGETHER.
Internal Battery Power
External Power
The I2C Bus/SMBus Monitor can be powered from either internal or
external power sources.
An internal 9V battery provides unit power when the power switch is in the
ON position. This power source allows the unit to operate stand-alone, or
when another power source is unavailable.
When the power switch is in the EXTernal position, the unit can be
powered from:
1. The BUS +5V (V) Input line.
2. A regulated +5V wall power supply (Digi-Key #T309-ND or CUI/Stack #
DPR050030-P6) through the external power jack (+5V).
Connecting a Power Source

6
The unit provides a test clip lead cable for connection to an I2C Bus or
SMBus under test. On the monitor, the test clip cable connects to the
Molex Semicon modular connector marked BUS.
Test clips are provided for:
Clip ID Signal Description
G GND Ground Line
DSDA I
2C/SMBus Data Line
V V +5V (Optional)
CSCL I
2C/SMBus Clock Line
For information on using the +5v option, see the “Power Supply Section”
of this guide.
The monitor provides External Triggering for Trace synchronization with
external events. Trace synchronization allows bus traffic to be collected
immediately before or after an electronic event.
A High-to-Low transition on the External Trigger port can be used to start
a PRE-TRIG trace, or stop a POST-TRIG trace. See the Trace Mode
section of this guide for trace synchronization details.
The Serial Cable provides the connection between the monitor and an
optional Host system. On monitor, the Serial Cable connects to the
modular RJ-45 connector marker COM. On the Host system, the cable
connects to a standard RS-232 serial communications port. Both DB-25
and DB-9 connectors are supported.
Connecting to an I2C Bus / SMBus
Connecting the External Trigger
Connecting the Serial Cable (optional)

7
When using a Host computer, data terminal, or terminal emulator
program to access the monitor via its RS-232 port, communication
parameters must be properly set before communicating can begin.
The monitor operates with the following Serial Link communication
parameters:
Baud Rate * 19.2K or 57.6K
Parity None
Data Bits 8
Stop Bits 1 or 2
* The monitor defaults to 19.2K baud at power up. See the Serial
Command section for more information on switching to baud rates.
The monitor’s serial port is configured as a Data Communications
Equipment (DCE) device, thus permitting direct connection to a PC’s
standard RS-232 serial communications port. In this configuration, only
three (3) wires (TX, RX, and GND) are required to establish serial
communication. An optional fourth handshaking wire may be used to
establish hardware flow control.
DB-25 Pin Assignments
Pin Name Description
2 TX Transmit Data to Monitor
3 RX Receive Data from Monitor
4 RTS Request to Send to Monitor (Optional)
7 GND Signal Ground

8
DB-9 Pin Assignments
Pin Name Description
2 RX Receive Data from Monitor
3 TX Transmit Data to Monitor
5 GND Signal Ground
7 RTS Request to Send to Monitor (Optional)

9
Operating Modes
The I2C Bus / SMBus Monitor can operate in two modes, stand-alone
and remote. In stand-alone mode, the built-in display and keypad
supports the capture and display of bus data. In remote mode, the
monitor is controlled by a host computer via an RS-232 serial
communications port.
Quick Start
1. Connect monitor to the target bus.
2. Turn monitor power to ON or EXT.
3. Select address mode ALL or SELECT.
4. Press PRE or POST-TRIG Trace button to begin data capture.
PRE-TRIG waits for TRIG
line low or repeat PRE-TRIG button press.
5. Press VIEW-DATA button to end capture and enable BYTE, MSG,
and BUFFER display scroll buttons.
When using the I2C Bus/SMBus Monitor stand-alone, the unit performs
data collection and display using eight (8) operating modes. These modes
include:
Operation Description
Address Selection Select slave address to monitor
View Status View bus signal logic levels
Trace Capture bus message data
View Data View captured bus data
Remote Capture/Transmit bus data
Simulation Simulate bus message data
Stand-Alone Operation

10
Address Select Mode
View Status Mode
Address Select Mode is used to select the bus slave address or
addresses the unit will monitor.
Address Select Mode is entered by pressing the MONITOR-SELECT or
MONITOR-ALL key on the unit’s front panel.
The MONITOR-SELECT key is used to specify a single bus slave
address to monitor. The first time this key is pressed, the unit will display
the current selected slave address. Subsequent key presses will step the
unit through all possible slave addresses.
Pressing the MONITOR-ALL key instructs the unit to collect bus traffic to
all slave addresses.
Pressing any other mode select key terminates Address Select Mode with
the displayed address selected.
Slave address selection may also be set with the Select Address Serial
command. For more information see the Serial Command section in this
guide.
View Status Mode displays bus and TRIG line levels.
View Status Mode is entered by pressing the VIEW-STATUS key on the
unit’s front panel.
In View Status Mode, the unit displays the following line levels (“0" for <
0.5V, “1" for > 2.5V):
A.bV - Bus +5V Line
SCL - Clock
SDA - Data
TRIG - Trace Trigger Input

11
Trace Mode
View Data Mode
Selecting any other operating mode terminates View Status Mode.
In Trace Mode, the unit collects and stores all or selected bus traffic with
PRE or POST Trace triggering.
Trace Mode is entered by pressing the PRE-TRIG or POST-TRIG key on
the unit’s front panel. All previously collected data is erased from the
monitor’s internal storage. Bus traffic to one or all slave devices is
collected in accordance with the current Address Select Mode defined
above.
Pressing the PRE-TRIG key instructs the unit to start collecting bus traffic
upon receiving a trigger signal. Pressing the PRE-TRIG key again, or a
High-to Low transition on the External Trigger line will trigger data
collection. Once started, PRE-TRIG data collection continues until the
monitor’s internal trace buffer is full, or another operating mode is
selected.
Pressing the POST-TRIG key instructs the unit to start collecting bus
traffic immediately. Once started, POST-TRIG data collection continues
until a High-to-Low transition is detected on the External Trigger line, or
another operating mode is selected. Once the trace buffer is full, POST-
TRIG tracing continues collecting data by overwriting the oldest stored
data with the newest.
Selecting any other operating mode terminates Trace Mode.
View Data Mode displays data captured during the last trace of bus
activity. Displayed information includes:
•Number of Messages : Bytes Captured
•Start/Stop Events
•Message Number and Message Byte Number
•Message Destination Slave Address
•Read/Write Requests

12
•Acknowledgments and Negative-Acknowledgments
•Transmitted Data in Hex and ASCII
•View Data supports forward and reverse scrolling of captured data
bytes or messages.
View Data key/actions include:
Key Action
BYTE-UP - Move Backward one byte.
BYTE-DOWN - Move forward one byte.
MSG-UP - Move Backward one message.
MSG-DOWN - Move Forward one message.
BUFFER-UP - Move to Start of buffer.
BUFFER-DOWN - Move to End of buffer.
The monitor uses the following display syntax:
I2C Event Display
Start of Buffer [- START OF TRACE -]
.
Start Read w/Ack [MMMM:START AA RA]
Data w/Ack [MMMM:NNN DD
C
A]
Stop Condition [MMMM:STOP ]
.
End of Buffer [ -- END OF TRACE -- ]
where:
MMMM - Trace Message Number
NNN - Message Byte Number
AA - Device Address
DD - Data in Hexadecimal Format
C - Data in ASCII Format
R/W - Read or Write Request
N/A - Receiver Non/Acknowledgment

13
Remote Mode
Bus Simulation Mode
Selecting any other operating mode terminates View Data Mode.
In Remote Mode, the unit is controlled by a Host computer system via its
serial port. Bus traffic can be collected or uploaded to the Host system for
storage and further analysis.
Remote Mode is entered when the unit receives a Serial Command at its
serial port.
The monitor responds to a variety of Serial Commands including:
•Baud Rate Select
•ASCII or Binary Remote Upload Select
•Slave Address Select
•Dump Trace Buffer
•Remote Trace
•Help
For more information see the Application Program Interface section in this
guide.
Selecting any other operation mode terminates Remote Mode.
In Bus Simulation Mode, the monitor simulates I2C Bus traffic without a
bus connection. Emulation provides a learning and testing platform
without the need for a working bus.
Bus simulation is enabled by pressing the BUFFER-UP key on the unit’s
front panel during the power-up sequence. Once enabled, bus simulation
remains in effect until the next unit power-up cycle.
This manual suits for next models
1
Table of contents