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.

TMS320C6748: Timer2_64 bit timer issue

Part Number: TMS320C6748


Hi Team,

Configures the Timer2-bit 64-bit timer for counting-only functionality. When using Timer2, the lower 32-bits count to a value of 0xFF (close to 0xFFFFFFFF) before continuing to count beyond 0xFFFFFFFF. Theoretically, the upper bits of the carry 1 to upper 32-bit counter will change to 0x00000001. However, the two 32-bit values obtained have the upper bits of 0 and the lower bits of a normal number. That is, the carry of the low bit is not successful.

The results are as follows, every 18.8s or so, when a carry is required, the carry fails, and the upper bit is 0 which doesn't become a 1. The function used to get the count value is get, which is returned to an unsigned longlong, with the high bit defining two variables. 

The timer configuration code is as follows, the functions used are in the library, and the red macro definition is modified to 03: 

After each carry of the low bit, the first read of the high bit value is wrong and the second (only two consecutive times) is true. TimerCounterGet executes a total of two times. Could you please help check this case? Thanks.

Best Regards,

Cherry