完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
亲爱的各位,在使用P18编译器IDE V4.05与C18编译器进行PIC18F25K80微控制器的程序时,我有一个特殊的问题,但是程序使用MPLAB IDE V889C和高技术C编译器运行得很好。两者都是评价版,有没有影响呢?附上两个代码供参考。代码之间唯一的区别是所用的延迟函数。它与ADXL345加速度计进行了I2C通信。当我用MPLAB IDV889Flash进行闪存时,效果很好,但是在MPLAB X IDE中不起作用。我请求有人帮我解决这个问题。问候,X. Ignatius。
MPLAPIDE V889C(11.38 KB)-下载3次 以上来自于百度翻译 以下为原文 Dear All, I have a peculiar problem in making the program executed in PIC18F25K80 micro controller using MPLAB X IDE V4.05 with C18 compiler but the program runs very well using MPALB IDE V8.89 with HI-TECH C compiler. Both of them are evaluation version, did that affect? Attached both the codes for reference. The only difference between the codes is the delay function used. It has I2C communication with ADXL345 accelerometer. Works very well when I flash it using MPLAB IDE V8.89 but doesn't work in MPLAB X IDE. I request someone to help me troubleshoot this problem. Regards, X. Ignatius Attachment(s) MALAPXIDE 4.05.c (11.22 KB) - downloaded 7 times MPLAPIDE V8.89.c (11.38 KB) - downloaded 3 times |
|
相关推荐
6个回答
|
|
所以你有一个问题,但唯一的症状是“它不起作用”。什么根本不起作用?你是怎么期待它的工作和实际发生的?此外,尝试使用XC8工具链而不是C18。如果我没弄错的话,我相信高科技编译器是我的Microchip买的,它变成了XC8。我相信你也可以在MPLAX X中使用高科技C编译器。
以上来自于百度翻译 以下为原文 So you have a problem but the only symptom is "It doesn't work". What exactly doesn't work? How are you expecting it to work and what actually happens? Also, Try using the XC8 toolchain rather than C18. If I'm not mistaken, I believe the HI-TECH compiler was bought my microchip and it became XC8. I believe you could just use the HI-TECH C compiler in MPLAB X too. |
|
|
|
C18和HiTeCH有很大的不同。什么是C18上的MPLABX和不是XC8从高科技下降?我认为高科技仍然可以与MPLABX一起工作。
以上来自于百度翻译 以下为原文 C18 and hitech are very different. What C18 on MPLabX and not XC8 which descended from hi-tech? I think Hi-tech May still work with MPLabX. |
|
|
|
|
|
|
|
嗨,评估版除了限制使用天数之外还有一些限制吗?问候,X. Ignatius
以上来自于百度翻译 以下为原文 Hi, Does evaluation version has some restriction apart from using it for restricted no. of days. Regards, X. Ignatius |
|
|
|
不,在评估期间是完全可行的。
以上来自于百度翻译 以下为原文 No. It is fully operational during the evaluation period. |
|
|
|
嗨,在XC8编译器上没有时间或程序的限制,限制了整个程序优化在自由模式下是不可用的。来自MPLAB 8的与HiTeC C一起使用的程序似乎对我起作用,MPLAB 8.92与XC8 V1.45和MPLAB X V4.15和XC8 V1.45一起工作。ED一个具有几个设备类型的配置文件的文件,有一些编辑和条件,能够在PIC18F14K22和PIC18F45 K20硬件上运行程序。PIC18F25K80的配置只在MPLAB模拟器中开始。迈西尔
AdxL355.x.Zip(16.61 KB)-下载1次 以上来自于百度翻译 以下为原文 Hi, There are no restriction in time or program size on XC8 compiler, there is restriction that whole program optimization is not available in free mode. Program from MPLAB 8 that was used with HiTech C, seem to work for me, with MPLAB 8.92 with XC8 v1.45 and with MPLAB X v4.15 and XC8 v1.45. I have added a file with configuration words for a few device types. There are some edits and conditionals, to be able to run the program on hardware PIC18F14K22 and PIC18F45K20. Configuration for PIC18F25K80 have only been started in MPLAB simulator. Mysil Attachment(s) ADXL345.M8.zip (15.60 KB) - downloaded 2 times ADXL345.X.zip (16.61 KB) - downloaded 1 times |
|
|
|
只有小组成员才能发言,加入小组>>
5234 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
771浏览 1评论
659浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
588浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
670浏览 0评论
571浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 14:00 , Processed in 1.521415 second(s), Total 87, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号