完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,为最有可能的新手问题提前道歉:我正计划使用PIC18F4620 u控制器开发一个应用程序,使用MPLAB-X IDE和XC-8编译器一起使用。我想利用外围库,但我注意到PIC18F库被标记为“遗产”。是否有更新的东西我应该使用?我甚至不应该使用这个芯片吗?我的心不在于这个特定的uController,我只是选择了它,因为我想在DIP/.-hole配置中拥有许多I/O引脚。
以上来自于百度翻译 以下为原文 Hello, Apologies in advance for what is most likely a novice question: I am planning to develop an application using the PIC18F4620 uController, using the MPLAB-X IDE in conjunction with the XC-8 compiler. I would like to leverage the peripheral libraries, but I noticed that the PIC18F libraries are labeled as being "legacy." Is there something newer that I should be using? Should I not even be using this chip? My heart is not set on this particular uController, I simply chose it because I wanted lots of I/O pins in a DIP/through-whole configuration. Tom |
|
相关推荐
10个回答
|
|
您仍然可以下载和安装PLIB用于您的环境和PIC(我几乎可以肯定!)建议的“新”方式应该是MCC,代码配置器创建代码(库)为您的PIC/pcb量身定做,但我不确定他们支持您的“老”PIC(我也非常喜欢!)所以…
以上来自于百度翻译 以下为原文 You can still download and install PLIB for your environment and PIC (I am almost sure!) The proposed "new" way should be MCC, Code Configurator that creates code (libraries) tailored for your PIC/pcb bu I am not sure they support your "old" PIC (which I like a lot too!) So... |
|
|
|
谢谢,达里奥!今天晚上我更详细地看了这件事。(当然了,有更多知识的人,可以随时纠正我。)这就是交易:MCC(Micro.Code Configurator,微芯片代码配置器)是新设计的首选工具。然而,它不支持旧的图片,如PIC18F64 20。为此,您需要安装遗留库。如果不确定是否支持芯片,请在MPLAB中为芯片创建一个新项目。然后,一旦项目打开,尝试通过点击任务栏中的图标来启动MCC。如果出现这种情况,程序将显示一条表示不支持的消息。在Linux上安装遗留库对我来说并不十分简单。我不知道为什么,但安装程序(它作为一个“运行”文件分发)崩溃了一个分割违反。经过一些调试,我确定问题可能与尝试打开X会话有关(对此不确定,但是文本模式安装成功——参见下面的说明)。注意:这些步骤适用于Linux安装。他们已经测试了64位Linux MINT V18 AKA“莎拉”(先决条件)安装XC8编译器。在我的系统上,它被安装到/opt/micro./xc8/v1.38下载外围库(步骤如下)导航到http://www..hip.com/mplab/compilersScroll down,单击Downloads选项卡向下滚动到Legacy.pheralLibrariesDownloadsPIC18FLegacy.pheralLibrariesv2.0-LinuxFrom您的下拉列表加载目录,键入chmod+x
以上来自于百度翻译 以下为原文 Thanks, Dario! I took a look at this in more detail this evening. (And by all means, someone with more knowledge, feel free to correct me.) Here's the deal: MCC (Microchip Code Configurator) is the preferred tool for new designs. However, it does *not* support the older PICs such as the PIC 18F6420. For this, you need to install the legacy libraries. If you're not sure if your chip is supported, create a new project in MPLAB for your chip. Then, once the project is opened, try to launch MCC by clicking on the icon in the task bar. The program will display a message indicating lack of support if this is the case. Installing the legacy libraries on Linux was not exactly straightforward for me. I am not sure why, but the installer (which is distributed as a "run" file), crashed with a segmentation violation. After some debugging, I determined that the problem is likely related to attempting to open an X session (not sure about this, but text mode installation succeeded -- see instructions below.) NOTE: These steps apply to Linux installations. They have been tested with 64-bit Linux Mint v18 AKA "Sarah"
Keywords: xc8 legacy peripheral libraries 18F6420 Segmentation fault linux mint |
|
|
|
|
|
|
|
哈!我刚刚在PICDEM 18板上遇到了18F822!有趣的是,我从来没有注意过18F4620之前,我计划了很多!可能从来没有使用过函数的代码。但是代码仍然是编译的吗?当我告诉安装程序XC8在程序文件x86下时,很容易安装了这个库。还找到手册.MPLAB_XC8_.pheral_Libraries.pdfftp://www.ibercomp.es/uPLC/uPLC18/Manuales%20Micro./mplab%20c18%20c%20compiler%20libraries.pdf。
以上来自于百度翻译 以下为原文 Ha! I just ran into that for the 18F8722 on the PICDEM 18 board! Funny, I never noticed it before on the 18F4620, and I program it a LOT! Probably never had code that used a function. But the code still compiled? Easily installed the library once I'd told the installer where my XC8 was under Program files X86. Also found a manual. MPLAB_XC8_Peripheral_Libraries.pdf ftp://www.ibercomp.es/uPLC/uPLC18/Manuales%20Microchip/mplab%20c18%20c%20compiler%20libraries.pdf |
|
|
|
嗨,外围库已经好几年没有维护了,因为它们与C18有关。我建议使用MCC,它为支持的PIC生成库。PIC18F4620是相当旧的设备。最好使用PIC18F46K22,它是PIN兼容的,在同一封装中具有更多的功能和封装。它得到了越来越多的图书馆员的支持。
以上来自于百度翻译 以下为原文 Hi, Peripheral libraries have not been maintained for years as they were associated to C18. My recommendation is to use MCC which generates libraries for the PIC which are supported. PIC18F4620 is quite an old device. It would be better to use PIC18F46K22 which is pin compatible and has more functions and package in the same package. It is supported by MCC, which gradually offer more and more libraries Regards |
|
|
|
谢谢,我查一下。我看到MCC支持18F46K80/25K80,这也是我使用的。我开始使用18F4685的CAN,但我看它也不支持。六个月前我开始18F46K80项目时,已经有了一组基本的外围支持例程,所以我一直在使用它们,而不是用MCC添加代码。我使用的PICDEM 18(现在生命结束)的核心是18F8722,它也不支持,这就是为什么我不能早点对MCC做更多的事情。MCC很酷!当我构建了PIC18XExpRelyDimo.x(昨晚发现它)时,我得到了一个MCC生成文件的目录。看起来我也可以用它们。
以上来自于百度翻译 以下为原文 Thanks, I'll check them out. I do see that MCC supports the 18F46K80/25K80, which I'm also using. I started using the 18F4685 for CAN, but I see it's not supported either. I had a basic set of peripheral support routines already when I started on the 18F46K80 project six months ago, so I've been using them, rather then add code with MCC. The PICDEM 18 (now end of life) that I'm using has the 18F8722 at it's 'core', and it's not supported either, which is why I didn't do more with MCC sooner. MCC is pretty cool! When I built PIC18_Explorer_Demo.X (just last night found it), I got a directory of MCC generated files. They look like I could just use them too. |
|
|
|
嗨,你的意思是你有PIC18资源管理器板。如果你在PIC18F8722附近购买PIC18F87K22插件,那么你可以在你的PIC18资源管理器板上使用MCC。
以上来自于百度翻译 以下为原文 Hi, You mean you have PIC18 Explorer board If you buy the PIC18F87K22 plug-in very close from PIC18F8722, then you can use MCC on your PIC18 explorer board. Regards |
|
|
|
谢谢,我查一下。我看到MCC支持18F46K80/25K80,这也是我使用的。我开始使用18F4685的CAN,但我看它也不支持。六个月前我开始18F46K80项目时,已经有了一组基本的外围支持例程,所以我一直在使用它们,而不是用MCC添加代码。我使用的PICDEM 18(现在生命结束)的核心是18F8722,它也不支持,这就是为什么我不能早点对MCC做更多的事情。MCC很酷!当我构建了PIC18XExpRelyDimo.x(昨晚发现它)时,我得到了一个MCC生成文件的目录。它们看起来就像我也可以使用它们。编辑:得到了SoPePIC18F46K22芯片。我的董事会说“PICDEM PIC18”和“Explorer演示板”似乎即将停止生产。我不喜欢SPI到LCD的设计。
以上来自于百度翻译 以下为原文 Thanks, I'll check them out. I do see that MCC supports the 18F46K80/25K80, which I'm also using. I started using the 18F4685 for CAN, but I see it's not supported either. I had a basic set of peripheral support routines already when I started on the 18F46K80 project six months ago, so I've been using them, rather then add code with MCC. The PICDEM 18 (now end of life) that I'm using has the 18F8722 at it's 'core', and it's not supported either, which is why I didn't do more with MCC sooner. MCC is pretty cool! When I built PIC18_Explorer_Demo.X (just last night found it), I got a directory of MCC generated files. They look like I could just use them too. EDIT: Got some PIC18F46K22 chips to play with. My board says "PICDEM PIC18" and "Explorer Demo Board" Seems to be about out of production. I didn't like the SPI to LCD design. |
|
|
|
帮帮我——我把我的旧项目放在图18f14k22上——我安装了一个新的IDE范例4.15和编译器XC8 1.45——我没有工作——程序没有看到像I2C.h这样最绝望的库——我不明白你们客户的这种嘲弄?他们为什么在我脸上吐口水?为什么不全职的图书馆为我工作呢?我在网站上找不到一个可以下载I2C外围的芯片!帮助。给出一个可以告诉I2C库的链接。并解释一下让I2C处理新的IDE和新的XC是多么容易。微型芯片让我很伤心。
以上来自于百度翻译 以下为原文 Help me --- I took my old project on pic18f14k22 ----- I installed a new IDE mplabx 4.15 and the compiler XC8 1.45 ------- and I have nothing working - the program does not see the most desperate libraries like I2C. h ---- I do not understand this mockery of your customers? why do they spit in my face? why do not the most full-time library work for me? I can not find on the site a microchip where I can download the periphery on I2C! Help. Give a link where you can tell the library for I2C. And explain how easy it is for me to get I2C to work on the new IDE and the new XC. The microchip made me very sad. |
|
|
|
1。从一个新线程开始。2。多年前停止的图书馆。您可以使用原来用于构建项目的编译器版本(推荐)。B-或者从找到编译器的同一个地方下载图书馆。
以上来自于百度翻译 以下为原文 1. Start with a New Thread. 2. The Libraries where discontinued years ago. you can A - use the Version of Compiler that was original used to build the Project (recommended). B - OR download the Libraies from the same place you found the compiler. |
|
|
|
只有小组成员才能发言,加入小组>>
5250 浏览 9 评论
2037 浏览 8 评论
1958 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3218 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2266 浏览 5 评论
791浏览 1评论
682浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
612浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
686浏览 0评论
584浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-29 13:59 , Processed in 1.275735 second(s), Total 65, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号