NAGASAKI Corporation
pop
ax
; AL - result
$
Write Data to Configuration Register
For example, write 0FFh to INDEX 3Bh:
Unlock configuration register
mov al,
03bh
out 22h,
al
nop
nop
mov al,
0ffh
out 23h,
al
nop
nop
Lock configuration register
4.4 PROGRAMMING
RS-485
The majority communicative operation of the RS-485 is in the same of the RS-232. When the
RS-485 precedes the transmission, which needs control the TXC signal, and the installing, steps
are as follows:
Step 1: Enable TXC
Step 2: Send out data
Step 3: Waiting for data empty
Step 4: Disable TXC
NOTE: Please refer to the section of the “Serial Ports” in the Chapter “System Controllers” for
the detail description of the COM port’s register.
$
Initialize COM port
Step 1: Initialize COM port in the receiver interrupt mode, and /or transmitter interrupt mode.
(All of the communication protocol buses of the RS-485 are in the same.)
Step 2: Disable TXC (transmitter control), the bit 0 of the address of 4 just sets “0”.
NOTE:
Control the FB2310 CPU card’s DTR signal to the RS-485
’
s TXC communication.
$
Send out one character (Transmit)
Step 1: Enable TXC signal, and the bit 0 of the address of 4 just sets “1”.
Step 2: Send out the data. (Write this character to the 0 of the current COM port
address)
Step 3: Wait for the buffer’s data empty. Check transmitter holding register (THRE, bit 5 of
the address of 5), and transmitter shift register (TSRE, bit 6 of the address of
5) are all sets must be “0”.
40
Содержание PC104-386L-2M
Страница 10: ...Overview 4 ...
Страница 20: ...NAGASAKI Corporation 14 ...
Страница 48: ...NAGASAKI Corporation 42 ...
Страница 68: ...NAGASAKI Corporation PLACEMENT 62 ...
Страница 69: ...NAGASAKI Corporation DIMENSIONS Unit mm 63 ...