完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
当TMR3与CPR2相匹配时,在CpP2中比较困难地用CCP2产生中断。在PIC18F45 50中有T3CON寄存器位T3CCP2:T3CCP1,用于选择哪一个计时器(1或3)与CCPR(1或2)进行比较。但是我在45 K50找不到这个或任何等价物。我一定有盲点之类的东西,有人能帮忙吗?
以上来自于百度翻译 以下为原文 I have hard time generating interrupts with CCP2 in compare mode when TMR3 matched CCPR2. In PIC18F4550 there is T3CON register bits T3CCP2:T3CCP1 which are used to select which timer (1 or 3) is compared againse which CCPR (1 or 2). But I can't find this or anything equivalent on 45K50. I must have a blind spot or something, can someone please help? |
|
相关推荐
7个回答
|
|
嗨,为什么不使用MCC插件来生成代码?
以上来自于百度翻译 以下为原文 Hi, Why not use MCC plugin to generate the code ;=) Regards |
|
|
|
这是在15.1的数据表中共党的第一页:
以上来自于百度翻译 以下为原文 It's right on the first page of the CCP section of the data sheet in 15.1: |
|
|
|
哦,谢谢,我已经超过几十次了,没有发现它!@风险MCC插件是什么?
以上来自于百度翻译 以下为原文 @jtemples, thanks, I've been over dozens of times and not spotted it! @RISK what is the MCC plugin? |
|
|
|
“也许你不应该了解他们”(丹尼尔斯,CIT)
以上来自于百度翻译 以下为原文 "Maybe you should not get to know about them" (cit. Daniels) |
|
|
|
我不知道这个笑话:“也许你不应该了解他们”(CIT.丹尼尔斯),但是我已经通过谷歌找到了MCC插件,也就是MPLABX插件。我不使用MPLAB,但SDCC,所以我很熟悉…看看它,我可以看到它可能是有用的。在某种程度上,我将生成的配置代码与我的手杖进行了比较,证明了我的OK。结果是,我使用的是中断优先级,没有正确设置Time3和CCP2。
以上来自于百度翻译 以下为原文 @CinziaG Sorry I don't get this joke: "Maybe you should not get to know about them" (cit. Daniels) But I've found MCC Plugin via google i.e. it is MPLABX plugin. I'm not using MPLAB but SDCC so I was familiar with that... had a look at it and I can see it could be useful. And in a way it was, I compared the generated config code against my hand crafter and proved that mine was ok. Turned out the problem was that I am using interrupt priorities and had not set them up properly for TIMER3 nor CCP2. |
|
|
|
好的,然后…在《星际迷航》中,阿切尔被带到了未来,他看到了一本关于“罗穆兰星球帝国”的书,指挥官丹尼尔斯告诉他“也许你不该知道”,这意味着他未来的事情,最好不要篡改:在MCC的情况下,我总是反对它。我的观点…并不是因为这会把你带到未来:D
以上来自于百度翻译 以下为原文 ok then And... in Star Trek Enterprise, as Archer is brought to the future, he sees a book about "Romulan Star Empire" and commander Daniels tells him "maybe you should not know about them", meaning that stuff is in his future and better not tamper with that :) In the case of MCC, I am always against of it, that's my point... and not because that would take you to the future :D |
|
|
|
CinziaGAh,好吧,LOL。对这些MCC不太感兴趣,尤其是他们(可能是必要的)带这么多朋友来参加聚会。如果他们刚刚生成了Reg作业,他们会更喜欢它们。但随着发电机的发展,MCC似乎并不太糟糕…我将把它作为最后的手段;
以上来自于百度翻译 以下为原文 @CinziaG Ah, ok, LOL. Not very keen on these MCCs, especially as they (perhaps by necessity) bring so many friends to the party. Would like them more if they just generated the reg assignments. But as generators go, MCC does not seem to be too bad ... I'll keep it as the last resort ;) |
|
|
|
只有小组成员才能发言,加入小组>>
5166 浏览 9 评论
2000 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3174 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
734浏览 1评论
615浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
505浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
631浏览 0评论
528浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 11:21 , Processed in 1.339882 second(s), Total 91, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号