AnsweredAssumed Answered

K10 FTM2 Set/GetOffsetTicks problems

Question asked by Markku Pulsa on Jun 26, 2012
Latest reply on Jun 28, 2012 by Processor Expert

Hi,

the problem is that SetOffsetTicks doesn't work always. Function is called about once a second.

Quite often the new value doesn't go to HW, and readback by GetOffsetTicks returns the previous CnV value.

is there any knwon issue ni HW or PE-generated code?

Does FTM2 write erroneously the earlier value from cache register?

 

Checked the generated C code and disassemble-file, seems to be OK.

CPU revision is 0N96B, errata doesn't mention this kind of problem.

 

Added test counters:

TMR_SetCount[ChannelIdx]++;

TMR_GetCount[ChannelIdx]++;

They show that Set/Get functions are called correctly.

 

~Mark

Outcomes