完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,
刚刚开始在新的地方工作,我们正在使用STC58NE84xx。对我来说这是一个新的部分,我从来没有像这样复杂地使用微控制器。很简单:我正在尝试验证系统时钟频率。我认为它可以配置的最大值是180 MHz。我一直在阅读有关PLL等的许多文档,但是如你所知......它非常复杂。我想我想把时钟连接到外部引脚,以便我可以在示波器上查看它。似乎这可能是可能的。或者,是否有一个HAL功能只能找出所有配置寄存器的状态并返回系统时钟频率?任何帮助,将不胜感激。提前致谢。 #system-clock #oscillator#spc58 以上来自于谷歌翻译 以下为原文 Hi, Just started working at a new place and we are using a STC58NE84xx. It's a new part for me, I've never used a micro-controller as complex as this. Very simple: I'm trying to verify the system clock frequency. I think the maximum that it can configured for is 180 MHz. I've been reading many of the documents regarding the PLLs, etc but as you know ... it's pretty complicated. I'm thinking I'd like to get the clock to an external pin so that I can look at it on the scope. It seems like that may be possible. Or, is there a HAL function that will just figure out the state of all the configuration registers and return the system clock frequency? Any help would be appreciated. Thanks in advance. #system-clock #oscillator #spc58 |
|
相关推荐
2个回答
|
|
谢谢Erwan,
我真的不知道GitHub,所以我不得不花一些时间在那里闲逛。我是否必须注册一个帐户才能获得该代码?好吧,我会搞清楚的。我做了一些测试,试图间接地计算出时钟速度,我执行了一堆NOP并切换了GPIO并且(在减去开销之后)认为每个NOP需要大约18ns。我看看NOP(实际上是一个OR 0,0,0)应该花多少个时钟周期,但我还是找不到。我找到了大量的汇编指令清单,但没有提到每条指令需要多长时间。 我会继续研究这个。 麦克风 以上来自于谷歌翻译 以下为原文 Thanks Erwan, I don't really know about GitHub so I'll have to spend some time poking around in there. Do I have to sign up for an account to get that code out? Well, I'll figure it out. I did some testing to try to figure out the clock speed indirectly I executed a bunch of NOPs and toggled a GPIO and (after I subtracted the overhead) figured that each NOP takes about 18ns. I looked to see how many clock cycles a NOP (which is really an OR 0,0,0) should take but I have not been able to find that. I found a huge listing of assembly instructions but no mention of how long each instruction takes. I'll keep researching this. Mike |
|
|
|
二万
咦?这看起来像某种类型的操作系统调用。这对我有什么帮助? 如果我希望PLL0为400 MHz且PLL1为180 MHz且输入时钟为20 MHz,那么PLLDIG寄存器的设置应该是什么? 麦克风 以上来自于谷歌翻译 以下为原文 Erwan Huh? That looks like some type of operating system call. How will that help me? If I want PLL0 to be 400 MHz and PLL1 to be 180 MHz and my input clock is 20 MHz what should the settings be for the PLLDIG registers? Mike |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2742 浏览 1 评论
3244 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1813 浏览 1 评论
3653 浏览 6 评论
6044 浏览 21 评论
1342浏览 4评论
203浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
356浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
446浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
275浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 19:13 , Processed in 1.172746 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号