English
Language : 

SDM-USB-QS-S Datasheet, PDF (6/7 Pages) List of Unclassifed Manufacturers – SDM-USB-QS-S USB MODULE DATA GUIDE
TYPICAL APPLICATIONS (CONT.)
Figure 11 below shows the QS module connected to a microprocessor. This is
the design used in the QS Master Development Kit and the documentation for
the kit describes the connections and software.
220
1
RA2/AN2
220
2
RA3/AN3
220
3
RA4/AN4
4
MCLR/VPP
5
GND
6
RB0/INT
7
RB1
8
RB2/RX
9
RB3
RA1/AN1 18
17
16
RA7
15
RA6
14
VCC
VCC
13
RB7
12
RB6
11
RB5/TX
10
RB4
PIC16F88
VCC
10K
SW-PB
200K
USB Type B
Connector
GND
DAT+
DAT -
5V
4
3
2
1
220
220
VCC
SDM-USB-QS-S
1 USBDP
RI 16
2 USBDM
DCD 15
3 GND
DSR 14
4 VCC
DATA_IN 13
5 SUSP_IND DATA_OUT 12
6 RX_IND
RTS 11
7 TX_IND
CTS 10
8 485_TX
DTR 9
Figure 11: Interface With A Microprocessor
VCC
220
220
SOFTWARE CONSIDERATIONS
The PC needs a set of drivers that tell it how to communicate with the QS module.
There are two types available free from the Linx website. The first are Virtual COM
Port drivers. These drivers make the QS appear as an extra COM port on the host
PC. This allows the application to use standard writes and reads to a serial port, and
the drivers will redirect data to the USB device.
The second set are the Direct Drivers. These drivers support a series of custom
functions that allow more direct control of the QS module. These functions are
described in Application Note AN-00200: SDM-USB-QS-S Programmer’s Guide,
where examples are given in both Visual Basic and C. The Programmer’s Guide can
be downloaded from the Application Notes page in the Support section of the Linx
website at www.linxtechnologies.com. Sample software is available on the Software
page in the Support section.
In addition to the Programmer’s Guide, the QS Master Development System (MDEV-
USB-QS) includes example software and sample system source code. This source
code provides the driver function declarations, examples of how to use the functions
in a program, and other code that may be of use.
SERIAL NUMBER CONSIDERATIONS
The VID and PID are used by Windows to determine what devices are attached
to the bus and which drivers to load in order to communicate with each device.
A unique serial number is used to distinguish between different devices of the
same type so that the operating system can be sure that it is communicating with
the correct one. Windows will view every different combination of VID, PID, and
serial number as a new device and will start the “Found New Hardware” wizard
for each one. This is an issue in a mass production environment, so the QS
modules are shipped with the “Enable Serial Number” option disabled in the
EEPROM. This prevents the serial number from being used during
ennumeration.
With the serial number disabled, Windows will track each device by connection
and assign a USB port to a particular device. If the device is moved to another
port, it will need to be reinstalled. The problem that arises is that the device will
be installed on the same PC multiple times, once for each USB port into which it
has been plugged.
It is recommended to set the “Enable Serial Number” option and to use a unique
serial number as a part of the final testing procedure of your product. The QS
EEPROM Programmer can be downloaded from the Linx website and the
EEPROM programming functions can be found in Application Note AN-00200.
These can be used as a part of an automated test program at the end of the
production line to program custom descriptors and a unique serial number into
the product.
Avoid using the same serial number for multiple devices, as it can cause a
conflict in the operating system. Windows XP has a particular problem with this
and may crash if it sees two of the same type of device with the same serial
number on the same bus.
HELPFUL APPLICATION NOTES FROM LINX
It is not the intention of this manual to address in depth many of the issues that
should be considered to ensure that the modules function correctly and deliver
the maximum possible performance. As you proceed with your design, you may
wish to obtain the following application notes. They are available on line at
www.linxtechnologies.com or by contacting the Linx literature department.
NOTE
AN-00200
AN-00201
APPLICATION NOTE TITLE
SDM-USB-QS-S Programmer’s Guide
Installing the SDM-USB-QS-S Drivers
Page 10
Page 11