beautypg.com

Measurement Computing Micro488/p User Manual

Page 16

background image

2-6

09-26-02

Getting Started

Now that the Micro488/p is powered on, send it five carriage returns for the buad rate
detection circuitry to set the internal baud rate. Place a short time delay between the
characters to ensure that the proper baud rate will be detected.

FOR i = 1 TO 5
PRINT #1, CHR$(13);
t = TIMER
DO WHILE t + .2 > TIMER
LOOP
NEXT i

Next, initialize the Micro488/p with the following command:

PRINT #1, "I"

Now, set up the Micro488/p with the following parameters:

Serial echo - OFF
Hardware Handshake - ON
XON/XOFF handshaking - OFF
Serial terminator - CARRIAGE RETURN
IEEE bus terminator - CARRIAGE RETURN, LINE FEED

PRINT #1, "EC;0"
PRINT #1, "H;1"
PRINT #1, "X;0"
PRINT #1, "TC;2"
PRINT #1, "TB;4"

After a short delay for command processing, input any garbage
characters that may be in the PC's serial input buffer.

t = TIMER
DO WHILE t + .5 > TIMER
LOOP

a$ = INPUT$(LOC(1), #1)