完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我的程序只与外围总线时钟(PBCLK)或参考时钟(RefCLK)一起工作,或者两者同时是必需的?我不需要两者一样,例如SPI可以提供RIFCK 1或PBCK 2。还是同时有不同的划分?另一件事是,勘误表说:“参考模块不能划分大于100 MHz的输入频率。因此,如果SYSCLK的工作频率大于100MHz,则不能划分SYSCLK。“因此,如果我想要一个SYSCLK>100MHz,我必须使用PBCLK而不是RefCLK?”我不太明白整件事,欢迎一个好建议!谢谢您!
以上来自于百度翻译 以下为原文 Hi, my a programm working with only Peripheral Bus Clock (PBCLK) or Reference Clock (RefCLK), or are both necessary at the same time? I don't get necessity of both as for example SPI can be supplied with either RefCLK 1 or PBCLK 2. Or at the same time with different divisions? Another thing is, that errata sheet says: "The Reference Module cannot divide input frequencies greater than 100 MHz. Therefore, SYSCLK cannot be divided if the SYSCLK operates at frequencies greater than 100 MHz." So if i want a SYSCLK>100MHz I must use PBCLK instead of RefCLK? I don't quite understand the whole thing. A good advice is welcome! Thank you! |
|
相关推荐
6个回答
|
|
|
MigChIP.WiKiTo.Copic 32上有很多很棒的东西。一个用于PIC32 MX,另一个用于PIC32 MZ。这些电子表格有助于得到一个对所有事情都有效的时钟设置。
以上来自于百度翻译 以下为原文 Lots of great stuff on microchip.wikidot.com PIC32 Clock Towards the bottom of the page are two speadsheets. One for PIC32MX another for PIC32MZ. Those spreadsheets help in getting a clock setup that works for everything. |
|
|
|
|
|
我认为,如果您阅读了PIC32MZ数据表8-1,它可能会帮助您更好地理解特定外围模块的时钟输入的选择。以SPI为例,它可以使用PBCK2或RIFCKO1。如果使用PBCK2,那么SPI必须使用与PMP、I2C和UART相同的时钟源。现在假设您希望SPI由于任何原因使用完全不同的时钟速率,那么您必须配置并使用REFCLKO1。希望这是有意义的。
以上来自于百度翻译 以下为原文 I think if you read the PIC32MZ datasheet Table 8-1, it may help you understand better the choice of clock input for a particular peripheral module. Take SPI for example, it can use either PBCLK2 or REFCLKO1. If you use PBCLK2, then the SPI would have to use the same clock source as PMP, I2C and UART. Now suppose you want your SPI to use an entirely different clock rate for whatever reason, then you'll have to configure and use REFCLKO1. Hope this makes sense. |
|
|
|
|
|
|
|
|
|
|
|
但是,对于这个解决方案,仍然有一个问题:如果我同时激活了PBCLK和RefCLK,那么SPI模块如何选择使用PBCLK或RefCLK?也许RIFCK在激活时具有更高的优先级?
以上来自于百度翻译 以下为原文 But with this solution, there is still one question: How does the SPI module choses to use either PBCLK or RefCLK if i activated both? Maybe the REFCLK has higher priority when activated? |
|
|
|
|
|
你说的“激活”是什么意思?答案很简单。您可以通过SPIxCON中的MCLKSEL位告诉SPI外围设备使用哪个输入。参见数据表中的图19-1。
以上来自于百度翻译 以下为原文 What do you mean "activated". The answer is simple. You tell the SPI peripheral which input to use via the MCLKSEL bit in SPIxCON. See Figure 19-1 in the datasheet. |
|
|
|
|
|
就像天平从我的眼睛里掉下来一样……就在我前面。另外一些我希望是正确的,也许能帮助其他人的东西:SPI模块的一个例子。SPI模块的主时钟可以是PBCK或RIFCK。通过MCLKSEL位选择。如果SPI是主的,波特率发生器是唯一相关的。如果SPI工作在从模式,时钟只由主机提供,并且PBCLK/REFCLK设置应该与对应的模块(这里是SPI从机)无关。
以上来自于百度翻译 以下为原文 It's like scales fell from my eyes....it was right in front of me. Something in addition which I hope is correct and maybe helps others: An example with the SPI module. Master clock for the SPI module can be either PBCLK or REFCLK. Selectable via the MCLKSEL bit. This is only relevant if SPI is master; for the baud rate generator. If SPI operates in slave mode the clock is provided only by master and the PBCLK/REFCLK setting should be irrelevant to the corresponding module (here SPI slave). Thanks to all, sometime it can be really simple |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
501 浏览 0 评论
5808 浏览 9 评论
2350 浏览 8 评论
2237 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3543 浏览 3 评论
1155浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1119浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
887浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
501浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 05:07 , Processed in 1.709437 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1328