Toshiba 2000 Manuale d'uso - Pagina 36

Sfoglia online o scarica il pdf Manuale d'uso per Computer portatile Toshiba 2000. Toshiba 2000 49. Integrated controller, cif module
Anche per Toshiba 2000: Manuale di riferimento rapido (2 pagine)

Toshiba 2000 Manuale d'uso
(4) Ch1 transmission program
Receive :
Transmit :
S2 register
RX1_DAT[0]
RX1_DAT[128]
TX1_DAT[0]
TX1_DAT[128]
7
RX1_GO
8
9
10
11
12
13
14
15
16
17
18
19
20
21
6F8C0843
data received by Ch1 (up to 256 bytes) is stored in RX1_DAT[0] - [128].
When receive is successful, % MX12.16.10 ( RX1_CMP ) turns ON for
1 scan. When there is a receive error, % MX12.16.9 ( RX1_ERR ) is
turned ON and error information is stored in ERR_DAT[0] – [128].
Data is transmitted when it set in TX_DAT[0] - [128] and TX1_GO is
turned ON .When transmit is successful, % MX12.16.14 ( TX1_CMP ) is
turned ON for 1 scan.
When there is a transmit error, % MX12.16.13 ( TX1_ERR ) is turned ON
and error information is stored in ERR_DAT[0] - [128].
CH1 receive data
128 words
CH1 transmit data
128 words
(RX1_CMP)
(RX1_ST)
%MX12.16.10 %MX12.16.11
%MX12.18.11
(S)
(RX1_RDY)
(RX1_ST)
%MX12.16.11
%MX12.18.11
MREAD
E
(R)
16#5
RX1_GO
T
(R)
LD
16#0010
RX1_END
TADDR
LD
(S)
RX1_DAT
P
LD
128
N
LD
(RX1_ERR)
(RX1_ST)
%MX12.16.9
%MX12.18.11
MREAD
E
(R)
16#4
RX1_ERR
T
LD
(S)
16#0000
TADDR
LD
ERR_DAT
P
LD
16
N
LD
6.1 Transmission Program Example
Inside CIF module
MREAD
(0010H)
Top address:16
Transfer words : 128
176W
MWRITE
(00B0H)
Top address:176
Transfer words:128
(TX1_RDY)
TX1_GO
%MX12.16.15
16#5
LD
16#00B0
LD
TX1_DAT
LD
128
LD
(TX1_CMP)
%MX12.16.14
(TX1_ERR)
%MX12.16.13
16#5
LD
16#0000
LD
ERR_DAT
LD
16
LD
16W
Ch1 receive area
160 words
Ch1 transmit area
160 words
(TX1_ST)
%MX12.18.15
MWRITE
E
(S)
T
TADDR
P
N
(TX1_ST)
%MX12.18.15
(R)
TX1_GO
(R)
TX1_END
(S)
(TX1_ST)
%MX12.18.15
MREAD
E
(R)
TX1_ERR
T
(S)
TADDR
P
N
23
6