View previous topic :: View next topic |
Author |
Message |
spilz
Joined: 30 Jan 2012 Posts: 220
|
V5.050 : pic18F27J53 #PIN_SELECT INT1 issue ?? |
Posted: Thu Oct 15, 2015 9:37 am |
|
|
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
|
|
Posted: Thu Oct 15, 2015 10:11 am |
|
|
send this to ccs and use 49 |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Thu Oct 15, 2015 12:21 pm |
|
|
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: 19552
|
|
Posted: Thu Oct 22, 2015 3:02 pm |
|
|
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: 19552
|
|
Posted: Mon Oct 26, 2015 10:08 am |
|
|
Just to confirm, this appears to be fixed on 5.051. |
|
|
|