beautypg.com

AeroComm TRANSCEIVER ZB2430 User Manual

Page 38

background image

3 3

ZB2430 User’s Manual - v1.6

C O N F I G U R I N G T H E Z B 2 4 3 0

www.aerocomm.com

R ea d D i g it a l I n p u t

The OEM Host issues this command to read the state of GI0 input
pins. Pins configured as outputs will report their current state.

Command: <0xCC> <0x20>

Number of Bytes Returned: 2

Response: <0xCC>

Parameter Range:

= bit-0: GI0

R ea d A D C

The OEM Host issues this command to read the onboard 12-bit A/D
converters.

This command allows a very detailed amount of customization. The
OEM Host can select which pin or sensor to monitor, the resolution
of the measurement and the reference voltage to measure the input
ADC against.

Greater Resolution will provide a more detailed response, but will
introduce additional latency.

The following equations can be used to determine the voltages
associated with the ADC value returned:

Command:<0xCC> <0x21>

Number of bytes Returned: 3

Response: <0xCC>

Parameter Range:

= 0x00: Cmd/Data

0x01: InRange

0x02: GI03

0x03: GI04

0x04: GI05

0x05: GI06

0x06: GI07

0x07: GI08

0x0D: Positive Voltage Reference = 1.25V

0x0E: Temperature Sensor

0x0F: Vdd

= 0x00: 8 bit resolution [RES=0x00FF]

0x01: 10 bit resoltution[RES=0x03FF]

0x02: 12 bit resolution [RES=0x0FFF]

0x03: 14 bit resolution [RES=0x3FFF]

= 0x00: Internal 1.25V [REFvoltage= 1.25V]

0x01: External Reference on GI08

0x02: Vdd

0x03: Differential between pins GI07 and Gi08

= MSB of requested 12-bit ADC value

= LSB of requested 12-bit ADC value

W r i t e D i g it a l O u t p u t s

The OEM Host issues this command to write both digital output lines
to particular states.
The OEM Host must write the value of all digital outputs at once.
Each bit represents a GIO. The first 8 bits are resserved and not in
use.

Command: <0xCC> <0x23>

Number of Bytes Returned: 2

Response: 0xCC

Parameter Range:

= bit-0: GO0

bit-1: GO1

bit-2: GO2

bit-3: GO3

bit-4: GO4

bit-5: GO5

bit-6: GO6

bit-7: GO7

bit-8-15 : Reserved

Se t M ax Powe r

ADIn

ADC value

RES

[

]

---------------------------

=

REFvoltage

[

]

Ч