![]() ![]() On a PC, serial ports appear as numbered COM ports that applications can read and write to. Interface chips such as Maxim’s MAX232 converts between 5V logic and RS-232 voltages. A typical RS-232 cable can be up to 100 ft long. RS-232 is a hardware interface that transmits 0s and 1s as positive and negative voltages. The computers must agree on a bit rate for transferring data, and a Start bit synchronizes the clocks before each transmitted byte. Instead, the computers at both ends of the cable each provide a clock. ![]() Unlike some serial interfaces, the standard RS-232 serial interface on PCs doesn’t include a clock line. ![]() Many interfaces have up to six additional lines to carry status and control information. #Visual basic serial port example plus#The interface can have as few as three lines: one to carry data in each direction plus a ground line. NET to access serial ports, including USB virtual serial ports.Ī serial port is a computer interface that transmits bits one at a time. #Visual basic serial port example Pc#This article focuses on the PC side of serial-port communications. To add a serial port, attach a USB/serial adapter to a USB port. Or a PC can send commands to control robots or other devices. For example, a microcontroller can send sensor data for a PC to analyze and display. Serial ports can transfer data for just about any purpose. If you have a microcontroller circuit that needs to talk to a PC, a serial port can do the job. This article originally appeared in the April 2008 Nuts & Volts.Īlso see Access Serial Ports with PICBASIC. NET Access Serial Ports with Visual Basic. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |