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

4 Hardware SPIs: how can I use them?

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



Joined: 13 May 2013
Posts: 51
Location: Arizona

View user's profile Send private message Visit poster's website

4 Hardware SPIs: how can I use them?
PostPosted: Mon May 13, 2013 3:36 pm     Reply with quote

Version 4.141, looking through manual and forums.
Haven't found example on how to use all 4 Hardware SPIs
on a PIC24EP512GP806.

Functions only provide; spi & spi2. where's 3 & 4 ?

Suggestions? Confused
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Mon May 13, 2013 3:53 pm     Reply with quote

They may be supported but not documented yet. Try using spi3 in place of spi2 and see if the compiler throws an error or not.

If the compiler does accept references to SPI 3 & 4, more importantly, check the .lst file to ensure that the compiler is properly setting up the registers. Just because the compiler accepts references to the hardware doesn't mean that it's bug free.

Sorry to be the bearer of bad news, but you may be forced to set up the registers yourself. CCS frequently will add cursory support to new peripherals but the support isn't 100% working for quite some time.
avatarengineer



Joined: 13 May 2013
Posts: 51
Location: Arizona

View user's profile Send private message Visit poster's website

4 Hardware SPIs: ...
PostPosted: Mon May 13, 2013 6:06 pm     Reply with quote

Thanks for the advice;

The setup3, setup4 compile without error. Very Happy

Without documentation, this requires "faith" that CCS got it working.

I'd love to see someone's example of it working with 4 peripherals
so I could sleep better at night.
temtronic



Joined: 01 Jul 2010
Posts: 9215
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon May 13, 2013 6:29 pm     Reply with quote

Frankly I don't know HOW CCS can keep up with the number of PICs coming out these days. Way too many series and 'variations on a theme'.
I'm quite happy 'struggling' with the 'new' 18F46K22 as it seems it fill 99% of my needs though I have to admit it's overkill for the Cougar taillight project. <2% of code space used, 1/2 pins free, no internal perhipherals used...sigh...it's just too easy these days!

When you get your 4 channel SPI up and running, toss your code into the code library so you can help others.

cheers
jay
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