TS-7180 DIO: Difference between revisions

From embeddedTS Manuals
(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 ...")
 
mNo edit summary
Line 1: Line 1:
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 [[TS-7180#Terminal_Blocks|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:
The TS-7180 provides seven IO ports that can sink up to 500mA, or withstand up to 30V at the input.  These are available on the [[TS-7180#Terminal_Blocks|P3]] connector.  DIO_1 through DIO_7 appear as GPIO #37 through #43 (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:
<source lang=bash>
<source lang=bash>
tshwctl -a 37 -r
tshwctl -a 37 -r
Line 44: Line 44:
| 42
| 42
| 27
| 27
|-
| 7
| 43
| 28
|}
|}
|}
|}

Revision as of 11:09, 9 May 2018

The TS-7180 provides seven 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_7 appear as GPIO #37 through #43 (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
7 43 28