page 106
9.3. Use of the serial interface
Function
SERIAL_TX
Library CRxxxx.LIB
Function symbol
Purpose
Transfers a data byte via the serial RS232 interface.
Parameter
Function inputs
Function outputs, none
Description
SERIAL_TX transfers the data byte DATA via the serial
interface. The transfer can be released or blocked via the
function input ENABLE.
The SERIAL functions are the basis for creating a user-specific
protocol for the serial interface.
In general the serial interface is not available to the user as it is
used for the program download and the debugging. If the user
sets the system flag bit SERIAL_MODE to TRUE the interface
can be used. Program download and debugging are
only
possible via the
CAN
interface
.
Name Data type Description
ENABLE BOOL TRUE: transfer released
FALSE: transfer blocked
DATA BYTE byte date to be transferred