![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #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 | |
| |
| | #2 |
|
Have a look at my PIC assembler tutorials!.
| |
| |
|
| Thread Tools | |
| Display Modes | |
| |