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

SPI for PIC24F04KA200 under 4.099

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



Joined: 13 Jul 2005
Posts: 25
Location: Maryland

View user's profile Send private message

SPI for PIC24F04KA200 under 4.099
PostPosted: Sat Mar 20, 2010 5:18 pm     Reply with quote

Hi all,

I'm using the PIC24F04KA200 device and have the 4.099 compiler. setup_spi() broke during compile, which was odd - that had worked on other MCUs... Then I noticed that the header file for this MCU lacked the usual block:
Code:
// SPI Functions: SETUP_SPI, SPI_WRITE, SPI_READ, SPI_DATA_IN
// Constants used in SETUP_SPI() are:
...

Is there no SPI support for this chip? There is onboard HW for this... I'm using a lab computer that's had this compiler since October, I doubt I can get an update for it. Since setup_spi() breaks, I can't even look at the assembly listing to see how the compiler set stuff up.

For now i'm defining it in inline assembly, but the whole point of compilers is not to have to do that... Or am I missing something?
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