Question: 1. (15) Write a small C program for the Tiva Launchpad that: (a) Configures Port D as all digital inputs (b) Should generate a flag
1. (15) Write a small C program for the Tiva Launchpad that:
(a) Configures Port D as all digital inputs
(b) Should generate a flag when any kind of change appears on the pins (rising or falling edges)
(c) Counts the number of pins on Port D that currently have a 1 as the input
(d) Saves that value to a variable called numOnes
(e) Performs these operations forever (except the initializations; these should only be performed once)
You may use either the DRA method or the TivaWare functions, whichever makes more sense to you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
