完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
HII是从DSPIC开始的。我使用MPLAB 8.46(C30),我想使用MICROtiCK II,但我不知道如何用MPLAB版本来做。有人能帮助我吗?????
以上来自于百度翻译 以下为原文 Hi I´m beginning with dsPIC. I use the MPLAB 8.46 (C30) and I'd like to use Microstick II but I don't know how to do that with this MPLAB version. Somebody can help me please???? |
|
相关推荐
16个回答
|
|
下载MPLAB 8.92,然后,如果你的板有一个“足够老”的PIC,你可以留在C30,否则你可能需要XC16。
以上来自于百度翻译 以下为原文 Download MPLAB 8.92, to begin with. Then, if your board has a "old enough" PIC, you can stay with C30, otherwise you may need XC16 |
|
|
|
好了,现在安装的MPLAB 9.2和MICROSTICK II不在菜单中。
以上来自于百度翻译 以下为原文 Ok, the MPLAB 9.2 in now installed and microstick II is not in menu. |
|
|
|
你把它连接到电脑上了吗?安装MPLAB时是否安装MICROSTICK II支持?我最近使用MPLAB 8.92和MPLAB-X和MICROSTICK II没有任何问题。
以上来自于百度翻译 以下为原文 Hi Do you have it connected to the PC? Did you install the Microstick II support when installing MPLAB? I have recently used both MPLAB 8.92 and MPLAB-X with the Microstick II without any issues. Best regards Jorge |
|
|
|
是的,它连接到PC机。在哪里可以找到支持,MPLAB安装上什么也没有出现。
以上来自于百度翻译 以下为原文 Yes, it's connected to the PC and. Where may I find the support, nothing was appear on MPLAB installation. Best regards Ricardo |
|
|
|
现在,我已经找到了如何使用MICROSTICK II了。我现在的问题是下面的(小)程序不起作用。在监视窗口中,我看到了PATA的内容,并且没有发生任何事情:p3fj128MC802。h / gt;/ /定义EL MODEO DEL DSPIC//SY包括:p33 FJ128GP802。和fspHePosiTr.OFF(GSSYOFF和GWRPYOFF);γFoSSEL(IESOOXOFF和FNSCOSPLIPLL);安斯诺亚闪光灯(虚空){TrISA=0x000;//组态〉一个科摩撒利达语。拉塔比。拉塔0=1;//恩森多斯LOS位0 Y 1德尔阿托塔比特。拉塔1=1;}请你帮帮我。李嘉图。
以上来自于百度翻译 以下为原文 Now, I've found how to use the microstick II. My problem now is that the following (small) program doesn't work. In the watch windows I see the porta contents and nothing happens: #include //#include // CONFIGURACION DE BITS _FBS ( RBS_NO_RAM & BSS_NO_FLASH & BWRP_WRPROTECT_OFF ); _FSS ( RSS_NO_RAM & SSS_NO_FLASH & SWRP_WRPROTECT_OFF ); _FGS ( GSS_OFF & GWRP_OFF ); _FOSCSEL ( IESO_OFF & FNOSC_PRIPLL ); _FOSC ( FCKSM_CSDCMD & IOL1WAY_OFF & OSCIOFNC_OFF & POSCMD_XT ); _FPOR ( ALTI2C_OFF & FPWRT_PWR128 ); _FICD ( JTAGEN_OFF & ICS_PGD1 ); // PROGRAMA PRINCIPAL int main(void){ TRISA=0X0000; // Configura el puerto A como salida. LATAbits.LATA0=1; //Encendemos los bits 0 y 1 del puerto A LATAbits.LATA1=1; } May you help me please. Ricardo |
|
|
|
永远不要让你的主()函数退出。要么在主端(例如,(1))放置一个无休止的循环,要么用一个无休止的循环来包围活动代码,这样它就不断地运行。“没有发生”是一个非常糟糕的错误报告。更好的是:“我希望看到这种情况发生,但是相反。我明白了。”
以上来自于百度翻译 以下为原文 Never, EVER allow your main() function to exit. Either put an endless loop at the end of main (e.g. while(1);) or surround the active code with an endless loop so it keeps running over and over. "Nothing happens" is a very bad fault report. Better would be: "I expect to see THIS to happen, but instead I see THIS." |
|
|
|
|
|
|
|
得到论坛由于ISUSE所以我的答复是“请显示您的当前代码”
以上来自于百度翻译 以下为原文 got PM due to forum isues so my reply is "please show your current code" |
|
|
|
P33 FJ128MC802。H/GT;/ /定义EL MODEO DEL DSPIC//SO包括:P33 FJ128GP802。包含和SEL(IESoOXOFF和FNSCOSPLIPLL);YOFSC(FCKSMIMSCSDCMD和IOL1WayYOFF & OSCIOFNCKOFF和POSCMDXXT);YFWDT(FWDTENGYOXT);YFPOR(ALTI2CYOFF和FPWRTHPWR128);GfPSPOFFOMO SalIDA。(1){LATABITs。LATA0=1;// EnEndoMOS LOS位0 Y 1 Delto Palto to alATABITITS。
以上来自于百度翻译 以下为原文 #include //#include // CONFIGURACION DE BITS _FBS ( RBS_NO_RAM & BSS_NO_FLASH & BWRP_WRPROTECT_OFF ); _FSS ( RSS_NO_RAM & SSS_NO_FLASH & SWRP_WRPROTECT_OFF ); _FGS ( GSS_OFF & GWRP_OFF ); _FOSCSEL ( IESO_OFF & FNOSC_PRIPLL ); _FOSC ( FCKSM_CSDCMD & IOL1WAY_OFF & OSCIOFNC_OFF & POSCMD_XT ); _FWDT (FWDTEN_OFF); _FPOR ( ALTI2C_OFF & FPWRT_PWR128 ); _FICD ( JTAGEN_OFF & ICS_PGD1 ); // PROGRAMA PRINCIPAL int main(void){ TRISA=0X0000; // Configura el puerto A como salida. while(1) { LATAbits.LATA0=1; //Encendemos los bits 0 y 1 del puerto A LATAbits.LATA1=1; } } |
|
|
|
你有水晶吗?您可能还需要设置Prescaler(虽然现在不需要)
以上来自于百度翻译 以下为原文 Do you have a Crystal? You may also want to set Prescaler (though not needed now) |
|
|
|
我在MPLAB SIM中调试程序,所以我认为我还不需要水晶。我附上了我正在使用的调试窗口的屏幕截图。
以上来自于百度翻译 以下为原文 I'm debugging the program in MPLAB SIM so I think I don't need a crystal yet. I've attached a screen shoot of the debugging window I'm using. Attached Image(s) |
|
|
|
在表窗口中应该有LATA,而不是PARTA。PORTA显示所有零,因为您已经将PIN放在模拟模式中。请在PIC数据表中读取“11.3配置模拟端口引脚”。
以上来自于百度翻译 以下为原文 You should have LATA in the watch window, not PORTA. PORTA is showing all zeroes because you have left the pins in analog mode. Read "11.3 Configuring Analog Port Pins" in the PIC datasheet. |
|
|
|
|
|
|
|
嗨,MPLAB V8是6岁。对于C30也是如此。我强烈建议您移动到MPLAB X和XC16.MPLAB X有许多附加的特性和一个更好的编辑器。很容易将一个项目(如果需要的话)从C30迁移到XC16。
以上来自于百度翻译 以下为原文 Hi, MPLAB v8 is 6 years old. Same is true for C30. I strongly suggest you move to MPLAB X and XC16. MPLAB X has many additional features and a much better editor. It is very easy to migrate a project (if needed) from C30 to XC16. Regards |
|
|
|
你的代码有问题,使它不工作:1 - DM3300 13-2(MICROSTIK II)没有外部晶体振荡器2 - PORTA位RA0和RA1默认为模拟模式,该代码修复这些问题,并将系统时钟速度更改为77.385兆赫正确:
以上来自于百度翻译 以下为原文 There are issues with your code that keep it from working: 1 - The DM330013-2 (Microstik II) does not have an external crystal oscillator 2 - PORTA bits RA0 and RA1 default to analog mode This code fixes these issues and changes the system clock speed to 77.385 MHz correctly:#include //#include //#include // CONFIGURACION DE BITS _FBS ( RBS_NO_RAM & BSS_NO_FLASH & BWRP_WRPROTECT_OFF ); _FSS ( RSS_NO_RAM & SSS_NO_FLASH & SWRP_WRPROTECT_OFF ); _FGS ( GSS_OFF & GWRP_OFF ); _FOSCSEL ( IESO_OFF & FNOSC_FRC ); /* startup with FRC as system clock */ _FOSC ( FCKSM_CSECMD & IOL1WAY_OFF & OSCIOFNC_OFF & POSCMD_XT ); /* allow code to change clock speed */ _FWDT (FWDTEN_OFF); _FPOR ( ALTI2C_OFF & FPWRT_PWR128 ); _FICD ( JTAGEN_OFF & ICS_PGD1 ); // PROGRAMA PRINCIPAL int main(void){ unsigned int Timeout; /* select FRC */ __builtin_write_OSCCONH(0b000); /* start clock switch */ __builtin_write_OSCCONL(OSCCON | 1); /* wait for oscillator switch to complete */ for(Timeout=50000; Timeout; Timeout--) { if(!OSCCONbits.OSWEN) break; } /* * Setup PLL with internal Fast RC oscillator (7.37MHz) * This requires that we start using the FRC oscillator. * Configure the PLL register. * Then switch to the PLL as the clock source. */ /* configure PLL register */ CLKDIVbits.DOZE = 0; CLKDIVbits.DOZEN = 0; CLKDIVbits.PLLPRE = 0; /* N1 = 2 */ CLKDIVbits.PLLPOST = 0; /* N2 = 2 */ PLLFBDbits.PLLDIV = 40; /* M = 42 */ /* * System frequency = ((7.37/N1)*M)/N2 MHz * = ((7.37/2 )*42)/2 MHz * = 77.385 MHz */ /* select FRC with PLL */ __builtin_write_OSCCONH(0b001); /* start clock switch */ __builtin_write_OSCCONL(OSCCON | 1); /* wait for oscillator switch to complete */ for(Timeout=50000; Timeout; Timeout--) { if(!OSCCONbits.OSWEN) break; } /* Make all GPIO use digital mode */ AD1PCFGL = 0x003F; TRISA=0x0000; // Configura el puerto A como salida. while(1) { LATAbits.LATA0=1; //Encendemos los bits 0 y 1 del puerto A LATAbits.LATA1=1; } } |
|
|
|
谢谢DanIt非常有用,现在它工作了,我学到了很多东西。有很多缺失的东西。最好的问候。
以上来自于百度翻译 以下为原文 Thanks Dan It has been very useful, now it works and I'VE LEARNED A LOT. There were many missing things. Best regards |
|
|
|
只有小组成员才能发言,加入小组>>
5171 浏览 9 评论
2001 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3176 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
635浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 08:12 , Processed in 1.781388 second(s), Total 109, Slave 92 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号