NXP Semiconductors KITUSBSPIEVME User Manual Download Page 6

USB to SPI Interface Evaluation Board, Rev. 1.0

6

Freescale Semiconductor

The USB signal lines are buffered by 27 ohm resistors (R1 and R2) and the D+ line is pulled up to +3.3 volts via a 1.5K resistor 
(R3) as per the USB specification. Ferrite inductor filters are provided on the +5 volt and Ground lines of the USB connector to 
prevent EM radiation.

A Reset button and bypass capacitor is provided on board to manually reset the JW32, if necessary.

Software Description

There are three main components that comprise the Evaluation Board software system. 

1) The firmware that runs on the JW32 is a compiled C and assembly language program, that is programmed into flash RAM.

2) The user interface software (GUI) that sends USB messages to the Evaluation Board, and runs under Windows 2000 or 
Windows XP, is called the “SPIGen” program, which is written in Visual Basic. 

3) The third piece of software is a “device driver” called 

spi_usbio.sys

 and it interfaces the SPIGen program I/O through the 

Windows operating system to the USB port on the user’s PC. The device driver interfaces to the Visual Basic program, through 
a special “wrapper” library called 

usbiocom.dll

 that translates the Visual Basic COM interface, into the lower level calls in the 

device driver. These two pieces of software were licensed from Thesycon, a software development company in Germany.

All of the source code that is available is provided on the Installation CD in a directory called “source”.

For an explanation of the SPIGen program, the user is referred to the documentation that comes with the disk for that program.

JW32 Software Code

The software for the JW32 was written in C and HC08 assembly language using the CodeWarrior version 5.0 software 
development environment. 

Below is a listing of the source code modules and their descriptions:

The following files are include (header) files to support the above:

main.c 

Beginning module, contains service loop.

main.asm

Generated by CodeWarrior, used for additions to main.c written in assembly language. 

MCHC908JW32FC.C 

Defines the 16 and 8 Bit Registers

constant.c

Random data to fill unused flash RAM

isr.c

Interrupt service routine for the timer

pll.asm

Sets up the PLL using 4.00 MHz reference frequency

spi.c

SPI read and write handlers and initialization routine 

tb.c

Initializes the time base for the JW32

timer.c

Initializes the timer and PWM output (not used)

USB_descriptor.asm 

Defines the USB information such as VID, PID, etc.

USB_driver.c

Handles USB setup, decode and interrupt service

utilities.c

Misc. routines for delay and debug

application.h

Defines some outputs and some useful macros

derivative.h

Generated by CodeWarrior to define the MCU used

derivative.inc

Generated by CodeWarrior for COP

Summary of Contents for KITUSBSPIEVME

Page 1: ...SBSPIEVME Evaluation Board is a working hardware software example that allows a user to become familiar with the MCHC908JW32FC by means of an actual useful application a USB to SPI and USB to parallel...

Page 2: ...is included on the accompanying CD LED Display The LED s are provided as a visual output device for debugging and test purposes As configured from the factory LED 2 indicates when power is applied and...

Page 3: ...pin outs for the SPI signals and Control and Data signals by using shorting jumper plugs or wire jumpers Consult the specific Freescale Evaluation Board documentation for the correct signal pin defin...

Page 4: ...d JP1 and JP2 are provided to allow the selection of power and clock source for the Evaluation Board JP1 selects the source of the VCC power 5 volts in accordance with the following table Pin Number N...

Page 5: ...acitors C2 and C3 27 pf and resistor R4 10M provide the operating clock source for the JW32 The 4 000 MHz clock is used as a reference for the PLL in the JW32 The internal bus frequency is 8 MHz and t...

Page 6: ...ces of software were licensed from Thesycon a software development company in Germany All of the source code that is available is provided on the Installation CD in a directory called source For an ex...

Page 7: ...ries 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...

Page 8: ...y of its products for any particular purpose nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and al...

Reviews: