I want asm program about counter up/down using PIC16F84,
start:
=======================================================
circuit....
(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)
The flow diagram of the program in file....
start:
IF count =10; yes{ set RB6 ;
change: IF button1 Pressed;yes{decrement count;
goto start ;}}
No {go to start;}
No {go to start;}
No {clear RB6 ;
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;}
end;
No {go to change;}
end;
=======================================================
circuit....
(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)
The flow diagram of the program in file....
Last edited: