KT33816UG User’s Guide Rev. 3.0 1/2014
Freescale Semiconductor
7
Setup and Using the Hardware
10 Setup and Using the Hardware
To perform the examples included in the software bundle, the following connections and setup must be
performed:
1. Make sure the SPIGen 7.0 or higher program is installed on the PC and it can communicate with the USB/SPI
dongle, as described in that kit’s documentation.
2. Connect the USB/SPI dongle to the MC33816 EVB via a 16 conductor ribbon cable. Make sure to orient the
cable connectors so that pin1 on both the USB/SPI dongle and the MC33816 EVB are connected correctly, pin 1
to pin 1.
3. Connect the USB/SPI dongle to a PC. LED 2 on the USB/SPI dongle and the USB_PWR LED on the MC33816
EVB should both be illuminated. Reprogram the USB/SPI dongle with the MC33816 USB/SPI dongle image.
The image is version 2.3.1, and is available in the Downloads section of the KIT33816AEEVM web page. See
the SPIGen User's Guide for instructions on how to reprogram the USB/SPI dongle.
4. Attach the +12 VDC supply (do not turn on power yet) to the VSUPP input connector on the MC33816 EVB,
making sure to observe the GND and +12 V terminals. The current capability of the +12 V supply should exceed
the maximum total current that the number of simultaneously ON loads will require.
5. Attach loads (Injectors) to the INJ1, INJ2, INJ3, and INJ4 output terminals (and optionally FP1 and FP2), as
desired
6. Turn on the +12 volt supply. Verify that all is working correctly by observing the +3.3 V and +5.0 V LEDs, which
should be illuminated.
10.1
Running an example program
1. Launch the SPIGen program.
2. Load the config file, by clicking on “File” then “Open” and browsing to the KIT33816AESW.spi file located inside
the “
Injector Demo Files
” directory.
3. Go to the “
Single Command
” page in SPIGen and set the RESETB pin high.
4. Go to the “
Micro code
” page under “
MC33816
” and click on the folder icon on the right side of the “
Code Ram
1
” edit box. Browse to the location of the
MC33816_ch1.cip.bin
file, select it, and click on the “
Open
” button.
5. Click on the folder icon on the right side of the “
Code Ram 2
” edit box. Browse to the location of the
MC33816_ch2.cip.bin
file, select it, and click on the “
Open
” button.
6. Continue by selecting the
Data Ram
and
Register
files located inside the same directory as the microcode files.
The file names should be self explanatory. After selecting all the files click “
Download All
” and wait for a
confirmation message. Click on the “
Save Filenames
” button to save the code and register file configuration.
7. Click the “
Enable Flash on CH1 and Ch2
” button to run the code. At this point both channels should be
operational.
8. Go to the “
Single command
” page and set the
DRVEN
pin high. This will enable all of the pre-drivers and the
DC-DC boost converter should also start regulating. Approximately 40 V should be measured on the VBOOST
output pin.
10.2
Running the example batch files
1. Go to the “
Batch commands
” page and select the batch file you want to run. There are 5 choices. “
Start1
”
through “
Start4
” pulse only one injector (1, 2, 3, or 4). The “
Start1-4
” batch command pulses all four injectors in
sequence.
2. Click on the “
Send
Continuously
” button and observe that the four loads attached to the MC33816 EVB board
are turning on and then off in succession.
There are other demo batch examples that can be run and examined for learning how to use the EVB.