完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
同时,利用“双边缘比较”模式和最新MCC版本3.23.2,成功地创建了具有MCP1、SCCP2和SCCP3的PWMS。现在我想使用RIF0作为时钟输入。这不管用。看起来,参考时钟生成器和MCCP1、SCCP2和SCCP3之间没有连接。为了检查硬件,我已经初始化了REF时钟到相对低的12MHz频率,这与我的SysCLK相同。我已经启用了RoF0输出在引脚CVREF上看到它。我还使用了RC0作为CLC1的输入,我也可以在另一个引脚上看到它。这项工作。MCCP1、SCCP2和SCCP3在12MHz的SysCK中工作良好,但不以RoF0作为输入。请查找附上的例子。有人能帮忙吗?
以上来自于百度翻译 以下为原文 I meanwhile could sucessfully create PWMs with MCCP1, SCCP2 and SCCP3 by using "Dual Edge Compare" Mode and latest MCC Version 3.26.2. Now I would like to use REF0 as clock input. This doesn't work. It looks like that there is no connection between the Reference Clock Generator and MCCP1, SCCP2 and SCCP3. To check the hardware I have initialized the REF-Clock to a relativly low frequency of 12MHz which is the same as my SYSCLK. I have enabled the REF0 output to see it on Pin CVREF. I also have used REF0 as Input for CLC1 that I also can see it on another Pin. THis works. MCCP1, SCCP2 and SCCP3 are working well with 12MHz SYSCLK but not with REF0 as input. Please find the example attached. Can anyone help? Attachment(s) SEM32_PIC32MM_PWM_REF0.zip (61.79 KB) - downloaded 63 times |
|
相关推荐
1个回答
|
|
通过微软的支持,我得到了一个工作代码。然后我发现,你仍然可以使用简单的设置从MCC,当你认为你不应该启用MCC在轻松安装。稍后在main中执行:空main(空隙){//初始化设备StaseRealAlgIsIe();McCP1yCopraySistar();而(1){}}我已经为McCP1安装了一个完整的小项目,用于高分辨率PWM.RegardsKlaus。
以上来自于百度翻译 以下为原文 Through Microsoft Support I have got a working code. I have then found out that you still can use Easy Setup from MCC when you consider that you should not enable MCC in Easy Setup. Just do it later in main: void main(void) { // initialize the device SYSTEM_Initialize(); MCCP1_COMPARE_Start(); while (1) { } } I have attached the complete small project with 96MHz clock for the MCCP1 for high resolution PWM. Regards Klaus Attachment(s) SEM32_PIC32MM_PWM_REF0.zip (61.79 KB) - downloaded 57 times |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
776浏览 1评论
665浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
594浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
675浏览 0评论
575浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 23:30 , Processed in 1.271522 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号