MC68302 Applications
D-58
MC68302 USER’S MANUAL
MOTOROLA
In the Tx BD, the last (L) bit should be set, and the TB, BR, TD, and TR bits should be
cleared. In each Rx BD, the CR bit, which indicates a bad BCS, should be ignored.
If all the frames are of a fixed length, you do not need to use ETX. Instead, disable the whole
control character table, and set the MRBLR to the frame length. If MRBLR = 2, for example,
then you can send and receive the following frame types:
syn-syn-Data-Data-syn-syn-syn-syn-Data-Data-syn-syn
where syn is a one-byte sync character that cannot be sent as data.
To be able to send the sync character within the data stream requires full BlSYNC capabil-
ities in a mode called BISYNC transparent, which is not discussed in this subsection.
D.8.6.2 TRANSYNC MODE.
In the normal transparent mode examples discussed previ-
ously, both the NTSYN and the EXSYN bits were set in the SCM register. Also, different
ways of using BISYNC mode have been described in which both the NTSYN and EXSYN
bits are cleared. However, what happens if you set NTSYN and clear EXSYN The answer
is a combination of transparent and BISYNC modes that is referred to here as TRANSYNC.
On the transmission side, normal transparent operation takes place with no sync characters
transmitted. On the receive side, however, reception will not be synchronized until the pat-
tern in the DSR is matched on the line. In other words, the CD (sync) function is eliminated
on transmit and is replaced with the DSR matching function on receive. Recall that CD and
CTS can still control transmission and reception in TRANSYNC mode if the DIAG1-DIAG0
bits are set for normal mode and not software operation mode.
NOTE
When NTSYN is cleared and EXSYN is set, the result is normal
BISYNC mode except that the external synchronization function,
CD (sync), is required for proper reception. Syncs are transmit-
ted in this mode, but are not required on receive. This is the op-
posite of TRANSYNC mode.
D.8.7 Gating Clocks in NMSI Mode
If the behavior of CTS and CD (sync) are not what is needed for an application, there is al-
ways the possibility of gating clocks to the SCC. The term “gating clocks” usually means pro-
viding clocks to an SCC only while it is in the act of transmitting or receiving, but at no other
time. Gating clocks is a requirement in some multidrop applications and can be useful for
many special applications. Gating clocks is only possible if the clocks are inputs to the SCC
since the internal SCC baud rate generators do not support gating clocks.
The gating of clocks can provide extra control over the transmission and reception of data,
albeit with extra logic external to the MC68302. The SCCs are designed with static logic;
thus, the clock signal may be held in a constant high/low state for any period of time. When-
ever clocks are provided externally (and especially when they are gated), care should be
taken to avoid glitches, excessive ringing, and very long rise/fall times in a very noisy envi-
ronment. If the minimum clock high/low time is violated, erratic operation can result, which
can cause an SCC to immediately transition to an error state such as underrun or overrun.