Check the default interrupt edge....that's not what you need
INTCON2
Check the default interrupt edge....that's not what you need
INTCON2
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi mister_e,
Thanks for the time responding...I think the default is INTCON2.6 = 1 so I need to make INTCON2.6 = 0 'interupt on falling edge.
But either one for me is not working on my setup.
regards,
tacbanon
Have you tried with real hardware or your life depends on How proteus decide to work (assuming it works at all)
From your schematic you're using led instead of diode and i'm pretty confident proteus is not smart enough to understand this.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Maybe problem is in D1 - D6.
Check state of int pin when you press button...
It square on INT0 should be blue if button is pressed...
If that isn't case, replace D1 - D6 with 1N4148.
Thank you pedja089 and mister_e...I got it now.
/tacbanon
Bookmarks