Actions

EmSys

Difference between revisions of "FreeRTOS Exercise Lab22"

From EdWiki

m
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
== FreeRTOS Exercise Lab22 ==
+
== FreeRTOS Exercise Lab22 (Using Counting Semaphore) ==
 +
Use Counting Semaphore to count number of edge counts on TIMER3A.
 +
 
 
# Program TIMER3A to capture rising edges in edge-count (interrupt driven) mode.
 
# Program TIMER3A to capture rising edges in edge-count (interrupt driven) mode.
 
#: Timer programming [[EmSys:TM4C123 Timer Programming | How to ...]]
 
#: Timer programming [[EmSys:TM4C123 Timer Programming | How to ...]]

Revision as of 10:37, 19 August 2019

FreeRTOS Exercise Lab22 (Using Counting Semaphore)

Use Counting Semaphore to count number of edge counts on TIMER3A.

  1. Program TIMER3A to capture rising edges in edge-count (interrupt driven) mode.
    Timer programming How to ...
  2. Create Task 1 as a continuous processing task, and Task 2 (interrupt handler task) as the task to which interrupt processing is deferred.
    In Task 1, display "Task 1 is Running."
  3. Display "Number of Input Edges = nnnn" in the Task 2


Note:

  1. The input pin of Timer3A is PB2.
  2. Square wave signal should be fed to PB2 pin.
  3. Make sure it is 0 to 3.3V peak-to-peak.



Prev.gif
Home.gif