beautypg.com

DNF Controls GC-32 GPIO Controller User Manual

Page 6

background image

Page 6 of 14

GPI Control, Single GPI

Command= 0x40

Data:

GPI#

0x01 through 0x20


GPI Debounce 0x00 – 0xFF (Internally, debounce time is multiplied by 10ms)


Send 44.4E.46.40.03.0A to set GPI#3’s debounce time to 100ms

GC-32 will respond with ACK


GPI Control, All GPIs

Command= 0x41

Data:

0x01

GPI Debounce 0x00 – 0xFF (Internally, debounce time is multiplied by 10ms)


Send 44.4E.46.40.03.0A to set all GPI debounce times to 100ms

GC-32 will respond with ACK




GPI Status, Single GPI Request status for a single GPI

Command= 0x50

Data:

GPI#

0x01 through 0x20

The GC-32 will respond with 44.4E.46.70.gg.xx.yy where gg= the specified GPI number and
xx.yy is the GPI’s 16 bit count value in MSB..LSB format. An even number indicates that the
GPI is currently off. An odd number indicates that the GPI is on. The count will increment
each time the GPI changes state.