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/
|