View unanswered posts | View active topics It is currently Fri Sep 21, 2018 9:31 pm



Reply to topic  [ 1 post ] 
 Trouble with Analog Input on DSerial Edge 
Author Message

Joined: Tue Apr 14, 2009 11:33 pm
Posts: 5
Location: Irvine, CA
Hello,

I am having difficulty with analog input on the DSerial Edge.

The project I am currently working on requires two analog input values; however, I seem to be unable to set up the DSerial properly to be able to read two analog input values.

I would like to use P2.3 and P2.5

If I initialize just one of those pins in my application, then that one pin will work.

However, if I try to initialize both pins as analog input, only P2.3 works (regardless of if I initialize P2.3 before P2.5 or vice versa).

: (

I am assuming it's possible to have two analog inputs on the DSerial Edge.

***ADDITION: After looking over the data sheet for the MCU on the DSerial Edge again, I get the impression that there can be only one analog input, because there is only one ADC. Can someone corroborate this assumption?

Thanks for your time.

***ADDITION 2: Problem solved. I just alternated setting one of the pins to ANALOG_INPUT and the other pin to INPUT, so that they could take turns using the ADC. I also had to use swiDelay() to give the switching enough time to process.


Sun May 24, 2009 2:16 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads