On Tue, 12 Aug 2008, mikeciaraldi wrote:
> We have run into a funny problem when attempting to access the GPIO on
> my TS-7800. The DIO and LCD ports work fine, by the way.
>
> As a test, we connected an LED and pull-up resistor from one of the
> output pins to the 5 volt supply. If we drive that pin to zero, the LED
> should light. When we use the command-line peekpoke, we can set the
> direction of the pin to output, then set the value to zero, and the LED
> lights up as it should. But when we try to do this from inside some C
> code, the pin stays at one. The original version of the code uses my
> peek and poke functions (discussed in another message thread). But here
> is a minimal version of the code, which does the same thing.
>
> minimal.c <http://www.cs.wpi.edu/%7Eciaraldi/minimal.c>
>
Ok caveat - don't have a 7800.
Does the TS documentation give the addresses for GPIODIRECTION and GPIODATA
as byte, word or long word addresses!
I suspect you have the wrong one, and hence are writing to the wrong
location.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|