6 is anyone out there, 7 programming the micro488/p – Measurement Computing Micro488/p User Manual
Page 15

Getting Started
09-26-02
2-5
2.6 Is Anyone Out There?
In order to properly operate the Micro488/p, the DTR and DSR lines on the COM port
must be initialized first. Usually this can be accomplished by closing and then opening
the serial port. Appendix C includes a
Sample Initialization Program.
Once the DTR and DSR ines have been initialized, the next step is to initialize the baud
rate to be used with the Micro488/p. This is done by sending the Micro488/p five
carriage returns, separated by a 0.1 second delay. Now send the Micro488/p the
following command:
"I" <CR>.
The Micro488/p should respond with the prompt ">" character. Now the IEEE488 bus
is initialized, and the Micro488/p ready for operation.
2.7 Programming the Micro488/p
The next step involves writing a simple dumb terminal program to communicate with
the Micro488/p. The dumb terminal program is written in QuickBASIC for any IBM
PC compatable computer, and allows simple communication with IEEE 488 devices
connected to the Micro488/p.
The first task is to open the serial port to which the Micro488/p is connected. If the
Micro488/p is connected to serial port 1, then the following line will open that serial
port with the following parameters:
Baud Rate - 19200
Parity - NONE
Data Bits - 8
Stop Bits - 2
OPEN "COM1:19200,N,8,2,cs,ds" FOR RANDOM AS #1
Next, wait a moment for the Micro488/p's power supply to stabilize.
t = TIMER
DO WHILE t + .1 > TIMER
LOOP