Dear Champs,
We knew that we could use the counting clock function to get the running clock cycle.
Our customer raise their voice for this function.
They try to use different method to implement their project.
One is to use the function within their own library file and another is to create project with C source file.
However they get different counting result between two method.
When using within-library method , the counting cycle will be larger than the method with C source file directly.
The assembly is absolutely the same. I calculate the cycle number that it should be 14 cycle but the results i got are different.
Some instruction will be larger than the cycle number in the datasheet ( plus 2 cycle).
Is there anything wrong when we want to operate this evaluation ? or something we miss??
BR
Brian