完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,所有,只是想张贴作为一个FYI,为任何人仍然战斗与获得RTC / RTCC正确工作在PIC32 MZ,或任何人只需要在勘误表等信息……(因为我不断地从不同的帖子在这里不同的信息,但相同的探针。EM/ErraTeNotes,我想准确地指出我所做的/经历过的使它正确运行的过程……我目前正在使用PIC32 MZEFH(PIC32 MZ2048 EFH064),在24MHz的EXT振荡器模块上运行,在200兆赫内运行内部SysCLK。正确的。(也用示波器验证,一旦我得到了SoSCO引脚设置正确。)PIC32 MZ勘误表:http://WW1.Microchip .com /下载/ En/DeVicoDC/O9000633.pdf(见RTC/次级OSC的第5页)。时钟模块I使用的是:http://www. CTCONSP.COM/WP-内容/上载/TC50。下面的代码片段是让它正常工作的设置:1)在你的初始设置中,确保这是在你的外围设置部分关闭(每个勘误表)2,确保你做以下,或者至少验证下面的位是在正确的状态…
以上来自于百度翻译 以下为原文 Hi All, Just wanted to post this as an FYI, for anyone that was still fighting with getting the RTC/RTCC working correctly on the PIC32MZ, or anyone that just needs info on the errata, etc... (as I kept coming across different tidbits of information from various posts on here, but with the same problem/errata notes, I wanted to just spell out exactly what I did/experienced to get it going correctly)... I'm currently working with the PIC32MZEFH (PIC32MZ2048EFH064), running it at 24Mhz ext oscillator module, running internal sysclk at 200Mhz. I fought with it for a little bit, before I got the setup correctly. (Also verified with an oscilloscope as well, once I got the SOSCO pin setup correctly.) PIC32MZ errata sheet: http://ww1.microchip.com/downloads/en/DeviceDoc/80000663D.pdf (see page 5 for RTC/secondary osc) The clock module I used is this one: http://www.ctscorp.com/wp-content/uploads/TC50.pdf The following code snippets are the setup that will get it working properly: 1) in your initial setup, make sure this is OFF (per errata) #pragma config FSOSCEN = OFF // secondary oscillator 2) in your peripheral setup section, make sure you do the following, or at least verify the bits below are in the correct state.. TRISCbits.TRISC14 = 1; // SOSCO input RC14 *** see PIC32MZEFH 'ERRATA' // *** for details on why SOSCO is used... /* enable the RTC clock */ RTCCONbits.RTCWREN = 1; /* rtc write enable */ RTCCONbits.RTCCLKSEL = 0b01; /* external 32.768khz clock */ RTCCONbits.ON = 1; /* turn on the clock */ RTCCONbits.RTCWREN = 0; /* rtc write disable */ Attached Image(s) |
|
相关推荐
1个回答
|
|
谢谢,这对我来说很有用,不太确定用SeaCo PIN做什么。
以上来自于百度翻译 以下为原文 Thanks, this will come in useful for me, wasn't too sure what to do with the SOSOCO pin based on the errata |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 15:42 , Processed in 1.477432 second(s), Total 77, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号