Question: Project:Asynchronous up / down counter Description: Design an asynchronous counter using two push buttons, the microcontroller PIC 1 6 F 6 2 7 A ,

Project:Asynchronous up/down counter
Description:
Design an asynchronous counter using two push buttons, the microcontroller PIC16F627A, and a 7-segment display as shown in Figure 2. The 7-segment will display the digits 0 to 9 while the push buttons will provide the increment or decrement of the digits displayed such as:
The push button connected to RAO will increment the count by one every time it is pressed down meanwhile the push button connected toRA1 will decrement the count by one when pressed down.
When the simulation starts, the count must be 0.
When counting up starting from 0, if the count reaches 9 the next count must reset to 0.
Similarly, when counting down starting from 0, the next count must be 9 then decreases to 0.
A subroutine delay must be called just after sending your data to PORT B as shown in Figure 1, this will allow the digit to be displayed for 1 second before the next digit is displayed. Also the delay subroutine will be provided to you and can be placed anywhere before the "END" command.
Your program must be written in assembly language of PIC16F627A, and the simulation will be run on PROTEUS 7(ISIS). A video of the simulation has been provided for further description.
movwf call
06h; PORT B
delay_1s
Figure 1
 Project:Asynchronous up/down counter Description: Design an asynchronous counter using two push

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!