Instructions

323 C-Control Pro IDE
© 2013 Conrad Electronic
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port )
info values:
RS232_FIFO_RECV (0) number of bytes received
RS232_FIFO_SEND(1) number of bytes written to he send buffer
Return Parameter
result in bytes
5.20.8 Serial_Read (Mega)
Serial Functions
Syntax
byte Serial_Read(byte serport);
Sub Serial_Read(serport As Byte) As Byte
Description
Reads one byte from the serial interface. If is there is no byte available in the serial interface, the function
waits until a byte has been received.
Please use Serial_ReadExt() if you work in serial IRQ mode. Serial_Read() only supports polled
mode.
The function is not supported in the AVR32Bit, since the function is waiting forever, when no
data is received. E.g. no incoming Ethernet packets would be processed.
Parameter
serport interface number (0 = 1st serial port, 1 = 2nd serial port )
Return Parameter
received byte from the serial interface
5.20.9 Serial_ReadExt
Serial Functions
Syntax
word Serial_ReadExt(byte serport);
Sub Serial_ReadExt(serport As Byte) As Word