Jetter AG
Programming | 8
User Manual – JCM-501-E01
37 / 65
Troubleshooting
As error bits cannot be assigned to individual characters in the receive buffer, all
characters should be removed from the receive buffer and discarded when an er-
ror bit is set.
Possible causes of error and troubleshooting:
Errors
Possible cause
Troubleshooting
Framing error
Jammed data transmission
caused by EMC problems,
defective cables or connec-
tors
■
Check the wiring and connec-
tors.
■
Use shielded cables.
■
Do not lay cables near sources
of interference.
Incorrectly set communica-
tion parameters (baud rate,
number of stop bits, etc.)
■
Make sure the set communica-
tion parameters are consistent
with the settings of the con-
nected device.
Parity error
Jammed data transmission
caused by EMC problems,
defective cables or connec-
tors
■
Check the wiring and connec-
tors.
■
Use shielded cables.
■
Do not lay cables near sources
of interference.
Incorrectly set parity
■
Make sure the parity setting is
consistent with the setting of
the connected device.
Buffer overflow The external device sends
characters at too high a rate
and the application program
is not able to read them out
of the receive buffer in due
time.
■
Program a software handshake.
■
Set a lower baud rate.
■
Make sure that characters are
read out from the receive buffer
faster. To achieve this the pro-
gram code has to be optimized.
8.4.2 Registers - Description
This chapter describes the registers associated with the user-programmable se-
rial interface. These registers are used for the following tasks:
■
Parameterizing the interface
■
Sending characters
■
Receiving characters
Register numbers
The registers of the interface are combined into one register block. The basic reg-
ister number of this block is dependent on the device.
Device
Basic register number
Register numbers
JCM-501-E01
103100
103100 … 103119
Tab. 23:
Register numbers of the serial interface