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
Posted: Fri Feb 27, 2004 3:09 am
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.
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