EasyManuals Logo

Advantech ADAM-5050 User Manual

Advantech ADAM-5050
92 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #80 background imageLoading...
Page #80 background image
ADAM-5000 Series User Manual 72
port_enable_fifo(1);
//After these above settings are enabled, you can apply any other function library to
implement your program.
}
—A receive-and-transmit example program for the ADAM-5090
main()
{
int err_value, char character port_installed(1)
:
:
port_enable_fifo(1);
//check whether error has been received or not
err_value=port_rx_error(1);
//if error detected, print out the message
if(err_value)
{
printf(“\n Rx Error, The LSR Value=%02X”, Err_value)”;
}
//check whether FIFO receives data or not; if data received, read a character
if(port_rx_ready(1))
{
character=port_rx(1);
}
//check whether FIFO is empty or not, if empty, send a character
if(port_tx_empty(1));
{
port_tx(1, character)
}
}

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Advantech ADAM-5050 and is the answer not in the manual?

Advantech ADAM-5050 Specifications

General IconGeneral
BrandAdvantech
ModelADAM-5050
CategoryI/O Systems
LanguageEnglish

Related product manuals