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.

LAUNCHCC3220MODASF: 1 msec accurate timing

Part Number: LAUNCHCC3220MODASF

I need to do some performance timing for my application.  Is there a free-running timer of any sort available that I can use to get an elapsed time value at different parts of my application?  I need something that is accurate to about 1 msec.  Or do I need to set up a timer and implement a counter inside the ISR?  I'm using FreeRTOS if it matters, and my code is based on the "network terminal" example code.

Thanks...

Brian

  • Hi Brian,

    Yes, this should be available to you.  Taking a look at the CC3220 TRM, section 9.3.2.1 outlines the option for periodic timer mode (auto reload--timer starts counting again).  In this section table 9-4 also specifies the max time that can be measured with a 16 bit timer according to various prescale settings.  This is configurable for sub 1 ms accuracy.