ts-7000
[Top] [All Lists]

Re: [ts-7000] Problem Accessing GPIO on TS-7800

To:
Subject: Re: [ts-7000] Problem Accessing GPIO on TS-7800
From: Jim Jackson <>
Date: Tue, 12 Aug 2008 10:16:44 +0100 (BST)


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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU