1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用的是Explorer 16开发板,我在遵循“编程16位微控制器”这本书。对于I2C通信,文本建议使用标题EX16.H和I2C.H,它们都不在微芯片文件夹中。我怀疑MPLAB X IDE和XC16编译器必须有新的适用的头文件。有人有建议吗?顺便说一下,我能够成功地使用SPI总线进行文本讨论,从而成功地实现了SPI通信。
以上来自于百度翻译 以下为原文 I'm using Explorer 16 Development board, and I'm following the text book "Programming 16-bit Microcontrollers". For I2C communication, the text suggests using the headers EX16.h and I2c.h, neither of which appear to be in Microchip folders. I suspect there must be new applicable header files for MPLAB X IDE and XC16 Compiler. Does anyone have suggestion? As an aside, I was able to successfully follow the text discussion on using the SPI bus, resulting in successful SPI communication. |
|
相关推荐
4个回答
|
|
戴夫,非常感谢你。我从FLYPIC24com下载了代码等。在您的电子邮件之后,我看到EX16.H头文件确实在那里。我将要查找i2c.h头文件,您指向Atttp://www. MigChIP.COM/MPLAB/COMPILRTS,再次感谢迈克
以上来自于百度翻译 以下为原文 Dave, Thank you so much. I had downloaded the code etc. from FlyPIC24.com. After your email, I see that the EX16.h header file is indeed there. I'll have to look for the i2c.h header file that you point to at http://www.microchip.com/mplab/compilers Thanks again, Mike |
|
|
|
戴夫,我找不到i2c.h文件。经过相当一段时间的搜索,我可以找到一个“外围图书馆为PIC24和DSPIC……”。我不愿意安装,因为我担心它会对我目前运行良好的MPLA/XC16火灾造成影响。它说它想要/需要安装它在XC16编译器所在的地方。有没有办法简单地获取i2c.h文件?迈克
以上来自于百度翻译 以下为原文 Dave, I've not been able to locate the i2c.h file. After quite some time searching, I can find a "Peripheral-libraries for PIC24 & DSPIC........". I'm reluctant to install that as I'm concerned it will have an effect on the MPLAB / XC16 conflagration that is currently running fine for me. It says it wants / needs to install it where the XC16 compiler is located. Is there a way to simply obtain the i2c.h file? Mike |
|
|
|
谢谢,有了这个输入,我必须问我是否应该遵循“C编程16位微控制器”这本书。更确切地说,我应该编写需要安装XC16遗留外围设备库的代码。是否有一种更先进的方法来编写C中的I2C接口代码,它与XC16编译器兼容,不需要安装遗留外围设备库吗?迈克
以上来自于百度翻译 以下为原文 Thank you, With that input, I have to question whether I should be following the text book "Programming 16-bit Microcontrollers in C". More precisely, should I be writing code that requires the installation of XC16 Legacy Peripherals Library. Is there a more up to date approach to writing I2C interface code in C that is compatible with the XC16 compiler and doesn't require installation of the Legacy Peripherals Library? Mike |
|
|
|
谢谢你。实际上,我正在编写自己的代码(用帮助)。它似乎在起作用,至少我能把数字写在SkkFun LED显示屏上。而且,我使用的唯一标题是在Explorer 16板上的PIC处理器的头。当谈到“外围库”时,它指的是什么?这是XC16编译器的东西吗?我在哪里寻找这个?或者说,“外围设备”是指一个像我正在工作的LED显示屏之类的设备,迈克。
以上来自于百度翻译 以下为原文 qhb, Thank you. Actually, I'm in the process of writing the code myself (with help) . It appears to be working, at least I'm able to write numbers to a SparkFun LED display. AND, the only header I'm using is the header for the PIC processor on the Explorer 16 board. When you speak of the "peripheral libraries", what does that refer to? Is that something I would have with the XC16 Compiler? Where would I look for this? Or by "peripheral" are you speaking of a salve device such as the LED display I'm working with. Mike |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
777浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
676浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 01:39 , Processed in 1.229828 second(s), Total 81, Slave 65 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号