TS-7180 DIO

From embeddedTS Manuals
Revision as of 16:42, 28 February 2017 by Ian (talk | contribs) (Created page with "The TS-7180 provides six IO ports that can sink up to 500mA, or withstand up to 30V at the input. These are available on the P3 connector. DIO_1 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The TS-7180 provides six IO ports that can sink up to 500mA, or withstand up to 30V at the input. These are available on the P3 connector. DIO_1 through DIO_6 appear as GPIO #37 through #42 (when used as inputs), and as GPIO #22 through #28 (when used as outputs). For example, to read the state of DIO_1, enter the following command:

tshwctl -a 37 -r

Bit #2 will reflect the state of the pin.

To drive DIO_1 low, enter the following command:

tshwctl -a 22 -w 3
DIO
DIO # INPUT GPIO # OUTPUT GPIO #
1 37 22
2 38 23
3 39 24
4 40 25
5 41 26
6 42 27