This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1290NCPDT: Input Edge Time Mode Tivaware does not appear to expose?

Part Number: TM4C1290NCPDT

Overview: two signals that are connected to the A and B channel to the timer to capture the difference in time between the two.

Goal is to use the 32 bit timer and on the edge generate an interrupt to gather the GPTMT(a or b)R and once both A and B triggered get difference.

The only other interrupt will be generated when the counter rolls over and i this case clear the edge time captured. 

The question is how to set this up in the construct of Tivaware.  there appears to be no get function for GPTMTAR and GPTMTBR?

Any insight is appreciated so the hardware can be used correctly for the task.

  • Hi Joshua,

      Have you tried the below API? There is also an example in the latest TivaWare library that demonstrates the same - using two channels to measure the difference between the two signal edges.  

  • After further investigation it does appear that we can not use the 32bit time for the edge time capture.

    The example mentioned above is correct usage and the logic just needs to change slightly for this particular use case as it is triggered on either edge and if the edges are far apart then difference is to not be calculated.

    Thanks for the support.