Micrel Serial Programmer
(MICUSB)
User Guide
The Micrel Serial Programmer (MICUSB) is a hardware and software solution supporting Micrel’s I C, SWI, and
other serial bus based products. MICUSB operates as a bus master to communicate with slave devices using a
USB-to-serial converter, supporting both generic bus interface mode and hardware-specific profiles for command
and control of Micrel semiconductor products.
Note that MICUSB
−
and supported Micrel ICs
−
require the use of a USB-to-serial programmer for proper
operation. The dongle is NOT provided with the Micrel IC evaluation boards and must be purchased separately.
2
Introduction
Micrel’s MICUSB solution allows any PC with the hardware dongle and software installed to act as a master for a
large number of communication interfaces. This control is used to directly communicate with and control Micrel’s
communication-enabled power management ICs.
Features
Key features of the MICUSB include:
•
•
•
•
•
•
•
•
•
Serial communication with a large number of power-management products
Byte wise serial access to device registers
Compatible with any USB port
Graphical user interface (GUI) support allows graphical editing of programmable settings.
Off-line programming allows you to configure and save register settings for later use
On-line programming allows you to directly modify attached device registers in real time
3.3V or 5V optional on-board pull-ups with 5V-tolerant IO for I C bus products
Additional logic level translator modules for different IO voltage requirements
Protocol support:
−
−
−
−
I C in standard mode (100kbps), fast mode (400kbps), fast mode+ (1Mbps), and high-speed mode
(3.4Mbps)
Micrel’s proprietary single-wire interface (SWI) for communication using a single conductor and operating
up to 6Mbps
MIPI RFFE interface at up to 30Mbps
4-channel PWM output interface
2
2
Micrel Inc. • 2180 Fortune Drive • San Jose, CA 95131 • USA • tel +1 (408) 944-0800 • fax + 1 (408) 474-1000 •
http://www.micrel.com
June 4, 2014
Revision 1.0
Micrel, Inc.
Micrel Serial Programmer (MICUSB)
−
User Guide
Hardware
Communication
2
2
The I C interface is implemented using the standard I C communications protocol at standard, fast, fast mode
plus, and high speed modes, operating exclusively as bus master. Support is provided for the FT232H-based
2
USB to serial interface converters. The IC operates using FTDI MPSSE mode, which allows the I C interface to
be operated at full native speed while minimizing the number of USB communications. Bit-based mode is also
supported for some protocols.
MICUSB I C Dongle
The FT232H-based MICUSB dongle is a 480Mbps USB 2.0 high-speed mode device offering improved
communication speed and capability for advanced interface products. V2 supports fast and nonstandard buses,
such as SWI and system power-management interface (SPMI) with serial data rates up to 30Mbps. The dongle
2
can also be used in high-speed I C up to 3.4Mbps while maintaining backward compatibility with the V1 dongle.
The dongle provides additional GPIO output for up to 8 bits of data arranged as 2 × 4 bit parallel bus with two
serial interfaces or as an 8 independent bit bashed IO. Both 5V (USB bus), and 3.3V (FTDI) internal regulator
power rails are made available (via Pin 5, 0.1” JP1 header).
2
Figure 1. MICUSB I C Dongle and Features
2
I C Configuration
2
For I C systems, it is necessary to configure the FT232H for bidirectional data bus by connecting the data-out to
2
the data-in pin. This is accomplished by setting the slide switch SW1 to the I C position.
Adding I C Bus Pull-Ups
2
For I C systems, additional pull-ups can be enabled for SDA via R11 and SCL via R12 to either the 5V USB bus
input or the 3.3V bus input. To do this, a short should be placed on Pin 2 and Pin 3 on JP1 for 5.0V or between
Pin 3 and Pin 4 on JP1 for 3.3V pull-up. By default JP1, R11, and R12 are not populated and no bus pull-up is
present.
2
2
June 4, 2014
2
Revision 1.0
Micrel, Inc.
Micrel Serial Programmer (MICUSB)
−
User Guide
Figure 2. Top and Bottom Views of the MICUSB Dongle
Starting the GUI and Connecting to an Interface
Start by plugging in the USB-to-serial converter before starting the GUI. When running the GUI for the first time, it
will automatically attempt to find and install the driver for the FTDI dongle. After the installation is complete, the
GUI can be started.
The GUI can be started either by launching the program file via the desktop icon or the start menu item, or by
double clicking on any “.mrg” file. The latter will automatically start up the GUI and load the register description
file, allowing programming to commence as soon as the GUI starts.
At startup the GUI will first check for the “ftd2xx.dll” file, and then attempt to communicate with the USB dongle. If
an error is detected, the GUI will inform the user with a warning dialog illustrated in
Figure 3.
In the event that this
box is display either at start up or when switching profiles, first check the dongle is connected. If the problem
persists then remove and replace the dongle to clear the error.
Figure 3. Dongle “Not Connected” Warning Message
It is possible to ignore the start-up issue to launch the program without a USB converter, but functionality will be
limited. Multiple GUI instances using multiple dongles are supported, but must be started one at a time for correct
operation. At GUI start-up where multiple USB converters are present, the software will automatically and non-
deterministically select the first device it finds.
June 4, 2014
3
Revision 1.0
Micrel, Inc.
Micrel Serial Programmer (MICUSB)
−
User Guide
Quick Start Guide
The Quick Start Guide demonstrates provides a full description of the GUI features and options while detailing
how to install the GUI, get it connected to the serial programming dongle, and configure the GUI to program an
external Micrel IC.
Setting Up
Obtaining and Installing the GUI
The GUI can be downloaded from Micrel’s web site at
www.micrel.com
or alternatively contact your local Micrel
distributor to obtain a copy of the GUI and the serial programmer hardware. The software is specific to the Micrel
product so please visit the product page of interest to get the required software.
Run the “setup.exe” file in the installation folder to start the installation wizard, and follow the on-screen
instructions to set up the GUI software.
Connecting
After installing the GUI, the dongle must be plugged into an available USB port on the host machine. After a short
wait, the drivers should be automatically installed. Please note that this process could take some time and can be
different depending on your operating system.
Starting the GUI
The GUI can be started in one of two ways:
1. Launch the shortcut that appears on the desktop or in the start menu
2. Double-click on any register file (specifically any file name with an “.mrg” extension). The options available in
the start menu are based on profiles that are currently installed on the user machine with “.mrg” files
containing either a full or partial copy of a complete register set-up and can be saved or loaded by the GUI
software. Starting the GUI via the “.mrg” register file will perform the following actions:
−
−
−
Load the GUI
Load the device profile indicated in the file
Update any register settings with the values in the file
Figure 4. Starting the Programming GUI using the Start Menu (left) and using a Register Description File (right)
June 4, 2014
4
Revision 1.0
Micrel, Inc.
Micrel Serial Programmer (MICUSB)
−
User Guide
Profiles
The GUI supports multiple slave device configurations and provides device specific macro communications
options for directly driving target IC’s. When selecting a profile, the “Communication Bus”, “Destination Address”,
“Number of Registers”, “Register Address 0x00”, and the “Register Polling Address” fields are automatically
populated. The “Number of Registers” and “Register Address 0x00” fields are fixed and cannot be edited when
using a device profile.
When a profile is active, hovering the mouse over any of the “Register Address”, “Data”, or “Read Only”
edit/check boxes while in the “Registers” tab will display a dynamic tooltip. The tooltip shows a bit field view
containing register bit field locations and sizes, read/write access, current value in binary, value on power-on-
reset (POR) condition, and bit field name (refer to
Figure 5).
The Generic Operations and Generic Mode section
details a complete description of the supported profiles and how they are used.
Figure 5. Dynamic Register Description “Mouseover”
Test the Interface
Before the interface and target device can be read or written, the GUI enforces a mandatory test of the PC <->
USB Dongle <-> Target Hardware. To do this just press the “Test” button in the “Target Config.” tab. Upon
successful completion, the “Read” and “Write” buttons inside the “Registers” tab will be enabled (refer to
Figure
6).
June 4, 2014
5
Revision 1.0