06H Send Command Plus Prepare Status & Length - Ladybug LB5900 Series Interface Manual

Power sensor, spi & i2c interface
Hide thumbs Also See for LB5900 Series:
Table of Contents

Advertisement

06h Send Command plus Prepare Status & Length
This Command Header, 06h, sends the SCPI command that is included following the header.
The command also causes the sensor to prepare the sensor's status byte and the length of the
data in the sensor's buffer so that they can be returned. The latter is done after completion of
the SCPI command that was included. The header must include the total number of bytes
transmitted (excluding the Sensor Number) but including the terminator. Note the Sensor
Number is not actually part of the command, it is used by hardware to determine the addressed
sensor. If only requesting the sensor status and the length of any available data, no SCPI
command or terminator is sent.
Direction (address byte R/W ̅ bit): 0; Output to sensor.
Output to sensor:
Start Condition, Address byte, 06h, 0, #, #, [SCPI command, terminator], Stop Condition
[] Commands / Queries inside are optional.
Example with command:
Figure 12 – Header 06h with Command Example
Following the command or query, and after sufficient processing time is allowed, ACK should be
used to confirm the sensor is ready; then the user controller can read back the four byte return
containing status and the length of any available data. This length can then be used to read the
data in using header 0Ch. The example and Figure 13 below, details reading back the Status &
Length.
DOC: SPII2CHDWBrief - V2.71 07/25/2017
PAGE 16

Advertisement

Table of Contents
loading

Table of Contents