Question: Design an asynchronous counter using two push buttons, the microcontroller PIC 1 6 F 6 2 7 A , and a 7 - segment display

Design an asynchronous counter using two push buttons, the microcontroller PIC16F627A, and a7-segment display as shown in Figure 2. The 7-segment will display the digits 0 to 9 while the pushbuttons will provide the increment or decrement of the digits displayed such as: The push button connected to RA0 will increment the count by one every time it is presseddown meanwhile the push button connected toRA1 will decrement the count by one whenpressed 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 to0. A subroutine delay must be called just after sending your data to PORT B as shown in Figure1, this will allow the digit to be displayed for 1 second before the next digit is displayed. Alsothe delay subroutine will be provided to you and can be placed anywhere before the ENDcommand. Code must be written in a assembly

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!