嗨,我使用的是Virtex-7 FPGA。我们通过专用时钟引脚等成功设置了多个时钟输入。然而,当我使用标准I / O引脚作为时钟输入时,我无法获得synplify-rpo 2014.09将输入识别为“声明”时钟。我总是得到一个推断时钟,这打破了门控时钟树构建下来。任何帮助赞赏。西蒙
2020-07-30 08:30
我使用PIC24EP512GU810,我想使用SOSC作为RTCC时钟源,SOSC连接到外部的32.768 kHz晶体。我根据参考手册设置RTCC寄存器,但RTCC不运行,时间值不变。我下载官方RTCC示例代码,它有同样的问题。我错过了什么吗?谢谢你的回复。下面是我的代码 以上来自于百度翻译 以下为原文 I use the pic24ep512gu810, I want use sosc as rtcc clock source,sosc is connected to the external 32.768kHZ crystal. I according to the reference manual to set rtcc registers,but rtcc not running, the time value never change.I download the official rtcc sample code and it has same question.Did I miss something? I will appreciate your reply. following is my code PLLFBD = 58; // M=60 CLKDIVbits.PLLPOST = 0; // N1=2 CLKDIVbits.PLLPRE = 0; // N2=2 OSCTUN = 0; // Tune FRC oscillator, if FRC is used // Disable Watch Dog Timer RCONbits.SWDTEN = 0; // Clock switching to incorporate PLL __builtin_write_OSCCONH( 0x03 ); // Initiate Clock Switch to Primary // Oscillator(XT) with PLL (NOSC=0b011) __builtin_write_OSCCONL( OSCCON || 0x01 ); // Start clock switching while( OSCCONbits.COSC != 0b011 ); // Wait for Clock switch to occur // Wait for PLL to lock while( OSCCONbits.LOCK != 1 ) { }; EnableSecOsc(); // Enable the 32.768kHz Secondary oscillator RtccInit(); // Initialise the RTCC modulevoid RtccInit( void ){ RTCCUnlock(); //unlock Timer Registers RTCCOff(); //disable the RTCC peripheral /* Configure the alarm settings*/// ALCFGRPTbits.CHIME = 0; //no rolloever of the repeat count// ALCFGRPTbits.AMASK = 0; //alarm mask configuration bits// ALCFGRPTbits.ARPT = 0; //alarm repeat counter value bits RCFGCALbits.RTCOE = 1; //enable RTCC output ANSELBbits.ANSB3 = 0; //RTCC pin pad conected to Alarm /* Load the initial values to the RTCC value registers*/ RCFGCALbits.RTCPTR = 3; //point to year register RTCVAL = 0x0010; //year RTCVAL = 0x0311; //Month & Day RTCVAL = 0x0414; //WkDay & Hour RTCVAL = 0x3710; //Min & Sec RCFGCALbits.CAL = 0x0000; //No calibration// ALCFGRPTbits.ALRMPTR = 2; //Point to Month/Day register// ALRMVAL = 0x0311; //load month & day// ALRMVAL = 0x0414; //load weekday & hour// ALRMVAL = 0x3719; //load minute & seconds ALCFGRPTbits.ALRMEN = 0; //enable the alarm// ALCFGRPTbits.ARPT = 1;// ALCFGRPTbits.AMASK = 6; RTCCOn(); //enable RTCC peripheral RTCCLock(); //lock the RTCC value registers /* Enable the RTCC interrupt*/ _RTCIF = 0; //clear the RTCC interrupt flag _RTCIP = 1; _RTCIE = 0; //enable the RTCC interrupt}
2019-03-22 07:14
OSCCON2bits.IOLOCK = 0; //Unlock PPS-Lite RPOR8_9bits.RPO9R = 0x4; //SDO1 -> RP9 RPINR8_9bits.SDI1R = 0x6
2019-05-23 13:25
(和TMP-Buff[0),\rPo: %01D\R,ID);我得到:TMP-Buff[0 ] CHAR 0x9D6\R;0xD TMP-Buff[1 ] CHAR 0x9D7'B';0x42
2018-08-27 15:17
Mac上传到RPO的项目,当我试图继续在Windows上的工作并对MCC配置、问题集做一些修改时,我把克隆到我的Windows PC.上。MCC输出表示:手动差异/合并需要,但实际上所有的行都
2018-12-21 15:41
(*STR2WORD)!=‘0’){同时(!)TxReg=*St2Read;*St2Read +;} RPINR18BITS。U1RXR=9;RPO4BITS。RP8R=2;U1BRG=103
2019-04-12 09:09
由于使用PLIB不再被包含在XC8中,所以我使用了MPLAB V3.15和XC8 V.1.35。这是通过从xc8下载页面安装plib解决的。我有一个工作项目,使用pic18f46j50,初始化时使用Init函数,其开始位置低于.pps,并且没有错误。我已经创建了一个新项目,带有pic18f25j50,它出错并且找不到pps?我已经将include更改为下面:-但是当我构建时它表示找不到plib文件夹中的pconfig.h。我已经将pps.h和pconfig.h复制到我的include文件夹中,但是当它构建时,在第一个PPS调用时出错,说:-Init.c:20:error:(192)未定义的标识符“IN_PIN_PPS”。(908)退出状态=12件事,1-我不明白一个项目如何构建包含而另一个需要在具有相同设置的同一台计算机上并且如果我将新项目更改为pic18f46j50,则会产生相同的错误?2 -我应该用什么来代替PSPYVSS的PIC18F25J50,我不能从PPS.H文件中找到它。
2019-09-25 11:30
)和第 5位(RPO)置位或清零。这多少给编程带来了一些麻烦。对于上述的单片机,它的位指令操作通常限制在存储体 0区间(00~7FH)。 数据的传送和逻辑运算基本上都得通过工作寄存器w(相当于 5l
2015-07-17 13:33
静电保护原理和设计
2020-12-18 07:18
AVR与51/PIC单片机对比分析哪个好?选择单片机原则有哪些?
2021-09-23 06:57