Download Print this page

Sharp CE-158 Service Manual page 15

Rs-232c interface (pc-1500 option)
Hide thumbs Also See for CE-158:

Advertisement

All
and
more
about Sharp PC-1500
at
http://www.PC-1500.info
3.
Receiver
Operation
The
receive
operation begins when
a start
bit
is detected
at the SERIAL DA TA
IN
(SDI)
input.
After
detection
of the
first
high·to-low
transition
on the
SDI
line,
a
valid start
bit
is
verified by
checking
for a
low-lave!
input 7-1/2 receiver
clock peri<>ds later.
When a vaUd start bit
has
been
verified,
the
following data bits, parity bit (if
programmed)
and stop bit(s) are shifted into the
Receiver
Shift
Register by clock pulse 7-1/2 in
each bit
time.
The
parity bit (if programmed)
is
checked and receipt of
a
valid stop bit is
verified.
On count
7-1
/2 of
the first
stop bit, the received
data is loaded
into the
Receiver
Holding
Regis1er.
If
the
word length
is
less
than
8
bits,
zeros
(low
output
level)
arc loaded into
the unused
most
significant
bits.
If
DATA
AVAILABLE (DA) has not
been
reset
by
tbe
time
the Receiver Holding
Register is
loaded,
the OVERRUN ERROR (OE) status
bit is set. One
half
clock period
later,
the
PARITY
ERROR (PE.) and FRAMING
ERROR
(FE)
status
bits
become valid
for the
character
in the Receiver
Holding
Register.
At
this
time,
the Data
Available status bit
is
also set
and the
Data Avai]able status
bit is
also set and the DATA
AVAILABLE
(DA) and
INTERRUPT (INT) outputs
go low,
signalling
the
microprocessor
that a
received
charac.ter
is
ready. The microprocessor respond.<
by
executing an input instruction. The
UART's 3-state
bus drivers
are enabled when the
UART
is selected
(CS!
·
CS2
·
CS3
=
I)
and
RD/WR
=
high.
Status
can be
read
when
RSEL
=high
.
Data
is read when
RSEL
=
Low.
W hen
read-
ing
data,
TPB latches
data
in the
microprocessor
and
resets
DAT A AV Al
LAB
LE (DA) in
the UART.
The preceding sequence is repeated
for
each serial character which is received from the peripheral.
STATUS REGISTER BIT ASSIGNMENT TABLE
Bit
7
6
5
4
3
2
I
0
Signal
THRE
TSRE
PSI
ES
FE
PE
OE
DA
Also
Available
22•
14
15
15
19•
at
Terminal
•Polarity
reversed
at
output
terminal,
Fig.
4
-
Status Register bit
assignment
BIT
SIGNAL:
FUNCTION
0 DATAAVAlLABLE(DA):
When
set
high,
this bit indicates
that
an entire character
has been
received and
transferred
to
the
Receiver
Holding
Register.
11\is signal
is
also available
at
Tem1.
19 but
with its
polarity
reversed.
OVERRUN
ERROR
(OE):
When
set
high, this bit
indicates that
the Data
Available bit
was not reset
before
the next
character w"'
transferred to
the
Receiver
Holding
Register.
This
signal
OR'ed
with PE
is
output
at
Term.
15.
2
PARITY
ERROR (PE):
When
set
high
,
this
bit
indicates
that the received
parity bit
docs
not
compare to
that
pro-
grammed by
the
EVEN
PARITY
ENABLE
(EPE)
control.
This bit is updated each time a
character
is
transferred to the Receiver Holding Register.
This
signal OR'ed
with OE is output
at
Tenn.
15.
3 FRAMING ERROR (FE):
When
set
hi·gh,
this bit
indicates that the
received
character
has no
valid stop
bit,
i.e.,
the
bit
following
the
parity
bit (if
programmed)
is
not
a
high-level voltage.
This
bit is
updated each time
a character
is transferred to
the
Receiver
Holding Register. This signal
is
also
available
at
Term.
14.
4
EXTERNALSTATUS(ES):
This bit is
set high
by a
low.level
input at
Tenn.
38
(ES).
13
Do not sale this PDF!!!

Advertisement

loading