--- In Jim Jackson <> wrote:
> you entering for an obfuscated code contest or something :-)
>
> You got a typo....
>
> PBDDR=(unsigned char *)(start + 0x10);
Heh, I dunno why I pasted the code in a sentence like that... it makes
it pretty hard to read. But I didn't make a typo in that line, but
it's probably wrong. I got that from the memory map of the 7260,
which says:
0x12C0_0000 - 0x12C0_0003 (TS-7260) DIO2 Header TS-XDIO registers
0x12C0_0000 - 0x12C0_0001 (TS-7260) DIO2 Header Basic DIO registers
and from the DIO part of the manual:
Table: Simple DIO feature on DIO2 Header Registers
0x0 Data Register 1 - Pin at logic high 0 - logic low
0x1 Data Direction Register 1 ? output 0 - input
I think part of the problem might be that it's also used for the
TS-XDIO, and I may not be setting it for standard DIO properly (or at
all). I did try (start+0x10), but it didn't work either.
> I have a general purpose program for playing around with the dio and lcd
> digi ports and the 12 bit ADC option, it's referenced on my ts7200
page at
>
> http://www.comp.leeds.ac.uk/jj/linux/arm-sbc.html
>
> and is at
>
> http://www.comp.leeds.ac.uk/jj/linux/adio.tgz
>
> The ts72xx specific stuff is in the c file ts7200io.c
Thanks, I've found your site and your programs very useful, and that's
actually how I first controlled the motors using DIO1. But from what
I can tell, I think the hardware has changed from the 7200 to the
7260, so the ADC code doesn't work on the 7260 (I believe yours is for
the 8 channel option, I'm using the 5 channel on board, which I was
able to get the sample EP9301 code to work with), and the 7260 also
has 10 more DIO lines (DIO2) which are the ones I'm trying to use. Is
your program able to control those too?
Thanks again for the help,
Pat
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|