Advantech ADAM-5511 Manual page 281

Table of Contents

Advertisement

void main ()
{
int MCR_Value, MCR_Params;
port_install(1);
:
:
port_enable_fifo(1);
//set MCR value=3 (RTS=1; DTR=1)
MCR_Params=3
port_set_modem_control_params(1, MCR_Params);
//get MCR value
MCR_Value=port_get_modem_control_status(1);
// MCR value must be 3
}
Register
Description
Name
LSR
Line Status
Register
LCR
Line Control
Register
Bit7
Bit6
Bit5
Data
Tx
THR
Error
Empty
Empty
divisor
Tx
Force
latch
Break
parity
access
Bit4
Bit3
Bit2
Rx Break
Framing
Parity
Error
Error
odd/even
Parity
Number
parity
enable
of
stop bit
Bit1
Bit0
Overrun
RxRDY
Error
data length bits[1:0]

Advertisement

Table of Contents
loading

Table of Contents