Question: Task: You are required to build a binary counter using PIC16F877A. The counter should count in the range 0 15. You thus need 4 pins
Task: You are required to build a binary counter using PIC16F877A. The counter should count in the range 0 15. You thus need 4 pins to do that. The counter should have as well 2 push buttons attached to it. Well call them P1 and P2 respectively. Initially, the counter is incremented every 1 second. If P1 is clicked, the counter is decremented every 1 second. Clicking P1 further will alternate the counting between incrementing and decrementing modes. The second push button (P2) changes the delay period between each count. When clicked for the first time, it increases the delay period to 2 seconds. Clicking P2 for the second time will increase the delay period to 3 seconds. Clicking P2 for the third time will make the delay period 0.1 second. Clicking P2 for the fourth time will increase the delay period to 0.5 second. Finally, clicking P2 for the fifth time will bring the delay period to its default value of 1 second and so on. Things to do Use MPLAB to write your software and compile it (use PIC assembly). Build and simulate your complete design using Proteus software to make sure it behaves as expected.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
