
USB to SPI Interface Evaluation Board, Rev. 1.0
Freescale Semiconductor
7
Modifying and Adding to the Software
To modify and recompile this software, one must download a copy of the CodeWarrior software development suite (IDE) from
Freescale. The link to this software is:
http://www.freescale.com/CodeWarrior
The USB to SPI software transfers 8 bytes of data from the SPIGen.exe program, via USB, to the JW32 MCU. The definitions
of the 8 bytes can be found in the main.c program, and the actual transfer and decoding is done in the USB_driver.c program.
Comments are provided throughout the code to explain the operation of the individual routines.
Once the code is compiled (without errors), the CodeWarrior IDE provides a means to download the binaries to the P&E Cyclone
Pro programmer, via the MON08 port to re-Flash the JW32. The documentation for this process is contained in the CodeWarrior
suite of tools and the P&E documentation.
global.h
Some useful defines for debug
jw32_registers.h
More register definitions
main_asm.h
Header file for main_asm.c
MCHC908JW32FC.H
Header file for MCHC908JW32FC.C
motdef.h
General purpose definitions from the old days
pll.h
Header file for pll.c
spi.h
Header file for spi.c
tb.h
Header file for tb.c Timebase
timer.h
Header file for timer.c timer initialization
usb.h
Header file for USB_driver.
usb_vars.h
Header for variables used in USB_Driver.c
utilities.h
Header for utilities.
ansii.lib
c library for ansii c functions
Start08.c
Generated by CodeWarrior to define initialization code
Project.prm
Defines interrupt and memory map
Project.map
Map file generated by compile process
Burner.bbl
Some defines used in the programming of the JW32