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.

calc period through gio

Other Parts Discussed in Thread: HALCOGEN, TMS5700332

Hi,


I am using the TMS5700332, ccs6 and Halcogen 4.1.

I know when using HET you can use capGetSignal to get the period and duty cycle of an input signal.  Is there an equivalent function that can be used on an input signal coming through GIOA?

  • Hi David,

    Yes, there is a way. You need to enable interrupt generation for any edge on the concerned GIO pin. Then you can use the "counter capture" feature of the RTI to time-stamp each edge. The ISR can read this time-stamp from the RTI registers and thus calculate the duty cycle and period.

    Obviously this limits the rate at which you get input edges on the GIO pin. You need to have cleared the GIO interrupt flag and also read out the captured time-stamp from the RTI before the next edge (interrupt) occurs.

    Regards, Sunil