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.

TMS570 TRM discrepancy and RTI question

1. It looks like there is a typo in TRM (spnu489a) on page 1581 (21.2.1 Counter Operation). Should FRTIFRCx=FRTICLK/232  when when RTICPUCx = 0 instead of the formula presented there?

2. What would be the tCOMPx when RTIUDCPy=0? The formula on page 1582 suggest that it would be 0.

Thank you,

Eugene

  • Hi Eugen,

    Ans 1 :- Yes it looks like a typo error, i have updated the module owner regarding this and if confirmed it will be rectified in the next revision

    Ans 2 :-  The first interrupt will be generated when Free running counter(FR0 or FR1) matches the RTI Compare Regsiter, in order to generate next/another interrupt the Free running counter should overflow and match the same RTI compare Register.     

                           Tcompx  = TRTICLK * (RTIUCPx+1) * RTIUDCP              when RTIUCPx  != 0 and RTIUDCP != 0

                           Tcompx  = TRTICLK * (232) * (232 + RTICOMPx)               when RTIUCPx  = 0 and RTIUDCP =  0

    Regards

    Hari

  • Hari,

    Doesn't  your second formula only apply to first interrupt interval? All consecutive interrupts will be periodic at Tcompx=TRTICLK*223*232.

    Thanks,

    Eugene


  • Hi Eugene,

    Yes you are right, The Point I was trying stress was the consecutive interrupts are generated when the Free running counter matches the RTI Compare Register,

    Please check the modified equation below.

    when RTIUCPx  = 0 and RTIUDCP =  0

    First Interrupt occurs at Tcompx = TRTICLK * (232) *  RTICOMPx           

    Consecutive Interrupt occurs at  Tcompx = TRTICLK * (232) *  (232) [The interrupt is generated at the point when FRCx = RTICOMPx]

    Let me know your observations

    Regards

    Hari