Advantech ADAM-5511 Manual page 293

Table of Contents

Advertisement

Receive Character
Receive a character from specific port
char port_rx(int portno)
portno
Character
void main ()
{
char C;
port_install(1);
:
:
//if port1 FIFO receive data, read a character and print it out
If(port_rx_ready(1));
{
C=port_rx(1);
printf("\n %C", C);
}
}
The specified port number

Advertisement

Table of Contents
loading

Table of Contents