Question: Assignment Details In this assignment, you will implement a 4 - bit binary counter with adjustable counting rate. Counting rate and counting direction will be

Assignment Details
In this assignment, you will implement a 4-bit binary counter with adjustable counting
rate. Counting rate and counting direction will be controlled via connected switches. Since this
is a 4-bit binary counter each connected LED will represent one bit of the counter. For example,
following figure show how you should represent binary 0010 and 1011.
Two of the connected switches will be controlling rate of the counting and remaining
switch will determine direction of the counting. When switch 1 is closed counter should be in
increasing order and when switch 1 is open counter should be in decreasing order. Switch 2
and switch 3 should control the counting rate according to table below:
For example, if switch 1 and switch 3 are open and switch 2 is closed, your counter
should count down with rate of 500ms.
Important Requirements
You must be able to change switch configurations during run-time, so we don't want you
to re-start your program for every configuration.
You must not reset your counter when order of the counting changed during the run time.
In other words, when the order is changed, you must start counting from the last number
before order is changed.
You must be able to change counting rate in the run-time without resetting the counter.
We are using FRDM KL25Z board. Please help with the implementation of the source code.
Assignment Details In this assignment, you will

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 Programming Questions!