| |
This page contains a list of links to 3rd party technical resources on USB, RS232 and hardware/software related matters which may be of interest to the FTDI community. FTDI is not responsible for the content of these sites. | |
| |
Visit the USB Implementers Forum (USB I.F.) - the official web site of the USB I.F.. Here you will find the latest USB specification, together with USB device class specifications, articles, events and trade show information. There is a useful discussion forum on the USB I.F. website. Developers with technical questions on designing or implementing USB should visit the USB Developers Web Board. | |
| |
Jan Axelson is a respected author of magazine articles and technical books including USB Complete and Serial Port Complete. Visit her LakeView Research web site for in-depth technical information explained in a clear and logical fashion. Jan is a frequent and valuable contributor to the USB Developers Web Board. Vincent Le Mieux has authored a book in French entitled L'USB Pour Tous containing several sample projects including example code for VB.NET and even Excel. PC Interfacing with USB by Peter Bates is part of the popular series of PC hardware books available from Babani Publishing. This provides a complete example of adding a USB interface to a project including programming and PCB design. 'Steuern und Messen mit USB - Hard und Software- entwicklung mit dem FT232, FT245 und FT2232' (Control and measurement with the FT232, FT245 and FT2232 USB-Controllers) by Bernhard Redemann is a book about basic input and output for the FTDI range of USB controllers (serial UART and parallel FIFO) and also includes a project using the MPSSE of the FT2232 to emulate I2C and a web project. The use of VCP and D2XX drivers is also described. Last but not least some USB theoretical basics and FAQs are included. The book has around 200 pages and is available in Germany at Segor electronics (www.segor.de). | |
| |
Windows References
Mac OS X References
| |
| |
TI have a JTAG learning tool and accompanying abstract available on their website which is available for free download. Click here to go to the TI JTAG Scan Educator page. | |
| |
Amontec have designed a USB-JTAG interface based on the FT2232L device. The JTAGkey has application areas including:
To learn more, visit https://www.tincantools.com/product/flyswatter2/. | |
| |
The BeyondLogic website contains a wealth of information and articles dealing with USB and legacy interfaces, as well as sections dealing with Embedded Linux, useful links to Device Drivers and more. Craig is also the author of a 30 page document 'USB in a Nutshell', a concise introduction and overview of the USB specification. | |
| |
Developing RS232/USB instruments and need to complete the package with some well thought out control software? Visit the TAL Technologiesand discover their RS232 data acquisition software, serial and TCP/IP communications software, barcode software, bar code ActiveX, and bar-code generating DLLs. | |
| |
Sealevel Systems, founded in 1986, provides a variety of serial communications and digital I/O solutions. Their USB product line includes single and multi-port asynchronous serial devices that support RS-232, RS-422 and RS-485, and digital I/O devices that feature optically isolated inputs, Reed and Form C relay outputs, and TTL interfaces. Sealevel also provides related software, technical support, long-term availability, and a lifetime warranty. They have become known for the ability to customize products for various unique applications and their commitment to exceptional quality and exemplary support has driven Sealevel Systems to a leading position in their industry. Their URL is https://www.sealevel.com. | |
| |
Excel Macro Examples & Free Downloads One of the best ways to learn Excel VBA is by exploring code samples & examples. That is why, we publish detailed examples, downloadable workbooks & full-length tutorials from time to time. In this page, you can find several Excel VBA examples. Click on any link to see the. The two macro-enabled Excel files linked here give examples of applying modCOMM and VISA. (The two versions run in Windows 7 (64 bit) and XP.). Communication through the serial port, using modCOMM. These files illustrate examples of using Visual Basic for Applications for instrument communication.
This topic describes how to use
My.Computer.Ports
to receive strings from the computer's serial ports in Visual Basic.![Excel Serial Communication Example Videos Excel Serial Communication Example Videos](/uploads/1/2/6/3/126348463/612527778.jpg)
To receive strings from the serial port
- Initialize the return string.
- Determine which serial port should provide the strings. This example assumes it is
COM1
. - Use the
My.Computer.Ports.OpenSerialPort
method to obtain a reference to the port. For more information, see OpenSerialPort.TheTry...Catch...Finally
block allows the application to close the serial port even if it generates an exception. All code that manipulates the serial port should appear within this block. - Create a
Do
loop for reading lines of text until no more lines are available. - Use the ReadLine() method to read the next available line of text from the serial port.
- Use an
If
statement to determine if the ReadLine() method returnsNothing
(which means no more text is available). If it does returnNothing
, exit theDo
loop. - Add an
Else
block to theIf
statement to handle the case if the string is actually read. The block appends the string from the serial port to the return string. - Return the string.
Example
This code example is also available as an IntelliSense code snippet. In the code snippet picker, it is located in Connectivity and Networking. For more information, see Code Snippets.
Compiling the Code
This example assumes the computer is using
COM1
.Robust Programming
This example assumes the computer is using
COM1
. For more flexibility, the code should allow the user to select the desired serial port from a list of available ports. For more information, see How to: Show Available Serial Ports.This example uses a
Try...Catch...Finally
block to make sure that the application closes the port and to catch any timeout exceptions. For more information, see Try...Catch...Finally Statement.