
Serial Console
The available commands are listed in
. In this table, values in brackets indicate a range or list of
possible characters. A dash (
–
) indicates a range, and commas (,) indicate a list.
Table 6. Console Mode Commands
COMMAND
FORMAT
OPERATION
P
Set PGA
P [0-3]
R
Set data rate
R [F,S]
Perform offset
K
K
calibration
V
Show firmware version
V
S
Start streaming
S
D
Read data once
D
C
Set input channel
C
Q
Query parameters
Q
Console mode does not interrupt standalone operation. It is always available, even when the standalone
mode is in use. However, if parameters are changed using both the console and standalone modes,
parameters may become out of sync.
5.2
Command Reference
5.2.1
P
—
Set PGA
This command sets the gain of the ADS1232 PGA, according to these parameters:
•
P0
—
sets gain to 1
•
P1
—
sets gain to 2
•
P2
—
sets gain to 64
•
P3
—
sets gain to 128
•
P
—
(with no argument) prints the current gain setting
5.2.2
R
—
Set Data Rate
This command sets the speed of the ADS1232 according to these parameters:
•
RF
—
sets rate to fast
•
RS
—
sets rate to slow
•
R
—
(with no argument) prints the current data rate setting
Note that the actual data rate depends on the frequency of the device clock.
5.2.3
K
—
Perform Offset Calibration
Initiates an offset calibration on the ADS1232, using the method described in
5.2.4
V
—
Show Version
Displays a message containing the firmware version and copyright notice.
5.2.5
S
—
Start Streaming
When S is issued, the ADS1232REF begins printing raw output codes from the ADS1232 in hexadecimal
format, separated by new lines. The device iterates continuously until a character is received from the
serial port.
S is used primarily by the EVM software for data collection.
19
SBAU120B
–
November 2005
–
Revised July 2011
ADS1232REF User
'
s Guide
Copyright
©
2005
–
2011, Texas Instruments Incorporated