ts-7000
[Top] [All Lists]

Re: [ts-7000] ts-7200 onboard ADC help.

To:
Subject: Re: [ts-7000] ts-7200 onboard ADC help.
From: Eddie Dawydiuk <>
Date: Wed, 24 Jan 2007 08:46:03 -0700 (MST)
Hello,

> According to the EP9301 user manual, i have written a sample code to
> read a voltage level on the GPI0 pin4 which is portC bit0. Once the
> code is running, i cant get a accurate result. Let say i set the input
> voltage to 1V but on the terminal the displayed voltage level keep
> varying.

I think you might be confused by the table in the TS-7200 manual that
documents the DIO header for the TS-7200. On page 26 the table has four
columns "DIO1 Pin", "Default Signal", "TS-7200", and "TS-7300". This
table is documenting what signals are available on which pins. For
example

DIO1 Pin        |Default Signal |       TS-7200 |       TS-7300
----------------+---------------+---------------+-------------------
1               |DIO_0          |               |
4               |PORTC_0        |       ADC0    |       EXT_RESET

In the example above pin1 on the DIO1 header on a TS-7200 and TS-7300
corresponds to DIO_0. Pin 4 on the TS-7200 is not PORTC_0 it is ADC0,
and on the TS-7300 pin 4 corresponds to EXT_RESET(external reset).

So if you would like to read an analog voltage using ADC channel 0 you
can use pin 4 on the DIO1 header. You can use our example code here 
http://www.embeddedarm.com/downloads/samplecode/adc_72xx.tar.gz. The
voltage on channel 0 should correspond to the voltage driving pin 4 of
the DIO1 header. You shouldn't be touching the PortC_0 registers...

//Eddie


 
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