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

SPI issue

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



Joined: 15 Feb 2007
Posts: 4

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

SPI issue
PostPosted: Tue Nov 04, 2008 12:01 am     Reply with quote

hi

I am facing problem with SPI for the chip PIC16F876A.
(There is no problem with other chips I am using PIC18F4320 and PIC18F87J10).

For #use SPI directive, It gives the error "Library in use not found SPI"

and for spi_xfer() library function it gives the error "undefined identifier spi_xfer"

I am using CCS PCM compiler version V3.212.

Does anybody know how to settle this problem? Kindly help.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 04, 2008 12:15 am     Reply with quote

Quote:

For #use SPI directive, It gives the error "Library in use not found SPI"
I am using CCS PCM compiler version V3.212.

It didn't exist in that version. Use these functions instead:
Code:

setup_spi()
spi_write()
spi_read()
etc.
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