Part Number: TM4C1292NCPDT
Tool/software: TI-RTOS
Hi,
How TI RTOS clock tick time is derived for TIVA C series micro controller? I am planning to use 120 MHz clock frequency for my micro controller TM4C1292NCPDT.
Regards
Bala
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.
Part Number: TM4C1292NCPDT
Tool/software: TI-RTOS
Hi,
How TI RTOS clock tick time is derived for TIVA C series micro controller? I am planning to use 120 MHz clock frequency for my micro controller TM4C1292NCPDT.
Regards
Bala
Hi Bala,
SYS/BIOS (the kernel for TI-RTOS) has a Boot module for TivaC. The boot code runs early on (before main()) and sets up the system clock frequency. The default frequency is 120MHz for this device, so you shouldn't need to change any of the Boot configuration. (You can check the SYS/BIOS cdoc under ti.catalog.arm.cortexm4.tiva.ce.Boot for configuration, if you're intersted.) The Boot code for setting the system clock frequency is pretty much identical to the TivaWare SysCtlClockFreqSet() function.
Best regards,
Janet
Hi Janet,
Thanks for your reply.
i have attached the snippet below. i want to measure clock cycle required for piece of code. for that i am using Event count in CCS debugging tool.
if i understand correctly, below statement is true.
Event count * 8.33ns (processor operating frequency 120MHz) =Total time required for piece of code.
Please clarify.
Regards
Bala
Hi Bala,
That looks correct to me: cycle_count / (120 000 000) = time spent, given that each instruction takes one CPU cycle.
Best regards,
Janet