Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions