beautypg.com

Figure 6.10. flowchart of sample program 8 – Compaq Contec COM-2(PC)F User Manual

Page 61

background image

Appendix

COM-2(PC)F

52

Sample Program 8
[Half-duplex data transmission (Enhanced mode)]

The sample program 8 enables initialization on ACE, data
transmission in the transmission mode, and waits for the receive
data in the receive mode.

1

Note:

Wait Time =

(sec)

Data Length

Baud Rate

No

Yes

1

Line Status

D6 bit = 1

No

Transmit end

Yes

Modem Control

RTS to High

Set Baud Rate

Generator

1

1

Set Interrupt Enable

Register

Set Transmission Format

(Line Control Register)

WAIT Time

(After Initialization)

Set Modem

Control Output

Read

Line Status Register

Read

Interrupt ID Register

Read

Modem Status register

Modem Control

RTS to LOW

Read

Received Data Register

Data Transmission

5 bytes Tramsmit

Line Status

D0 bit = 1

Display Receiver Buffer's

Data 0n CRT

5 bytes Receive

START

END

No

Yes

No

Yes

No

Yes

Figure 6.10. Flowchart of Sample Program 8

This manual is related to the following products: