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 bit binary counter with adjustable counting
rate. Counting rate and counting direction will be controlled via connected switches. Since this
is a bit binary counter each connected LED will represent one bit of the counter. For example,
following figure show how you should represent binary and
Two of the connected switches will be controlling rate of the counting and remaining
switch will determine direction of the counting. When switch is closed counter should be in
increasing order and when switch is open counter should be in decreasing order. Switch
and switch should control the counting rate according to table below:
For example, if switch and switch are open and switch is closed, your counter
should count down with rate of
Important Requirements
You must be able to change switch configurations during runtime, so we don't want you
to restart 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 runtime without resetting the counter.
We are using FRDM KLZ board. Please help with the implementation of the source code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
