Microchip LN-CSAC-SA65 handleiding
Handleiding
Je bekijkt pagina 27 van 50

LN-CSAC MODEL
SA65-LN USER’S GUIDE
2024 Microchip Technology Inc. and its subsidiaries DS50003805A-page 27
Chapter 3. Programmer’s Reference
Pins 5 and 6 provide a serial interface for communication with the LN-CSAC The pro-
tocol is fundamentally similar to RS-232, with the exception that the voltage levels are
CMOS (0V to VCC), rather than ±12V.
The serial communication parameters are as follows: (57600-8-N-1)
• 57,600 Baud
• 8 data bits
• No parity
• 1 stop bit
• No flow control
For interfacing with a standard RS-232 controller interface, which requires ±12V logic
levels, an external level shifter must be employed, such as the Maxim MAX202
employed on the evaluation board (see Section 5.4 “Evaluation Board”).
3.1 OVERVIEW OF TELEMETRY INTERFACE
The LN-CSAC communicates exclusively with printable (non-binary) ASCII characters.
In general, commands are to be preceded by an exclamation point (!) and followed by
a carriage-return /linefeed [CRLF] pair (ASCII 0x0D 0x0A). For convenience and effi-
ciency, most commands also provide a single-character shortcut, which is executed
immediately, that is without bracketing by ! and [CRLF]. For example, the single char-
acter shortcut ^ is functionally identical to !^[CRLF].
After transmitting ! but prior to sending [CRLF], a command may be aborted by send-
ing the escape character (ASCII 0x1B).
All commands produce a response from the LN-CSAC, which are human readable,
with individual lines ending in [CRLF]. If an unsupported or improperly formatted com-
mand is received, the LN-CSAC responds with ?[CRLF].
3.1.1 Checksum (Error-Checking Option for Telemetry Interface
Communications)
For improved communications reliability, an NMEA-style checksum may be enabled
through bit 6 (0x0040) of the mode register (see Section 3.3.3 “Set/Clear Operating
Modes (M)”). When enabled, the checksum is required for all input commands and is
present on all replies from the LN-CSAC.
The checksum is a two-byte ASCII representation (in hexadecimal) of the XOR of all
characters in the command between—but not including—the ! and the [CRLF] char-
acters. The checksum is preceded by a * character and appended to the command
immediately prior to the [CRLF]. Because commands including checksum are inher-
ently multi-character, single-character shortcuts are not available when checksum is
enabled.
Example (enable Disciplining through mode register):
Command: !MD*09[CRLF]
Unit response: 0x0050*4D[CRLF]
Bekijk gratis de handleiding van Microchip LN-CSAC-SA65, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Microchip |
Model | LN-CSAC-SA65 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 6392 MB |