Communication Processor Module
16-386
MPC823 USER’S MANUAL
MOTOROLA
SMC
COMMUNICATION
16
PROCESSOR
MODULE
16.11.6.6 SMC UART COMMANDS. You can program the CPM command register
(CPCR) with the following commands to transmit data.
STOP TRANSMIT—This command disables the transmission of characters on the
transmit channel. If the SMC UART controller receives this command while transmitting
a message, it stops transmitting. The SMC UART controller finishes transmitting any
data that has already been transferred to its FIFO and shift register and then stops
transmitting data. The TBPTR is not advanced when this command is issued. The SMC
UART controller transmits a programmable number of break sequences and then
transmits idles. The number of break sequences, which can be zero, should be written
to the BRKCR entry before this command is issued to the SMC UART controller.
RESTART TRANSMIT—This command enables characters to be transmitted on the
transmit channel. The SMC UART controller expects it after disabling the channel in its
SMCMR and after issuing the STOP TRANSMIT command. The SMC UART controller
resumes transmission from the current TBPTR in the channel’s TX buffer descriptor
table.
INIT TX PARAMETERS—This command initializes all the transmit parameters in this
serial channel’s parameter RAM to their reset state and should only be issued when the
transmitter is disabled. The INIT TX AND RX PARAMS command can also be used to
reset the transmit and receive parameters.
You can program the CPCR with the following commands to receive data.
ENTER HUNT MODE—You should not use this command for an SMC UART channel.
You should use the CLOSE RX BD command instead.
CLOSE RX BD—This command is used to force a serial management controller to
close the current receive buffer descriptor if it is currently being used and to use the next
buffer descriptor in the list for any subsequently received data. If a serial management
controller is not in the process of receiving data, no action is taken by this command.
INIT RX PARAMETERS—This command Initializes all the receive parameters in this
serial channel parameter RAM to their reset state. This command should only be issued
when the receiver is disabled. The INIT TX AND RX PARAMS command can also be
used to reset the receive and transmit parameters.
16.11.6.7 SENDING A BREAK. A break is an all-zeros character without stop bits and it is
sent by issuing the STOP TRANSMIT command. The SMC UART controller finishes
transmitting any outstanding data and then sends a character with consecutive zeros. The
number of zero bits in this character is the sum of the character length, plus the number of
start, parity, and stop bits. The SMC UART controller transmits a programmable number of
break characters according to the BRKCR entry and then reverts to idle or sends data if the
RESTART TRANSMIT command was issued before completion. When the break is
completed, the transmitter sends at least one idle character before transmitting any data to
guarantee recognition of a valid start bit.