ارجوا المساعدة فى كتابة برنامج بلغة الاسمبلى وهذا شرح للبرنامج
counter up/down using PIC16F84......
start:
IF count =10; yes{( set RB6 = 1)
change: IF button1 Pressed; yes{decrement count;
goto start ;}}
No {go to start;}
No {(clear RB6 =0)
IF button2 pressed ;yes{increment count;
delay: set RB7
IF button3 pressed;yes{clear RB7
go to start;}
No{go to delay;}
}
No {go to change;}
===============================
توصيل الدائرة
decrement button1 connect to (RB2) = push-button used to decrement count
increment button2 connect to (RB1) = push-button used to increment counter, & set RB7=1
ENTRY button3 connect to (RB3) = push-button used to clear RB7 =0
( RB1,2,3 of portB are input , others output)