
Quick Start Guide
6
1. Open CodeWarrior Development Studio.
2. Unzip the content of the EVB Source Code file
(evb_demo_application_3_0.zip) located on
the additional resources tab of the DVD.
3. Drag the unzipped file “evb demo application.
mcp” into CodeWarrior’s Window (the
file is located below directory “evb demo
application”). This action should open
CodeWarriors’ project explorer.
4. Press “F7” key to build the project.
5. Verify the option jumpers are set in default
positions. Refer to Figure 2.
6. Connect the included A/B USB cable between
an open USB port on the host PC and the
USB connector on the target board.
7. Install PE V11.1.1 OSBDM drivers (included
in the DVD). This allows using the OSBDM as
a USB to serial bridge and connect the board
to any serial terminal. Note: Virtual serial port
cannot be used with this driver. However,
serial terminals can connect through a COM
serial port.
8. Connect the power adaptor to the barrel plug
to power the device.
9. While in CodeWarrior’s window press “F5”; this
action will attempt to establish a connection
between the evaluation board and the PC.
10. Follow the instructions presented to connect
to the embedded debugger and download the
code recently compiled.
11. While in the debugger screen “True-Time
Simulator & Real-Time Debugger”, press “F5”
to start the code recently downloaded.
12. The relay will click on base time defined by
the potentiometer R51.
13. Open a terminal program and configure
for 19200, 8, none, 1, none. Open a serial
connection to OSBDM/OSJTAG- CDC
Serial Port.
14. Rotate the potentiometer and notice that the
relay switching time will change according to
the potentiometer.
15. Notice that the LEDs D13, D14, D15 and D16
will flash according to the relay changes.
16. Notice that the terminal program is reporting
the status of the system.
17. Program is reporting the status of the
VSENSE pin with an 8-bit resolution,
the current relay timer configuration on
milliseconds and the battery voltage status.
18. Adjust the supply voltage to be below or over the
thresholds and check on the terminal program
and the battery voltage status during this
operation. (The example program is using the
VLBI2 and VHBI1 thresholds, these thresholds
are defined on the 9S12VR RM).
19. While in the Debugger window, you can halt the
controller by pressing “F6” and add break points
in the code by right clicking on it and selecting
the option “Set Break Point”.
20. Pres “F1” while in the Debugger window or in
CodeWarrior Development Studio to open the
included help.