资料介绍
The RS-232 serial interface is no longer a common port
found on a personal computer (PC). This is a problem
because many embedded applications use the RS-232
interface to communicate with external systems, such as
PCs. A solution is to migrate the application to the
Universal Serial Bus (USB) interface. There are many
different ways to convert an RS-232 interface to USB,
each requiring different levels of expertise. The simplest
method is to emulate RS-232 over the USB bus. An
advantage of this method is the PC application will see
the USB connection as an RS-232 COM connection and
thus, require no changes to the existing software.
Another advantage is this method utilizes a Windows
®
driver included with Microsoft
®
Windows
®
98SE and
later versions, making driver development unnecessary. AN956
Migrating Applications to USB from RS-232 UART with
Minimal Impact on PC Software
Author: Rawin Rojvanit OVERVIEW
Microchip Technology Inc.
A Windows application sees a physical RS-232
connection as a COM port and communicates with the
INTRODUCTION attached device using the CreateFile, ReadFile, and
WriteFile functions. The UART module on the PICmicro
The RS-232 serial interface is no longer a common p