beautypg.com

Table 5-3: handshake signal status – PNI CommBoard User Manual

Page 15

background image

PNI Sensor Corporation

DOC#1018122 r02

PNI CommBoard User Manual

Page 13

This command will not remove the Hold state. Note that only capital „F‟ is

recognized.

?

– Handshake Signal Status

The status of SSN and DRDY lines are returned to the user in a single byte. The

value of the byte indicates the status of these lines, as given in Table 5-3.

Table 5-3: Handshake Signal Status

Value

SSN

DRDY

0

LOW

LOW

1

LOW

HIGH

2

HIGH

LOW

3

HIGH

HIGH

!

– Pulse CLEAR Signal

On receiving this command a 10 s pulse is generated on the CLEAR pin. This pin is

normally LOW.

$

– SSN Control

Issuing this command sets or resets the CommBoard‟s SSN line. The syntax is:

$#

where # must be “0” or “1”. The SSN pin will be set LOW if the number following
the „$‟ character is “0” and will be set HIGH if the number is “1”.

Example: x$0!wn113r~1rsi

This sentence asserts SSN LOW and writes “113” (decimal), then waits for
DRDY to go high, after which it reads a 16-bit signed integer. SSN is still LOW

at the end of the sentence.

.

– Pause 2 ms

Sending a “.” command causes a 2 ms delay before processing the next character in
the receive buffer. This is useful when working with the V2Xe.

V or v

– CPHA Setting

The SPI clock phase can be set by the user. “V” sets CPHA=1, “v” sets CPHA=0.
The default is “v”, CPHA = 0.

O or o

– CPOL Setting

The SPI clock polarity can be set by the user. “O” sets CPOL=1, “o” sets CPOL=0.
The default is “o”, CPOL = 0.