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

CCS vs datasheet

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








CCS vs datasheet
PostPosted: Sat Jan 05, 2008 9:07 am     Reply with quote

Hi im have problems with connecting spi on my 18F4550 because the datasheet shows that SCK=RB1, SDI=RB0 and SDO=RC7, but when i choose the hardware spi function in picwizard(in CCS compiler) it shows SPI_CLK=C3, SPI_DI=C4 and SPI_D0=C5 i dont know what to believe, or if im completely wrong??
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Jan 05, 2008 9:43 am     Reply with quote

The datasheet is always leading. The pins suggested by the CCS compiler are the pin numbers as used on most other PIC processors but are wrong for the PIC18F4550.
Maybe be this has been fixed in a newer compiler version. What is the version number of your compiler?
Guest








PostPosted: Sat Jan 05, 2008 10:20 am     Reply with quote

im using 4.057
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Jan 05, 2008 11:26 am     Reply with quote

I don't have the latest compiler versions but maybe someone else can check the correct pin numbers in the PIC wizard?
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