Z zika1212 New Member Mar 24, 2004 #1 i'm using PIC16f84a and i want to write this code from C language into assembly ?? there should be a pin to work as a switch; up=0 and down=1... debounce: while (switch==up); for (delay=0;(switch==down)&&(delay<20 msec);delay++); if (delay<20 msec) goto debounce
i'm using PIC16f84a and i want to write this code from C language into assembly ?? there should be a pin to work as a switch; up=0 and down=1... debounce: while (switch==up); for (delay=0;(switch==down)&&(delay<20 msec);delay++); if (delay<20 msec) goto debounce
Nigel Goodwin Super Moderator Most Helpful Member Mar 24, 2004 #2 Have a look at my PIC assembler tutorials!.