RS-232
ZXNet echo conference «code.zx»
From 500:812/07.19 → To Aleksandr Arefjev 23 March 1998
I suddenly see on 03/21/98, at 02:58 someone
Aleksandr Arefjev wrote to Kirill Frolov about RS-232:
Hello, Alexander!
KF>> Enlighten: where is this port located?
AA> If you believe the diagram, and if I understand correctly,
AA> it is implemented only for transmission on 49 mikrukh
AA> 15 paw on TM9.
I don’t know where it is implemented in the scorpion.
AA> usually use a serial port
AA> 580ВВ51 bidirectional.
AA> I had a question about programming it
AA> I would like to have both input and output.
non problems (French)
First, signals with decoding.
d0-d7 - 2-directional, 3-stable exchange lines with MP.
VM' - chip selection.
ZP' - record of information.
chT' - reading information.
U/D' - data management.
type of operation operation signals
U/D' hT' ZP' VM'
reading wd<-rd 0 0 1 0
(input) wd<-rs 1 0 1 0
record shd->rpd 0 1 0 0
(output) wd->ru 1 1 0 0
disconnection from motor - - - 1
prohibited - 0 0 0
shd - data bus
rd - data register
ru - control register (mode or command or synchronization symbol)rs - status register
RPD - transmitter register
control register bits:
7 6
asynchronous mode - stop bit length
0 0 - incorrect
0 1 - 1
1 0 - 1.5
1 1 - 2
synchronous mode - type of synchronization
- 0 internal
- 1 external
0 - 2 SS (sync symbols)
1 - 1 SS
5 4
parity control
- 0 no control
0 1 odd
1 1 parity
3 2
character width
0 0 5
0 1 6
1 0 7
1 1 8
1 0
modes
0 0 synchronous
0 1 asynchronous 1:1 (relative synchronization and transmission frequencies)
1 0 async. 1:16
1 1 async. 1:64
command register bits:
7 - search ss 0-no 1-search
6 - reset 0-no 1-reset
5 - setting ZPR't 0-no 1-ZPR't=0
4 - reset error signs 0-no 1-reset
3 - end of transmission 0-no 1-efficiency=1
2 - reception 0-disabled 1-allowed
1 - setting ZPD't 0-no 1-ZPD't=0
0 - transmission 0-disabled 1-enabled
ZPR't = terminal receiver request
ZPD't = terminal transmitter request
Efficiency = end of data transfer
exchange algorithm:
1.record mode control word
2.record sync symbol for synchronous mode
writing a command for asynchronous mode
3.record sync symbol 2 for synchronous mode
data word for asynchronous. mode (if the command is not reset)
this is according to m/s BB51(A). See the diagram for specific I/O ports.
in general, a lot more... why do you need it? for business, or for
study? If (2), then we seem to have given it normally.
If (1), then for which?
In general, it’s better to turn to literature - it’s more reliable :) AA> Sincerely, Alexander!
√a└e┌┐┼i┌┐ Pi┌┬┐e┌┐0√
-+- SMM version 1.08