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.

CC2541: evaluate function execution time?

Other Parts Discussed in Thread: CC2541, CC2540

Hello,

I want to evaluate the execution time of a function that I wrote for CC2541. I found that in IAR we can have both the cycles and execution time of CC2541 in Data log window. However, I don't know the default clock of CC2540 in IAR, and how we can set this clock.

For example: Data log window shows that the cycles is: 19020 (cycles). And the corresponding execution time is: 380.400 (us). So, I'd like to know that:

1> How to convert from cycles to execution time in IAR for 8051?

2> What is the default clock in IAR for 8051? (refer above example)

3> Is there anyway to change the default clock?

Thanks and Regards.