The headers for the dio functions in ts7xxx.subr read:
# dio_dir_set DIO_NUM(0..8) DIR(0=input,1=output) TS-7260/TS-7300
# dio_data_set DIO_NUM(0..8) 0|1 TS-7260/TS-7300
which would indicate that they accept 0 through 8 as valid DIO values.
The manual indicates the following pin mapping on DIOs for DIO1:
pin DIO
1 0
3 1
5 2
7 3
9 4
11 5
13 6
15 7
8 8
Don
On 8/25/2011 9:00 AM, al wrote:
Don, the HW is probably functional. This MIGHT be a programming error.
If the 7260 is anything like the 7500, the first valid pin number for
'dio' routines is 5. Check the dio source code or example routines to
be certain.
HTH
--- In <ts-7000%40yahoogroups.com>, Don
Tucker <> wrote:
>
>
> Using TS's little script,
>
>
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/binaries/ts-scripts/ts7xxx.subr
>
> I attempt to toggle the output voltage of DIO0 through DIO4 and see no
> change. I.e., after running the shell (export model=2, .
> ./ts7xxx.subr), I do:
>
> dio_dir_set X 1
> dio_data_set X 0
> dio_data_set X 1
>
> for X=0 through 4, and the voltage remains the same at 3.3V. If I try
> the same thing on DIO5 through DIO7, the voltage will toggle between
> 3.3V and 0V.
>
> Has anyone else seen this behavior, or is it an obvious indication of
> faulty hardware? I am getting no response from TS's tech support.
>
> Don
smime.p7s
Description: S/MIME Cryptographic Signature
|