View previous topic :: View next topic |
Author |
Message |
myumair
Joined: 19 Jul 2009 Posts: 11
|
PIC16F76 |
Posted: Sun Jul 19, 2009 12:33 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jul 19, 2009 12:34 pm |
|
|
CCS has a driver for the ad7705:
Quote: | c:\program files\picc\drivers\ad7705.c |
|
|
![](templates/subSilver/images/spacer.gif) |
myumair
Joined: 19 Jul 2009 Posts: 11
|
|
Posted: Sun Jul 19, 2009 3:54 pm |
|
|
What does that mean?
I'm really new 2 this field. |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
myumair
Joined: 19 Jul 2009 Posts: 11
|
|
Posted: Sun Jul 19, 2009 4:39 pm |
|
|
thnx bro for the link..
but i need 2 configure the AD7705 in spi mode with pic... is there any code available...
thnx |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jul 19, 2009 4:53 pm |
|
|
That driver communicates with the SPI interface pins of the ad7705.
Just use it. |
|
![](templates/subSilver/images/spacer.gif) |
myumair
Joined: 19 Jul 2009 Posts: 11
|
|
Posted: Sun Jul 19, 2009 4:57 pm |
|
|
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? |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jul 19, 2009 5:33 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
myumair
Joined: 19 Jul 2009 Posts: 11
|
|
Posted: Mon Jul 20, 2009 9:29 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
|
Posted: Mon Jul 20, 2009 10:16 am |
|
|
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!!!! |
|
![](templates/subSilver/images/spacer.gif) |
myumair
Joined: 19 Jul 2009 Posts: 11
|
|
Posted: Mon Jul 20, 2009 10:21 am |
|
|
alrite..
thanks for your help ..
I am really speeding up my work.. hopefully i will do my work in the given time.!
Thanks again |
|
![](templates/subSilver/images/spacer.gif) |
|