CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

only AN7 analog on PIC18F4550 ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Gio



Joined: 22 Sep 2010
Posts: 3

View user's profile Send private message

only AN7 analog on PIC18F4550 ?
PostPosted: Thu Feb 10, 2011 5:09 am     Reply with quote

Hello !

In my application with 18f4550, I need a ADC channel and only pin RE2 is free.

AN0 to AN6 are already in use as digital, input or output and connected to other IC on the board.

Can I set only AN7 in analog mode ? I think not....

Or, can I use SETUP_ADC_PORTS (AN0_TO_AN7) for the time necessary to read the ADC value after changing the TRIS directions and then reset the baseline?

I run into problems?


Thanks in advance,
Gio
temtronic



Joined: 01 Jul 2010
Posts: 9169
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Feb 10, 2011 6:39 am     Reply with quote

Learn by doing ! You cannot harm the PIC. If the die of the 18F4550 is similar to the 16F88 cut a small program, download into a test PIC on a breadboard and run it for 24hrs.
Don't bother with a 'simulator' ONLY test in the real world !
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Feb 10, 2011 9:04 am     Reply with quote

If you put digital voltage into an analog pin you won't hurt anything. As long as your digital lines don't mind having the analog input for a short time you should be OK.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group