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

A/D conversion help

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



Joined: 28 Oct 2006
Posts: 4
Location: india

View user's profile Send private message Send e-mail Yahoo Messenger

A/D conversion help
PostPosted: Mon Oct 30, 2006 5:24 am     Reply with quote

Hi,

i am using (pic18f4550) AN0 as input (analog signal) and sending out the data on port B.
I don't know how to make portb as digital output, though i have made it output port using TRIS but don't know is it digital or analog.

another thing , is it necessary to connect VREF+ and VREF- pins, if i keep them floating, would i get output ???(any direct way in code ??)
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Mon Oct 30, 2006 5:31 am     Reply with quote

What do you mean by "sending out the data on port B"? Are you trying to map the 8bit analog value read on AN0 to Port B? (Explain more about what you'd like to do and others will provide all sorts of ideas of how to do what you'd like.

No, you don't need to connect the Vref pins if you use the internal reference.

Post your code so others can help you.

John
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