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

Using SPI of a PIC

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








Using SPI of a PIC
PostPosted: Mon Jul 09, 2007 11:47 am     Reply with quote

Hi,
I use the PIC 18F2480 and the SPI because of using an external ADC (AD7790).
Now I want to know how I "say" my PIC that it has to use only the external ADC alternativly how I can read from the SPI input?

Thanks!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jul 09, 2007 12:05 pm     Reply with quote

It requires a software driver. If you have the CCS compiler, look in
this directory for examples of drivers:
Quote:
c:\Program Files\Picc\Drivers


In that directory, one example of an ADC chip driver file is:
Quote:
AD7705.c


In the case of the AD7790, there isn't a driver file, and one would
have to be written.

It's my advice that you choose an ADC chip that already has a driver
available. Look either in the CCS drivers directory, or search the
internet for a driver by using Google. For someone who is a newbie
to micro-controllers, it's much easier if you use an existing driver,
instead of trying to write a new driver.
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