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

PIC16F76

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



Joined: 19 Jul 2009
Posts: 11

View user's profile Send private message

PIC16F76
PostPosted: Sun Jul 19, 2009 12:33 am     Reply with quote

Hi, I'm using the pic 16f76 which I need to use for configuring ad7705 sigma delta.
I'm very new to this field. I will be using C for coding.
If anyone can help!
Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 12:34 pm     Reply with quote

CCS has a driver for the ad7705:
Quote:
c:\program files\picc\drivers\ad7705.c
myumair



Joined: 19 Jul 2009
Posts: 11

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 3:54 pm     Reply with quote

What does that mean?
I'm really new 2 this field.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 4:04 pm     Reply with quote

http://en.wikipedia.org/wiki/Device_driver
myumair



Joined: 19 Jul 2009
Posts: 11

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 4:39 pm     Reply with quote

thnx bro for the link..
but i need 2 configure the AD7705 in spi mode with pic... is there any code available...
thnx
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 4:53 pm     Reply with quote

That driver communicates with the SPI interface pins of the ad7705.
Just use it.
myumair



Joined: 19 Jul 2009
Posts: 11

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 4:57 pm     Reply with quote

I'm really sorry that I'm asking stupid questions.. as I really don't know much about this field!! but still if you can tell me do I have 2 write the driver for adc? or its built in?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 19, 2009 5:33 pm     Reply with quote

The software "driver" is the ad7705.c program.

I don't think you know enough about electronics or C programming
to do this. I can't help any more.
myumair



Joined: 19 Jul 2009
Posts: 11

View user's profile Send private message

PostPosted: Mon Jul 20, 2009 9:29 am     Reply with quote

ok bro.. dnt tell me anything but one thing..
when i hv 2 configure t he adc on spi mode..can it be done with a pic which is solded on m y circuit..?
thanks.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Jul 20, 2009 10:16 am     Reply with quote

OK, a few pointers before I answer your questions:
1. this is NOT a cell phone and you are not texting. To get the best help
and responses PLEASE spell everything out and type in normal sentences
(also lose the bro :-).
2. You being so new and starting with almost no information it is going to
take a while to get up to speed. This board is not geared to "starting
someone from the ground up"

To answer your questions:
The driver is a section of code that is used to interface/communicate with
the device (in this case the AD7705). For example: if data is being sent
to the AD7705 you would use the read_adc_value(channel)
function to get the ADC data from the AD7705. You will still have to
write the main part of the C code to actually set up and read the ADC
when required.

If you have the CCS compiler there are a lot of examples in the
PICC\Examples directory. If you do not have the CCS C compiler you
need to decide what compiler you are going to use and work with that.

C is a pretty difficult programming language for a beginner. I think a
good place to start is a PIC Basic compiler like GCBasic
http://www.best-microcontroller-projects.com/pic-basic-gcbasic-ezine4.html

If you decide on using C, unfortunately this forum is not a good place to
learn the fundamentals of C programming. This forum is actually
intended to help folks debug their code after it has been written. You
need to either take some courses or purchase one of the beginner PIC
kits from CCS or somewhere to get you started.
_________________
Google and Forum Search are some of your best tools!!!!
myumair



Joined: 19 Jul 2009
Posts: 11

View user's profile Send private message

PostPosted: Mon Jul 20, 2009 10:21 am     Reply with quote

alrite..
thanks for your help ..
I am really speeding up my work.. hopefully i will do my work in the given time.!
Thanks again
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