3
dc2294af
DEMO MANUAL DC2294A
HELLO_WORLD SKETCH
The hello_world sketch demonstrates how to perform
basic PMBus commands. Upload the sketch and then
open the Serial Monitor (Refer to Page 2, Steps 6 and 7).
The main menu (Figure 2) demonstrates enabling/disabling
Packet Error Checking (PEC) communication, bus prob-
ing, and resetting the device. The Basic Commands menu
(Figure 3) demonstrates reading telemetry data (Figure4),
altering voltage outputs, sequencing, and margining.
To operate the menu, enter a number on the command
line at the top of the window and press return. Stretching
the window vertically to see the results will help.
The hello_world sketch can be used as a template for new
sketches. Any standard PSM demo board may be used.
VIEWING PMBUS WITH THE BEAGLE
To observe PMBus traffic on the I2C bus, connect a Beagle
to the DC2294A as shown in Figure 1 and follow these steps:
1. Download the latest TotalPhase Data Center Software
and USB drivers from http://www.totalphase.com/
downloads/ and install them using the instructions
supplied by Total Phase. If you do not want to create
a Total Phase login and account, you can use an older
version of Data Center and USB driver.
2. Connect the PC to the Beagle with the supplied
USBcable.
DEMO SKETCH – DC1962 (POWERSTICK)
3. Start Data Center, Connect Data Center to the Beagle
using the toolbar and start data collection with the
toolbar (refer to Beagle documentation).
4. Load the hello_world sketch and press 1 to get the
secondary menu, followed by a 1 to measure voltage
telemetry.
5. Look at the results in the Data Center menu.
6. Compare the PMBus traffic displayed in Data Center
with the code in the hello_world sketch and correlate
the observed behavior with the PMBus commands in
the code.
SUMMARY
The DC2026 Linduino, and DC2294A Linduino Shield, when
combined with a DC1962 demo board is an excellent way to
learn PMBus and prototype firmware in a safe environment
where nothing can be damaged. The PMBus library may
be ported into a commercial platform, or in some cases it
can be reused “as is” using the same ATmega processor
found on the Linduino. The software is fully compatible
with Arduino One and Arduino Mega 2560. The software
has also been used on a Galileo Gen 2 (see factory).
Linear Technology also has drivers for Linux (usermode)
and various RTOS application examples (see factory).
Have fun prototyping and if you need help, just call your
local Linear Technology Field Application Engineer. If
you make something cool and want to contribute to the
Linduino Sketchbook, also give us a call.