Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 24th March 2004, 06:28 PM   #1
Default how can i convert this code from C language into assembly ??

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
zika1212 is offline  
Old 24th March 2004, 11:56 PM   #2
Default

Have a look at my PIC assembler tutorials!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Tags
assembly, code, convert, language

Thread Tools
Display Modes




All times are GMT. The time now is 01:14 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker