
2600 Family Instruction Manual
Chapter 4 : Serial Communication Server
This flag is automatically reset at the beginning of each
command.
• OPN indicates that the com port is open (i.e., transmit and
receive operations are enabled). This flag is set by the
Open action and reset by the Close action. All com ports
default to the closed state upon module reset.
• FRM indicates that a character framing error was detected
on a received character. The faulty character is discarded.
• PAR indicates that a parity error was detected on a
received character. The faulty character is discarded.
• OVR indicates that the receive buffer overflowed. This
will happen if either (1) the UART receiver overflowed
because incoming characters occurred at a rate that is
faster than the MM can process them, or (2) the receive
buffer is full and another receive character arrived at the
UART.
In most applications, assertion of any of the error flags will be
cause for discarding all data received from the remote device.
Error flags may be reset by issuing a ClearFlags command
to the target com port. See Section 4.4.4 for details.
4.4 Com Port Commands
This section describes the commands that are supported by the
MM communication server.
4.4.1 SetMode
Function Programs the operating mode.
Opcode 0x00
Command (ClockDiv[0]),(ClockDiv[1]),
(Attrib),(LEDs)
In the following subsections, bold type indicates
the default settings that are in effect after a
module reset.
4.4.1.1 Baud Rate
ClockDiv specifies the baud rate for both
transmitter and receiver. It may be set to any of
the following values in order to program standard
baud rates. Setting ClockDiv to any value not
shown in the table will result in a non-standard
baud rate.
4.4.1.2 Operational Attributes
The Attrib byte (Figure 30) specifies various
operational attributes for the communication
interface.
Table 8: Summary of Com Port Commands
Command Opcode Function
SetMode 0x00 Program the port’s operating mode.
Send 0x01 Transmit a character string.
Receive 0x02 Receive a character string.
ClearFlags 0x03 Reset error flags.
Open 0x04 Enable transmit and receive.
Close 0x05 Disable transmit and receive.
Flush 0x06 Dump receiver buffer.
GetRxCount 0x07 Return receive buffer character count.
GetTxCount 0x08 Return transmit buffer character count.
StartBreak 0x09 Enable break transmission.
EndBreak 0x0A Disable break transmission.
BreakChar 0x0B Set break character.
Parameter Function
ClockDiv Clock divisor for the baud rate
generator.
Attrib Collection of bit fields that set
various operating attributes.
LEDs Specifies the behavior of the com
port’s status LED.
Baud Rate
(bits/second)
ClockDiv[0]
(hex)
ClockDiv[1]
(hex)
300 00 03
600 80 01
1200 C0 00
2400 60 00
4800 30 00
9600 18 00
19.2K 0C 00
38.4K 06 00
57.6K 04 00
115.2K 02 00
Comentários a estes Manuais