beautypg.com

Sample programs, Appendix com-2(pc)f 40, Figure 6.1. floppy disk files – Compaq Contec COM-2(PC)F User Manual

Page 49

background image

Appendix

COM-2(PC)F

40

Sample Programs

The programs are written in GW-BASIC and Microsoft C.
The sample programs transmit data entered from the keyboard and
display received data on the screen. Table 6.1. lists the
communications data format.

The sample programs listed in Figure 6.1. are included on the
floppy disk.

Table 6.1. Data Format

Parameter

Data Format

Data bits

8 bits

Stop bits

2 bits

Parity

None

BAS

MSC

COM2V

(1) H103HD01.BAS Data transmission (Enhanced mode)

(2) H103HD02.BAS Data reception (Enhanced mode)

(3) H103HD03.BAS Data transmission (COM1 mode)

(4) H103HD04.BAS Data reception (COM1 mode)

(5) H103HD05.BAS Data transmission and reception (Enhanced mode)

(6) H103HD06.BAS Data transmission and reception (COM1, COM2 mode)

(7) H103HD07.BAS Interrupt-driven data transmission and reception

H103HD.ASM
H103HD.BIN

(8) H103HD08.BAS Half-duplex data transmission (Enhanced mode)

(9) H103HD09.BAS Half-duplex data reception (Enhanced mode)

(10)COM21_1.C

Data transmission and reception (COM1, COM2 mode)

COM21_1.EXE

(11)COM34_1.C

Data transmission and reception (COM3, COM4 mode)

COM34_1.EXE

SETCOM.EXE (Address setting file for Compatible mode)

Figure 6.1. Floppy Disk Files

This manual is related to the following products: