All I get is a russian web page with another link followed by page not found.
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Sun Oct 17, 2004 12:53 am
Well, any time switch 1 is closed both RB3 and RB4 will be tied to ground no matter what switch 2 is doing. Don't see the point in having switch 1 being a 2 pole switch. Of course you will need to turn on port B pullups.
Userrr
Joined: 09 Jul 2004 Posts: 40 Location: Europe
d
Posted: Sun Oct 17, 2004 4:52 pm
But how realize debounce between this stitch and how realize RB3.
I must
get interrupt for RB4,and for RB3:
How for SW1 get it?
#int_rb
void detect_rb_change() {
int current;
set_tris_b(0xFF); // all input
current=input_b(); //save old value
#if LOWTOHIGH
if ((!bit_test(last,4))&&(bit_test(current,4)))
{ } //SW2 push down
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