TS-7250-V3 TS-DIO24: Difference between revisions
From embeddedTS Manuals
No edit summary |
m (Links auto-updated for 2022 re-branding ( https://docs.embeddedarm.com/TS-DIO24 → https://docs.embeddedTS.com/TS-DIO24 http://www.embeddedarm.com/products/board-detail.php?product=TS-DIO24 → http://www.embeddedTS.com/products/board-detail.php?product=TS-DIO24)) |
||
Line 6: | Line 6: | ||
|labelstyle = width:33% | |labelstyle = width:33% | ||
|datastyle = | |datastyle = | ||
|data1 = [http://www. | |data1 = [http://www.embeddedTS.com/products/board-detail.php?product=TS-DIO24 Product Page] | ||
|header2 = 8-bit IO | |header2 = 8-bit IO | ||
}} | }} | ||
Line 13: | Line 13: | ||
Refer to the TS-DIO24 manual for register / hardware documentation: | Refer to the TS-DIO24 manual for register / hardware documentation: | ||
* https://docs. | * https://docs.embeddedTS.com/TS-DIO24 | ||
The TS-DIO24 currently does not have a kernel driver which would be needed to use the interrupts. The Digital inputs/outputs however can be used from userspace without a driver. | The TS-DIO24 currently does not have a kernel driver which would be needed to use the interrupts. The Digital inputs/outputs however can be used from userspace without a driver. |
Latest revision as of 17:08, 17 January 2022
Product Page | |
8-bit IO |
---|
The TS-DIO24 provides 24 0-5V digital I/O. The I/O connector is an Opto-22 compatible interface that provides 16 I/O points configurable as input or output (24 mA as outputs) as well as 4 dedicated outputs capable of driving 48 mA and 4 dedicated outputs capable of sinking 1 Amp
Refer to the TS-DIO24 manual for register / hardware documentation:
The TS-DIO24 currently does not have a kernel driver which would be needed to use the interrupts. The Digital inputs/outputs however can be used from userspace without a driver.
This example assumes no jumpers are installed on the TS-DIO24.
# Verify the TS-DIO24 is detected. This should return 0x54
pc104_peekpoke io 8 0x100
# Set A0 to 5V and turn off the rest of A
pc104_peekpoke io 8 0x105 0x1
# Set PORT B to to high outputs, and set PORT C to an input
pc104_peekpoke io 8 0x106 0xff # PORT B Data
pc104_peekpoke io 8 0x104 0x2 # B output, C input
# Read PORT C
pc104_peekpoke io 8 0x107