
S12 MagniV Mixed-Signal MCUs
1. Open CodeWarrior Development Studio.
2. Unzip the content of the file \files\training\
LabExamples.zip located on the training 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 1.
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. Follow the on-screen instructions to install
the necessary USB drivers.
8. Connect a serial cable to the COM
connector at J32. Open a terminal program
and configure for 57600, 8, none, 1, none.
9. Move the ON/OFF Switch 3 to the
ON position.
10. While in CodeWarrior’s window press
“F5”; this action will attempt to establish a
connection between the evaluation board
and the PC.
11. Follow the instructions presented to connect
to the embedded debugger and download
the code recently compiled.
12. While in the debugger screen “True-Time
Simulator & Real-Time Debugger”, press
“F5” to start the code recently downloaded.
13. The relay will click on base time defined by
the potentiometer.
14. Rotate the potentiometer and notice that the
relay switching time will change according to
the potentiometer.
15. Notice that the LEDs D5, D6, D7 and D8 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. Vary the supply voltage below and 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.