TS-8900-dioheader: Difference between revisions

From embeddedTS Manuals
(Created page with "The DIO is manipulated through tsctl, or through manipulation of the registers directly. Using tsctl will be the easiest way to communicate with the IO....")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The DIO is manipulated through [[tsctl]], or through manipulation of the [[#Register Map|registers]] directly.
The DIO is controlled through manipulation of the [[#Register Map|TS-8900 FPGA registers]].
 
Using tsctl will be the easiest way to communicate with the IO.  This example will show the simplest way to toggle the IO, but see the [[tsctl]] page for more advanced usage.
 
<source lang=bash>
# Start tsctl server if it is not already running.
# This only needs to be done once
tsctl --server &
 
# Lookup the logical DIO mapping of the dio header pin 1
eval `tsctl 127.0.0.1 System MapLookup DIO_40`
 
# Toggle the DIO high and low:
tsctl 127.0.0.1 DIO Set $DIO_40 high
tsctl 127.0.0.1 DIO Set $DIO_40 low
</source>
 


{| class=wikitable
{| class=wikitable

Latest revision as of 12:09, 13 June 2012

The DIO is controlled through manipulation of the TS-8900 FPGA registers.

Header
39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1
40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2
Pinout
Pin Name Notes
1 N/A Not Connected
2 N/A Not Connected
3 Ground
4 N/A Not Connected
5 N/A Not Connected
6 N/A Not Connected
7 N/A Not Connected
8 N/A Not Connected
9 SPI_MOSI Controlled by tsctl
10 3.3V Do not draw more than 12mA
11 N/A Not Connected
12 BUF_SPI_MOSI
13 BUF_SPI_CS1#
14 BUF_SPI_CLK
15 5V
16 EXT_RESET# Power cycle the whole board
17 N/A Not Connected
18 Ground
19 N/A Not Connected
20 N/A Not Connected
21 IN_0
22 N/A Not Connected
23 IN_1
24 N/A Not Connected
25 IN_2
26 OUT_7
27 IN_3
28 OUT_6
29 IN_4
30 OUT_5
31 IN_5
32 OUT_4
33 IN_6
34 OUT_3
35 IN_7
36 OUT_2
37 I2C_DAT See tsctl for usage.
38 OUT_1
39 I2C_CLK
40 OUT_0