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

push button

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



Joined: 07 Sep 2003
Posts: 56

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

push button
PostPosted: Fri Feb 27, 2004 2:47 am     Reply with quote

hi all
I want to implement a push button with pic 16f630 using the interrupt-on-change on pin a2
I tryed to do so but the interrupt rutine didnt trigger
how do i use it?
chava
Ttelmah
Guest







Re: push button
PostPosted: Fri Feb 27, 2004 3:09 am     Reply with quote

chava wrote:
hi all
I want to implement a push button with pic 16f630 using the interrupt-on-change on pin a2
I tryed to do so but the interrupt rutine didnt trigger
how do i use it?
chava

General comment with 'interrupt on change', is that you must read the port, before setting the interrupt (and also you must read the port inside the interrupt handler).
So try this (do a read on the port before setting the interrupt), and see if it then works.

Best Wishes
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