Acrosser AR-B9622 User Manual
Page 56
AR-B9622 User’s Guide
9-2
(5) Basic Language Example
a.) Initial 86C450 UART
10
OPEN “COM1:9600,m,8,1”AS #1 LEN=1
20
REM Reset DTR
30
OUT &H3FC, (INP(%H3FC) AND &HFA)
40 RETURN
b.) Send out one character to COM1
10
REM Enable transmitter by setting DTR ON
20
OUT &H3FC, (INP(&H3FC) OR &H01)
30
REM Send out one character
40
PRINT #1, OUTCHR$
50
REM Check transmitter holding register and shift register
60
IF ((INP(&H3FD) AND &H60) >0) THEN 60
70
REM Disable transmitter by resetting DTR
80
OUT &H3FC, (INP(&H3FC) AND &HEF)
90 RETURN
c.) Receive one character from COM1
10
REM Check COM1: receiver buffer
20
IF LOF(1)<256 THEN 70
30
REM Receiver buffer is empty
40 INPSTR$”
50 RETURN
60
REM Read one character from COM1: buffer
70 INPSTR$=INPUT$(1,#1)
80 RETURN
- AR-N6000 (28 pages)
- AND-D525N2 (38 pages)
- AND-D525N2 (30 pages)
- ANR-IB75N1/A/B (76 pages)
- ANR-IB75N1/A/B (60 pages)
- ANR-IH61N1/A/B (57 pages)
- ANR-IH61N1/A/B (73 pages)
- AR-R6000 (32 pages)
- AR-R6000 (22 pages)
- AR-ES0631ET (11 pages)
- AR-ES0631ET (15 pages)
- AR-R5800 (58 pages)
- AR-R5800A (40 pages)
- AR-R5800 (40 pages)
- AR-R5800 (58 pages)
- AR-R5800 (40 pages)
- AR-R5800 (58 pages)
- AR-N8601 (31 pages)
- AR-N8601 (10 pages)
- AR-R5700 (13 pages)
- AR-R6006 (35 pages)
- AR-R6006 (24 pages)
- AR-R6006 (35 pages)
- AR-R6006 (24 pages)
- AR-R8601E16 (8 pages)
- AR-N8601FL (37 pages)
- AR-N5205A (13 pages)
- AR-R5205FL (12 pages)
- AR-R5500 (10 pages)
- AR-B1550 (37 pages)
- AR-B1551 (34 pages)
- AR-B1550 (32 pages)
- AR-B1550 (32 pages)
- AR-B1550 (32 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1551 (37 pages)
- AR-B1893 (35 pages)
- AR-B1893 (35 pages)
- AR-B1841 (36 pages)
- AR-B104D (27 pages)
- AR-B104D (7 pages)