Hello, I am using CC26X2R1 Launch Pad. I want to use timing in nanoseconds, can anyone tell me how can I do that please?
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.
Hello, I am using CC26X2R1 Launch Pad. I want to use timing in nanoseconds, can anyone tell me how can I do that please?
Hi Shivendra,
You would have to use SysTick for nanosecond resolution, although we recommend Timestamp or Clock SYS/BIOS modules which have microsecond resolution:
https://dev.ti.com/tirex/explore/content/simplelink_cc13x2_26x2_sdk_4_30_00_54/docs/driverlib_cc13xx_cc26xx/cc13x2_cc26x2/driverlib/systick_8h.html
https://dev.ti.com/tirex/content/simplelink_cc13x2_26x2_sdk_4_30_00_54/docs/tirtos/sysbios/docs/cdoc/index.html
Regards,
Ryan
Is there any example code is there to understand this better. I just want to toggle my LEDs in nanoseconds instead of seconds as mentioned in empty example.
You are not going to be capable of toggling LEDs anywhere near a nanosecond interval resolution due to the device constraints involved with a 48 MHz main clock. Consider the PWM TI Driver, referring to the pwmled2 example, with a resolution of microseconds as this will be the best you can accomplish.
Regards,
Ryan