完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我正在尝试使用SPC5 Studio上的样本SPC570S发现代码的修改版本从SPC570S40E1 mcu生成时钟输出。我有一个16 MHz外部晶体连接到mcu。 选择适当的MC_CGM和MC_ME.RUN_PCn设置后,我的代码卡在__early_init,当尝试再次切换到DRUN以更新设置时。 MC_ME.IS.I_MTC永远不会切换为1。 ME_GS.S_MTRANS切换为1.但是,仅仅为了错误跟踪,我试图切换到RUN0而不是DRUN(当S_CURRENT_MODE处于DRUN时)并且即使S_MTRANS切换为1,S_CURRENT_MODE仍然保持在0x3(DRUN) 。 ME_MCTL.TARGET_MODE切换为0x4(RUN0)。 经过一些修补,我注意到我的时钟信号可能不合适;它的峰峰值介于40mV和1.12 V之间,据我在数据手册中所了解,我的时钟信号需要至少1.5 V的峰值峰值。 然而,即使我已经将CGM_AC0_SS,CGM_AC2_SS和CGM_SC_SS切换到0x0(16 MHz内部时钟),我仍然停留在同一步骤。 为什么即使我使用内部时钟,MC_ME.IS.I_MTC在尝试第二次切换到DRUN时仍会卡在0? 提前致谢。 以上来自于谷歌翻译 以下为原文 Hi all, I am trying to generate a clock output from an SPC570S40E1 mcu using modified version of the sample SPC570S discovery codes on SPC5 Studio. I have a 16 MHz external crystal connected to the mcu. After selecting appropriate MC_CGM and MC_ME.RUN_PCn settings, my code is stuck at __early_init, when trying to switch again to DRUN to update the settings. The MC_ME.IS.I_MTC is never toggled to 1. ME_GS.S_MTRANS is toggled to 1. However, just for the sake of error tracing, I tried to switch to RUN0 instead of DRUN (when S_CURRENT_MODE is at DRUN) and even though S_MTRANS is toggled to 1, S_CURRENT_MODE stays at 0x3 (DRUN). ME_MCTL.TARGET_MODE is toggled to 0x4 (RUN0). After some tinkering around, I have noticed that my clock signal might not be appropriate; it is between 40mV and 1.12 V peak to peak and as far as I've understood from the data sheet, I'd need at least 1.5 V max peaks on my clock signal. However, even though I have switched CGM_AC0_SS, CGM_AC2_SS and CGM_SC_SS to 0x0 (16 MHz internal clock) I am still stuck at the same step. Why would the MC_ME.IS.I_MTC be stuck at 0 while trying to switch to DRUN a second time even though I am using the internal clock? Thanks in advance. |
|
相关推荐
2个回答
|
|
你好亚林,
你能查一下ME_DRUN_MC吗? 它可能配置不当 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Yalin , Could you check ME_DRUN_MC ? it is maybe badly configured Best regards Erwan |
|
|
|
是的,它确实是一个配置错误的ME_DRUN_MC。谢谢!
以上来自于谷歌翻译 以下为原文 Yeah, it was indeed a badly configured ME_DRUN_MC. Thanks! |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2747 浏览 1 评论
3244 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1813 浏览 1 评论
3655 浏览 6 评论
6044 浏览 21 评论
1342浏览 4评论
204浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
359浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
449浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
276浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 22:09 , Processed in 1.922539 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号