Beschreibung
der R S - 2 3 2 ( V 2 4 ) - S c h n i t t s t e l l e
A.1
Allgemeines
Die R S - 2 3 2 - S c h n i t t s t e l l e des VC20-Systems s e t z t s i c h aus
menten zusammen:
1.
2.
3.
4.
Die
P r o g r a m m s c h n i t t s t e l l e
u e b l i c h e n BASIC-Anweisungen OPEN, CLOSE, CMD,
und
STATUS r e a l i s i e r t .
Hand von
B e i s p i e l e n im w e i t e r e n V e r l a u f d i e s e s Anhanges
Die
R S - 2 3 2 - S c h n i t t s t e l l e kann sowohl von
schinensprache-Programmen ( s . Anhang B) b e d i e n t werden.
Mit
dem
P u f f e r s y s t e m
S c h n i t t s t e l l e
P u f f e r s y s t e m b e s t e h t
first-out"-Modus
Reihenfolge
aus
wurde. Das
P u f f e r s y s t e m
S p e i c h e r - S e i t e n des Anwender-Programmspeichers. Durch das
e i n e s RS-232-Kanals m i t e i n e r OPEN-Anweisung werden d i e s e 512
f u e r
d i e P u f f e r r e s e r v i e r t .
l i c h e n BASIC-Programms n i c h t mehr a u s r e i c h e n d P l a t z
wird k e i n e Fehlermeldung ausgegeben sondern das Programm w i r d
mehr z e r s t o e r t . Zeichen werden mit den
aus
dem
P u f f e r g e l e s e n
s c h r i e b e n .
Die
Byte/Bit-Behandlung
K o n t r o l l e von
Z e i t g e b e r n
( u n t e r b r e c h u n g s - ) - g e s t e u e r t . Der V I A - B a u s t e i n 6522 s e t z t e i n e n i c h t
maskierbare
I n t e r r u p t - A n f o r d e r u n g ,
S c h n i t t s t e l l e
im Vordergrund unabhaengig von im H i n t e r g r u n d
fenden
BASIC- oder
B e t r i e b s s y s t e m r o u t i n e n zur Bedienung des
s e r i e l l e n S y s t e m s c h n i t t s t e l l e
speicherung
durch
S c h n i t t s t e l l e n i c h t g e s t o e r t werden k a n n . Deshalb koennen, waehrend
das
K a s s e t t e n l a u f w e r k
s c h n i t t s t e l l e a k t i v i s t , k e i n e Daten ueber d i e R S - 2 3 2 - S c h n i t t s t e l l e
uebertragen werden.
Anhang A
U n t e r s t u e t z u n g durch den B A S I C - I n t e r p r e t e r .
P u f f e r s y s t e m .
Byte/Bit-Behandlung.
Aeussere
Hardware
Spannungpegel.
zum
Die
Verwendung d i e s e r Anweisungen w i r d
s o l l t e
benutzen
moechte,
aus zwei 2 5 6 - B y t e - P u f f e r n ,
b e t r i e b e n werden, d.h.
dem
P u f f e r ausgegeben, wie
b e l e g t
I s t oberhalb
und
mit PRINT# und
f u e r
im VIA6522-Baustein
Maschinensprache-Programmen zu
d i e
I n t e r r u p t a n f o r d e r u n g e n
oder
P e r i p h e r i e
zur
Erzeugung
B A S I C - I n t e r p r e t e r
BASIC- a l s auch
s i c h
j e d e r
Programmierer,
v o r h e r
v e r t r a u t
d i e
Zeichen werden
b e i
Bedarf
des
Anweisungen INPUT# und GET#
CMD
d i e S c h n i t t s t e l l e
d i e
e s
e r l a u b t ,
K a s s e t t e n g e r a e t e s und
s i n d so
k o n z i p i e r t , d a s s
an
der
129
v i e r
der
g e e i g n e t e n
w i r d
durch
INPUT#, GET#, PRINT#
b e h a n d e l t .
von
der
machen.
d i e
im
" f i r s t - i n -
s i e h i n e i n g e s c h r i e b e n
d i e
o b e r s t e n
E r o e f f n e n
im
S p e i c h e r
b e f i n d -
vorhanden, so
i n den
P u f f e r
l a e u f t
u n t e r
ab und
i s t i n t e r r u p t
d i e
RS-232-
b e t r e i b e n .
d i e Daten-
f u e r
d i e
RS-232-
s e r i e l l e n
System-
E l e -
d i e
an
Ma-
d i e
Das
i n der
beiden
Bytes
v i e l -
ge-
der
a b l a u -
Die
der