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.

TM4C123BH6ZRB: Pulse Timing Measurement

Part Number: TM4C123BH6ZRB

Hi,

We are using TM4C123BH6ZRB Tiva controller. The Pins D11,C12,A13 and B13 have been configured as PL0/WT0CCP0, PL1/WT0CCP1,PL2/WT1CCP0, PL3/WT1CCP1 capture compare pins respectively.

In our case, apart from monitoring the timing of the +ve edge and -ve edge of the line, we also need to check if the pulse is always low or pulse always high.

In the case of pulse always low/always high scenarios, how to identify the state of the signal ? do we need to re-configure the above pins as GPIO and then check the high or low state or is there any approach in capture comparator to identify the always high / always low state?

Regards

Viswanathan M

  • Please test to confirm, but if I remember it correctly, you can simply read the GPIO status. Even if it is configured as TCCP, the register will reflect the current pin level.

    Bruno

  • I'm "equally unable" to confirm poster Bruno's suggestion - yet you may (always) "tie those pins" to (other) GPIO - quickly/easily achieving your objective...

    In support of this (added GPIO) position - should the, "Read of GPIO" (even though configured away to, "TxCCPy") succeed - clocking delays may have been introduced - inviting a, "period of uncertainty" - even if the method (appears) to otherwise succeed...

    Absent from your requirement is (any) performance spec. - which may render any such "deviation from the norm" method - (outside) your performance objective...