Communications Processor (CP)
MOTOROLA
MC68302 USER’S MANUAL
4-47
MAX_IDL
The UART controller watches the receive line, regardless of whether or not actual data is
being received. If the line is idle, the UART controller counts how many idle characters
have been received. An idle character is defined as 9 to 13 consecutive ones. For a given
application, the number of bits in the idle character is calculated as follows:
1 + data length (either 7 or 8) + (1 if address bit used) + (1 if parity bit used)
+ number of stop bits (either 1 or 2)
MAX_IDL is programmed with a value from 1 (MAX_IDL = 1) to 65536 (MAX_IDL =
0).
Once a character of data is received on the line, the UART controller begins counting any
idle characters received. If a MAX_IDL number of idle characters is received before the next
data character is received, an idle timeout occurs, and the buffer is closed. This, in turn, can
produce an interrupt request to the M68000 core to receive the data from the buffer.
MAX_IDL then provides a convenient way to demarcate frames in the UART mode (see also
4.5.11.11 UART Error-Handling Procedure.
NOTE
Program MAX_IDL to $0001 for the minimum timeout value; pro-
gram MAX_IDL to $0000 for the maximum timeout value.
IDLC
This value is used by the RISC to store the current idle counter value in the MAX_IDL tim-
eout process. IDLC is a down counter. It does not need to be initialized or accessed by
the user.
BRKCR
The UART controller will send a break character sequence whenever a STOP TRANSMIT
command is given. The number of break characters sent by the UART controller is deter-
mined by the value in BRKCR. The length of one break character is 9 to 13 zeros depend-
ing on the configuration. The same equation applies for BRKCR as that used for
MAX_IDL. See 4.5.11.8 Send Break for more details. BRKCR is programmed with a value
from 0 (BRKCR = 0) to 65535 (BRKCR = 65535).
PAREC, FRMEC, NOSEC, BRKEC
These counters are initialized by the user. When the associated condition occurs, they will
be incremented by the RISC controller. See 4.5.11.11 UART Error-Handling Procedure
for more details.
UADDR1, UADDR2
In the multidrop mode, the UART controller can provide automatic address recognition of
two addresses. In this case, the lower order byte of UADDR1 and UADDR2 are pro-
grammed by the user with the two desired addresses. See 4.5.11.6 UART Address Rec-
ognition for more details.