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

18F46K22 - unknown SFR SSPCON/SSPSTAT

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



Joined: 09 Oct 2008
Posts: 15

View user's profile Send private message

18F46K22 - unknown SFR SSPCON/SSPSTAT
PostPosted: Mon Jul 02, 2012 9:19 am     Reply with quote

I've had the following 2 lines in my code since the year dot


Code:
#byte SSPCON = GETENV("SFR:SSPCON")
#byte SSPSTAT = GETENV("SFR:SSPSTAT")



Since v4.132 the compiler complains these are not valid names. Just tried V4.134 same issue, V4.130 is OK.

Have the names secretly changed or is this a bug in the compiler?
gaugeguy



Joined: 05 Apr 2011
Posts: 303

View user's profile Send private message

18F46K22 - unknown SFR SSPCON/SSPSTAT
PostPosted: Mon Jul 02, 2012 9:55 am     Reply with quote

This chip has 2 MSSP and 3 control registers. You need to specifiy SSPxCONy depending on which you want to access.
picnic



Joined: 09 Oct 2008
Posts: 15

View user's profile Send private message

PostPosted: Mon Jul 02, 2012 10:28 am     Reply with quote

Thanks for that, probably a good job the compiler complains then as moving from the PIC16 to 18 probably means the register accesses being made in the code should be reviewed. Shame it allowed it to start with Wink
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