Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 04:33:10 04:33


Login with username, password and session length


Pages: [1]
Print
Author Topic: Errors on CCS 5.077 compiler and PIC24FJ128GC006  (Read 5706 times)
0 Members and 1 Guest are viewing this topic.
MrGG
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 4
-Receive: 17


« on: June 17, 2018, 04:13:02 04:13 »

Has anyone know why I have this error for pin RB6, although the pin is listed in the data sheet as CN24?

enable_interrupts(INTR_CN_PIN | PIN_B6);

Error#27  Expression must evaluate to a constant  :: Not a CN pin

All other pins seem to work.
thanks
Logged
HackAndCrack
Senior Member
****
Offline Offline

Posts: 294

Thank You
-Given: 175
-Receive: 802


« Reply #1 on: July 26, 2018, 12:24:15 12:24 »

Has anyone know why I have this error for pin RB6, although the pin is listed in the data sheet as CN24?

enable_interrupts(INTR_CN_PIN | PIN_B6);

Error#27  Expression must evaluate to a constant  :: Not a CN pin

All other pins seem to work.
thanks

Zip and post your latest CCS PICC project files so that we can check it before replying.
Logged
giappolo
Active Member
***
Offline Offline

Posts: 147

Thank You
-Given: 1623
-Receive: 601


« Reply #2 on: August 24, 2018, 04:51:58 16:51 »

I don't know if this is useful but include file of micro says:
 #define INTR_CN_PIN              0x8000  // or in a PIN_xx constant
Perhaps you cannot use both
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC