ABSTRACT: TERMINAL.CPP Terminal is a sample loopback terminal program for the UART based serial communications card. It is set up to use COM1. Note the use of the file functions CreateFile(), WriteFile() and ReadFile() to access the port. When a key is pressed, it's value is written to COM1 as it would be to a file. The port is constantly monitored in the same fashion, read as if it were a file. The program exits when the Esc key is hit. Below is a list of the connections necessary for the loopback cable. DB-9 RS-232: 2 to 3 (Rx to Tx) DB-9 RS-422: 1 to 4 (Rx+ to Tx+) 2 to 3 (Rx- to Tx-) DB-25 RS-232: 2 to 3 (Rx to Tx) DB-25 RS-422: 12 to 24 (Rx+ to Tx+) 13 to 25 (Rx- to Tx-) DB-25 RS 530: 2 to 3 (Rx+ to Tx+) 14 to 16 (Rx- to Tx-)