56
Technical
Reference
|
10
REM
Enabled
transmitter
by
setting
DTR
ON
20
OUT
&H3FC,
(INP(&H3FC)
OR
&H01)
30
REM
Send
out
one
character
40
#1,
OUTCHR$
50
REM
Check
transmitter
holding
register
and
shift
register
60
IF
((INP(&H3FD)
AND
&H60)
>0)
THEN
60
70
REM
Disabled
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
Note
13:
The
RS
‐
485
of
the
JetBox
uses
COM2.
If
you
want
to
program
it
and
hardware
setup,
please
refer
to
the
BIOS
Setup
for
COM2
address
setup.
Chapter
6
Technical
Reference
6
1
Real
Time
Clock
and
Non
Volatile
RAM
The
JetBox
contains
a
real
‐
time
clock
compartment
that
maintains
the
date
and
time
in
addition
to
storing
configuration
information
about
the
computer
system.
It
contains
14
bytes
of
clock
and
control
registers
and
114
bytes
of
general
purpose
RAM.
Because
of
the
use
of
CMOS
technology,
it
consumes
very
little
power
and
can
be
maintained
for
long
periods
of
time
using
an
internal
Lithium
battery.
The