0% found this document useful (0 votes)
93 views5 pages

SPI-USB-Users-manual EN

The document provides instructions for using a SPI to USB converter device. It describes the device, SPI connector pinout, SPI mode setting, connecting to a computer, and logging received serial data. Figures and tables show the converter components, example connections, and serial port settings.

Uploaded by

savantzpcdma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views5 pages

SPI-USB-Users-manual EN

The document provides instructions for using a SPI to USB converter device. It describes the device, SPI connector pinout, SPI mode setting, connecting to a computer, and logging received serial data. Figures and tables show the converter components, example connections, and serial port settings.

Uploaded by

savantzpcdma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

SPI-USB : User manual

Table of Contents
1. Description of the device ................................................................................................................. 1
2. SPI connector pinout of the converter .............................................................................................. 2
3. SPI mode setting ............................................................................................................................... 3
4. Connecting the convertor to the host computer ............................................................................... 3
4.1. Logging the data from SPI-USB ........................................................................................... 4

Autor(s): Miklós Reichel

Table 1. Document revisions

Revision Date Description Author


0.1 2014-03-24 First "edition" MR
0.2 2014-04-24 Added picture of example connection MR

Figure 1. SPI-USB - inside the box picture

1. Description of the device


The SPI-USB device is a data converter which can translate SPI data communication to a
standard USB virtual port interface. The SPI abbreviation stands for Serial Peripheral Interface,
which is a simple synchronous serial communication interface. More informations about this
interface can be obtained from the following Wikipedia page (https://en.wikipedia.org/wiki/
Serial_Peripheral_Interface_Bus).

1
SPI-USB : User manual

2. SPI connector pinout of the converter


Figure 2. SPI-USB - SPI connector pinout

The orientation of the connector unfortunately is not noted on the circuit board. Please note that the
first pin of the connector is on the side closer to the "TOP" marking on the board.

The converter can be connected to electronics both with 3.3V and 5V supply voltages. There are
different SPI connector pinouts used in our devices for the 3.3V and 5V connections, therefore we
supply an universal connection cable with the SPI-USB converter. The user have to use the right
connector according the target device.

Figure 3. SPI-USB - universal connection cable

Figure 4. SPI-USB - example of using the cable with 5V target

2
SPI-USB : User manual

Figure 5. SPI-USB - example of how to connect to PKIFSF target

3. SPI mode setting


The SPI interface of the converter can be set up according to the following table (0 = without jumper,
1 = jumper is set). Of course the target device have to be set up accordingly to this setting.

Table 2. SPI mode setting


SPI Mode CPOL (PTA1) CPHA (PTA0)
0 0 0
1 0 1
2 1 0
3 1 1

Table 3. SPI settings for known devices


Device CPOL (PTA1) CPHA (PTA0)
IFSF protocol converters 0 0
Every other Beta Control device 0 1

4. Connecting the convertor to the host


computer
The converter is using as USB interface the FT232RL type integrated circuit from FTDI (http://
www.ftdichips.com). This interface appears as a virtual serial port on the host computer OS.

The up-to-date drivers for this interface can be obtained from the following page: http://
www.ftdichip.com/Drivers/VCP.htm. Please install the drivers accordingly to your operating system.
If you have the right drivers, then in the Windows OS in the Device Manager the SPI-USB device

3
SPI-USB : User manual

appears after connecting to the USB port of the computer as "USB Serial Port (COM12)", in the
section Ports (COM and LPT).

The data received via this virtual serial port can be displayed by any serial terminal emulator software,
for example in Windows OS XP can be used the Hyperterminal. Unfortunately, in newer versions of
Windows there is no terminal emulator software. We have good experiences with the TeraTerm pro
terminal emulator (free) software, which can be obtained from the following address: http://http://
en.sourceforge.jp/projects/ttssh2/releases/.

To obtain the data from the serial port it has to be set in a following way:

Figure 6. SPI-USB - serial port settings on the host computer

The picture is from the teraterm serial port settings dialog, which can be accessed via the menu
Setup→Serial port…

Please note, that the serial port name you have to set accordingly to your serial port number.

4.1. Logging the data from SPI-USB


With the tera term pro terminal emulator you can log the data received via the serial port. The logging
dialog can be accessed via menu File→Log… The settings for the data logging are the followings:

Figure 7. SPI-USB - teraterm logging settings

4
SPI-USB : User manual

Please note the options "Append" - which means that the new data are added to the end of the log file,
"Timestamp" - which means that to the informations from the serial port are in the log file added time
markers.

You might also like