完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
如果我使用命令''asm volatile(''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 |
|
相关推荐
1个回答
|
|
你好Patrik,
我不确定它可能是一个相关的信息,使用: SPC5-UDESTK是USB / JTAG令牌。 要做到这一点,我更喜欢使用ETM。 (价格不一样) 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Patrik , i am not sure that it could be a relevant information by using : SPC5-UDESTK is USB/JTAG token. to do this ..often , i prefer use a ETM. (not the same price) Best Regards Erwan |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2896 浏览 1 评论
3285 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1866 浏览 1 评论
3718 浏览 6 评论
6131 浏览 21 评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
415浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
515浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
342浏览 2评论
使用STM32F407VET6的USB2.0功能,发现ctl后芯片无数据返回,是什么原因可能导致的呢?
248浏览 2评论
用STM32G431开发工程,1.50版本的Package包文件无法输出项目工程
357浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-3-6 03:02 , Processed in 1.231487 second(s), Total 44, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191