beautypg.com

Comtrol API (6508) for the MS-DOS User Manual

Page 8

background image

8

Installating RocketPort/ISA Systems

Installating RocketPort/ISA Systems

from 1 to 16.

c.

If applicable, set each port to the appropriate communications mode
(

RS-232

or

RS-422

) for your peripheral using the slide switch.

If connecting a system with a Quad/Octacable:

a.

Attach the male end of the Quad/Octacable to the controller.

b.

Connect the Quad/Octacable to the peripherals.

If connecting a RocketPort

4J

or

8J

controller:

a.

Connect your peripheral devices to the

RJ

style connector on the

controller.

After installing and configuring the controller, you are ready to attach your
peripherals. Refer to the Hardware Reference Card if you need information
about the pinouts for the connectors.
After connecting the peripherals, you can go to the next subsection to run the
sample application. The sample application shows you how to use the

API

.

Use Section 2 and Appendix A to develop applications.

1.5. Running the Sample Application

The sample program,

TERM

, is a simple terminal emulator program which

uses one RocketPort port at a time.

TERM

uses an

ASCII

terminal connected to

port 0 of the Comtrol interface box with an

RS-232

cable. This allows testing

for both transmit and receive. The terminal should be configured for 9,600
baud, 8 data bits, 1 stop bit, and no parity.
Optionally, if you do not have an available terminal to run the sample
application, you can use the loopback plug that came with your controller.
Note: If your configuration is different, you must change the parameters in the

aaOpen call to match your requirements. Make sure you recompile before
running the sample program.

Use the following procedure to run the sample program:
At the

DOS

prompt, change to the c:

\ROCKET\SAMPLE

directory.

12. Type

TERM

at the

DOS

prompt. The following displays:

Serial Device Number:

Optionally, insert the loopback plug in Port 0 of the interface box.

13. Type 0 and then press . The following displays:

Serial Device Number 0

Hit F10 to Quit

The

TERM

application allows you to type any character on the

PC

keyboard

and have it appear on the terminal, and type any character on the terminal
and have it appear on the

PC

screen.

Optionally, if you are using the loopback plug, any character that you type
on the keyboard appears on the screen.

14. Enter several characters using the

PC

keyboard. You should see these

keystrokes appear on the

ASCII

terminal.

15. Enter several characters using the

ASCII

terminal keyboard. You should

see these keystrokes appear on the

PC

screen.

If the sample fails, see Section 3.
Use Section 2 and Appendix A to develop applications.