AMETEK XBT Series User Manual
Page 45

Remote Interface Protocol and Package Mode
How to read memory parameter:
step 1: MEM 2
==> select memory number is 2
step 2: MEM?
==> read back memory NO.2 parameter
How to set up GPIO direction:
GPIO Pin 9
Pin 8
Pin 7
Pin 6
Pin 5
Pin 4
Pin 3
Pin 2
Pin 1
Bit
Bit 7
Bit 6
Bit 5
Bit 4
GND
Bit 3
Bit 2
Bit 1
Bit 0
Hex 0x80 0x40 0x20 0x10 X 0x08 0x04 0x02 0x01
Value
128
64
32
16 X 8 4 2 1
Bit 0 = 2
0
= 1 , Bit 1 = 2
1
= 2 , Bit 2 = 2
2
= 4 , Bit 3 = 2
3
= 8
Bit 4 = 2
4
= 16 , Bit 5 = 2
5
= 32 , Bit 6 = 2
6
= 64 , Bit 7 = 2
7
= 128
Direction: if set Pin N high ( 1 ) means set it as an output pin;
otherwise set Pin N Low ( 0 ) means set it as an input pin
CONT:GPIO:DIRECTION 15
==> set GPIO pin 1 ~ pin 4 as output pins and the
pin 6 ~ pin 9 as input pins
15 ( DEC ) = 0x0F ( HEX ) = 0x00001111 ( BIN )
CONT:GPIO:DIR 16
==> set GPIO pin 6 as output pin and other pins as
input pins
16 ( DEC ) = 0x10 ( HEX ) = 0x00010000 ( BIN )
How to read back and set up GPIO levels:
*Read back or set up GPIO value base on the GPIO direction that had been set
CONT:GPIO:DIR 15
==> set GPIO pin 1 to pin 4 as output pins,
and pin 6 to pin 9 as input pins
CONT:GPIO 3
==> set pin 1 and pin 2 to a high level
3 ( DEC ) = 0x03 ( HEX ) = 0x00000011 ( BIN )
CONT:GPIO:DIR 15
==> set GPIO pin 1 to pin 4 as output pins,
and pin 6 to pin 9 as input pins.
CONT:GPIO?
==> if return a value of 96, it means the input pin 7
and pin 8 are high and other input pins are low
( output pins return 0 )
96 ( DEC ) = 0x60 ( HEX ) = 0x01100000 ( BIN )
M370187-01 Rev J
5-11