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

pic 24 external interupts [solved ]

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



Joined: 16 Jan 2014
Posts: 24

View user's profile Send private message

pic 24 external interupts [solved ]
PostPosted: Wed Jul 29, 2015 7:17 am     Reply with quote

hi everyone,

i am using pcd 4.120 with pic24fj256gb210.

i am wanting to use external interupts 0,1,2,3,4

i have no problem with external interupts 2,3,4 and the

pin_select int2=pin_xx
pin_select int3=pin_xx
pin_select int4=pin_xx

functions as it should.

but i keep getting

Invalid Pre-Processor directive Invalid Pin ID
Invalid Pre-Processor directive Invalid Pin

for the lines that contain

#pin_select int0=pin_xx
#pin_select int1=pin_xx

has anyone got any idea how i work around this - i cant figure a way round this one.


Last edited by smee on Wed Jul 29, 2015 8:25 am; edited 1 time in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19369

View user's profile Send private message

PostPosted: Wed Jul 29, 2015 8:19 am     Reply with quote

Read the data sheet.

INT0 is hardwired to pin D0. Not a selectable peripheral.

INT1 should work, I'd suspect a compiler issue. 4.120, is a relatively early compiler for this chip.
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