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 CCS Technical Support

18f4520 an5 set for adc but i dont use logic input an0 toan4

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



Joined: 27 Apr 2012
Posts: 15
Location: TURKEY

View user's profile Send private message

18f4520 an5 set for adc but i dont use logic input an0 toan4
PostPosted: Mon Oct 01, 2012 2:04 am     Reply with quote

Hi, I use pic 18f4520 and I have to use an5 (RE0) for adc. But when I set the an5 for adc, I don't use an0 to an4 (a0,a1,a2,a3) for logic input(button control).
Code:

set_tris_a(0xff); //buttons
set_tris_e(0x01);// analog input
setup_adc_ports(AN0_TO_AN5|VSS_VDD);

How can do?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 01, 2012 4:32 pm     Reply with quote

This thread discusses the problem:
http://www.ccsinfo.com/forum/viewtopic.php?t=43337
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