Download Print this page

Sharp MZ-8BI03 Service Manual page 13

Interface card

Advertisement

• Program by BASIC language
.,
Now, let us draw up
th~
program described in the above·mentioned flow chart, using tBASIC languages. The
program list is shown later.
In the BASIC program, the routine to control the interface card is composed of machine language. The machine
language data are w.ritten into the memory by POKE statement and the routine is called by USR statement. The
routine is made by programming statement Nos. 1000 through 1990.
..
.
Statement Nos. 1080 -- 1160 ........... Parameters
Clock rate
Stop bit
Parity
Odd/even of parity
Transmit/receive character
Auto enable
:·X
16
2 bits
Present
Even
8 bits
Set
Statement Nos. 1180"" 1370 .•......... Mode setting routine.
Statement Nos. 1550 -- 1610 ........... Channel A input routine.
Input data are stored in Address CHAR.
Error flags are stored in Address INER@.
Statement Nos. 1630 -- 1740 . . . . . . . . . . . Channel B input routine.
Input data are stored in Address CAHR.
Error flags are stored in Address INER@.
Statement Nos. 1780 -- 1840 ........... Channel A output routine.
Transmit data are stored in Address CHAR.
Statement Nos. 1860 -- 1930 ........... Channel B output routine.
Transmit data are stored in Address CHAR.
Statement Nos. 1950 -- 1990 ........... Writes machine language data in the memory.
tBASIC Version: SB-6510, SB-5510
,
17

Advertisement

loading

This manual is also suitable for:

Mz-8bi04