Question: Question 1 : Software implemented Input Capture a ) Assume the TM 4 C 1 2 3 does not have Input Capture hardware or Interrupts.

Question 1: Software implemented Input Capture
a) Assume the TM4C123 does not have Input Capture hardware or Interrupts. Write a C program to save TIMER1As value(i.e. TIMER1_TAR_R) when a positive edge event occurs on PortD, pin4. Note/Hint: you may want to complete part c first.
Assume:
GPIO has already been configured properly for you
The Timer has already been configured into Periodic Mode for you
int main(void)
{
unsigned int rising_edge_time;
// YOUR CODE HERE
}
b) Describe two disadvantages of your software-implemented input capture program has compared to using Input Capture hardware with Interrupts

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!