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

How can i use CN for interruption (button)

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







How can i use CN for interruption (button)
PostPosted: Mon Jan 26, 2009 2:34 pm     Reply with quote

hello,

Can someone help me ? I'm trying to do a program for explorer 16.
I'm using the 4 buttons of the board. Can I generate an interruption when a button is pressed ?

The buttons are connected to CN change notification.


please help me Rolling Eyes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 26, 2009 6:36 pm     Reply with quote

1. Tell us what PIC you're using.

2. Tell us what model of the Explorer 16 board you are using. There
are at least 3 different models. See this page:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2519&param=en025321
kimo127



Joined: 27 Jan 2009
Posts: 2

View user's profile Send private message Send e-mail

PostPosted: Wed Jan 28, 2009 1:27 pm     Reply with quote

thanks for your quick response

I use the Pic 24Fj128GA010 and the explorer 16 board 100 pins
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jan 28, 2009 2:50 pm     Reply with quote

Three of the switches go to "CN" input pins on the PIC24FJ128GA010.
So you could use the "Change Notification" interrupt to detect a keypress.
Quote:

S3: RD6 CN15
S6: RD7 CN16
S5: RA7 -
S4: RD13 CN19

Unfortunately, I can't help you any more on this because I don't have the
PCD compiler.
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