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.

Microseconds since startup.

Other Parts Discussed in Thread: CC3200, CC3200SDK

Hello, 

I am writing my own protocols in transceiver mode on the cc3200. Since this protocol uses some of the implementation from 802.11 I need to be able to keep some sort of 64 bit count of microseconds since my system has started.

If I can find a way to current clock ticks I can do the math to determine microseconds even if it is stored in a 32 bit value. Is there a way to read raw clock ticks?

I also noticed that the message header in transceiver mode gives me a time value of when the message was receieved. I can't really use that until I can find the time value that it was based off of. Is there a way to read the current time from the transceiver?

Thanks for your help

Shawn

  • Hi Shawn,

    Depending on what your application needs to do, you could consider using the RTC or just a general purpose timer for this. If those will not work, it is possible to read clock ticks from the SysTick timer. Take a look at the Peripheral Driver Library User's Guide in the SDK for details on accessing the SysTick counter (CC3200SDK_1.2.0/cc3200-sdk/docs/CC3200-Peripheral_Driver_Libraray_User's_Guide.chm).

    Note that it is a 24-bit counter and runs off of 80MHz clock. For additional information check out the CC3200 Technical Reference Manual.

    Best Regards,

    Ben

    (Edit: You should also take a look at the sl_DevGet() SimpleLink API for reading the time maintained by the NWP)

  • Hello Benjamin,

    Thanks for the info. I haven't had a chance to look at your information but I think you answered my questions accurately.

    Thanks for your help

    Shawn