你好,
如果我使用命令''asm vola
tile(''nop'');
'',控制器需要多长时间才能执行此命令?
我问这个问题是因为我试图将它用作系统时钟的指示器。目前,我正在使用SPC560D发现板,我的时钟源是FMPLL,配置为48MHz的时钟。 SPC5-UDESTK和UDE Visual Platform向我显示此命令的执行时间为208ns。对于48Mhz的系统时钟,这对我来说似乎太过分了。不应该是10ns左右?
为了做另一个测试,我使用内部16Mhz RC作为系统时钟。奇怪的是,这个命令的执行时间完全相同。
最好的祝福,
帕特里克
以上来自于谷歌翻译
以下为原文
Hello,
If I am using the command ''asm volatile (''nop'');
'', how long should the controller need to execute this command?
I ask this question because I have tried to use it as an indicator for the system clock. Currently, I am using the SPC560D discovery board and my clock source is the FMPLL, configured for a clock of 48MHz. The SPC5-UDESTK and UDE Visual Platform shows me an execution time of 208ns for this command. This seems too much for me for a system clock of 48Mhz. Shouldn´t it be around 10ns?
To do another test, I used the internal 16Mhz RC as system clock. The strange thing is, that the execution time for this command is exactly the same.
Best regards,
Patrik
0