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

V5.050 : pic18F27J53 #PIN_SELECT INT1 issue ??

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



Joined: 30 Jan 2012
Posts: 218

View user's profile Send private message

V5.050 : pic18F27J53 #PIN_SELECT INT1 issue ??
PostPosted: Thu Oct 15, 2015 9:37 am     Reply with quote

hello,

I just update to V5.050, and I have an issue when trying to specify pin for interrupt on PIC18F27J53. ( I didn't have this issue on V5.049)

Code:
#include <18F27J53.h>

#OPT 1

#device ADC=16
#use delay(clock=4 MHz,crystal=4 MHz)
#fuses HSPLL,NOPLLEN,PLL1,NOCPUDIV,NOXINST,STVREN,NOWDT,SOSC_DIG

#PIN_SELECT U2RX=pin_b4
#PIN_SELECT INT1=PIN_B1
#PIN_SELECT INT2=PIN_B2


and I get :

Code:
*** Error 7 "TrackerGPS27J53 simcom.c" Line 50(12,24): Invalid Pre-Processor directive  Invalid Pin: RP4 can not be assigned to INT1
*** Error 7 "TrackerGPS27J53 simcom.c" Line 51(12,24): Invalid Pre-Processor directive  Invalid Pin: RP5 can not be assigned to INT2


any idea to solve this ?
Did I something wrong ?

Thanks for your help
drolleman



Joined: 03 Feb 2011
Posts: 116

View user's profile Send private message

PostPosted: Thu Oct 15, 2015 10:11 am     Reply with quote

send this to ccs and use 49
Ttelmah



Joined: 11 Mar 2010
Posts: 19477

View user's profile Send private message

PostPosted: Thu Oct 15, 2015 12:21 pm     Reply with quote

It works on PIC24's, but seems to have problems on most PIC18's. Just tried a 26J50, with known working code. It's failing on all the input pins. So selects TX2 OK, but not RX2. Similarly on the SPI, SDO2, and SCK2 are OK, but SDI2 fails.....

Ugh.
Ttelmah



Joined: 11 Mar 2010
Posts: 19477

View user's profile Send private message

PostPosted: Thu Oct 22, 2015 3:02 pm     Reply with quote

This is meant to be fixed in 5.051, just released.

Will download and test in a couple of days (rather busy...).
Ttelmah



Joined: 11 Mar 2010
Posts: 19477

View user's profile Send private message

PostPosted: Mon Oct 26, 2015 10:08 am     Reply with quote

Just to confirm, this appears to be fixed on 5.051. Very Happy
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