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

Pic16f877 I/O & A/D

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







Pic16f877 I/O & A/D
PostPosted: Tue May 10, 2005 8:31 am     Reply with quote

Hi,

I've got an existing little project that is configured for all analog (eight A/D's) on a pic 16f877. I'd like to see if I couldn't use this existing project and add a mux to it to expand the number of A/D inputs. I've got ports A2, E1, and E2 available for the channel selects. Is it possible to set these as output I/O's where they can be swung high or low and leave the existing a/d inputs? Do I use the set_tris() function?

Thanks.
valemike
Guest







PostPosted: Tue May 10, 2005 9:25 am     Reply with quote

Yes you can use tris settings to select the 3 select pins. Set them as outputs.

However, I don't think you can get more A/D inputs with a Mux (?) since i thought a mux only works with logic levels.

There are some PICs out there with several more ADC channels if that interests you.
mkent



Joined: 09 Sep 2003
Posts: 37
Location: TN, USA

View user's profile Send private message

PostPosted: Tue May 10, 2005 11:45 am     Reply with quote

Maxium makes TTL/CMOS controlled analog mux's. Try this link
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2064
Good luck, Mick
guest
Guest







PostPosted: Tue May 10, 2005 2:46 pm     Reply with quote

Thanks for the replies.

I was thinking about using this one from Analog Devices.

http://www.analog.com/en/prod/0%2C2877%2CADG608%2C00.html
SC
Guest







I need some experiments in PIC16f877
PostPosted: Sun Feb 11, 2007 6:43 am     Reply with quote

I need help is there someone who would like to give me some sample experiments. for specific, how to display my result in a/d conversion to LCD.
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