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 Pin Assignment Problems with PIC Wizard

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



Joined: 24 Sep 2009
Posts: 1
Location: Staffordshire

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

SPI Pin Assignment Problems with PIC Wizard
PostPosted: Thu Jan 29, 2015 3:47 am     Reply with quote

As of version 5.040 I have noticed a problem with the pin assignment when using the wizard to set up initial hardware.

On some parts it seems pin_select does not seem to work at all
i.e. on PIC18F97J94
Code:

#pin_select SCK2=PIN_A1
#pin_select SDI2=PIN_A2

fails with Invalid Pre-Processor Directive Invalid Pin ID

and on others, as in my case PIC18F26J11:
Code:

#pin_select SCK2=PIN_C1
#pin_select SDI2=PIN_C2
#pin_select SD02=PIN_C3
#pin_select SS2OUT=PIN_None

Look carefully at line 3 SDO2. It is actually generated as SD(Zero)2, and not SD(Oh)2.
Also PIN_None is not valid for any pin, and should not be generated by the wizard, so just delete it as it is not required.
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