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

2nd SPI port problem

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



Joined: 16 Sep 2005
Posts: 138
Location: The Netherlands

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

2nd SPI port problem
PostPosted: Fri Jan 26, 2007 6:57 am     Reply with quote

Hello,

I have a problem getting the 2nd SPI port to work on my project. I want to use the hardware spi functions.

I use:
PIC18F6722
PCH version: 3.222

I searched this forum before asking this question but I could only find that I should use a setup_spi2() function, but when I use this, my compiler says: undifined identifier setup_spi2.

Any help is very appreciated!

Cheers, Jos
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 26, 2007 2:32 pm     Reply with quote

Quote:

I have a problem getting the 2nd SPI port to work on my project.
I want to use the hardware spi functions.
I use:
PIC18F6722
PCH version: 3.222

I don't have PCH vs. 3.222. The closest I have is vs. 3.230, so I can't
really test your version.

If your version doesn't have support for the 2nd SPI port, you could
write your own functions. I've posted some tips on how to do this:
http://www.ccsinfo.com/forum/viewtopic.php?t=22705

Ttelmah has posted some macros at the end of this thread that may
be helpful:
http://www.ccsinfo.com/forum/viewtopic.php?t=22984
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