完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
HiTeimm试图使用MILIO MLA,但是XC16抱怨某些定义未被声明,如SPI1STATL/SPI1STAtiVE注意到对于PIC24HJ128GP204,我认为其他H系列PIC24的这些不包括在头文件中。它们在ASM的.Inc文件中定义。F系列芯片有这些定义在各自的标题-我在考虑复制/修改我需要的。这些是有原因的吗?FILIO库与24H不兼容吗?任何帮助赞赏!谢斯利
以上来自于百度翻译 以下为原文 Hi There Im trying to use the filio MLA however xc16 is complaining about some defines being undeclared eg SPI1STATL / SPI1STATH Ive noticed that for the PIC24HJ128GP204 and I think other H series pic24's these aren't included in the header files. They are defined in the .inc files for ASM however. F-series chips have these defined in thier respective headers - I was thinking about copying/modifying the ones I need. Are these missing for a reason? is the fileio library not compatible with 24H? Any help appreciated! Thanks Lee |
|
相关推荐
5个回答
|
|
嗨,就我所记得的,默认的MLA示例使用PIC24F设备,因此您需要通过调整SFR寄存器来将MLA适应于您的特定PIC24HJ128GP204。
以上来自于百度翻译 以下为原文 Hi, As far as I remember the default MLA examples use PIC24F devices so you will need to adapt MLA to your specific PIC24HJ128GP204 by adapting the SFR registers. Regards |
|
|
|
有些设备有一个常规的SPI,它没有“H”寄存器,有些有高级的音频SPI,它有“H”寄存器。PIC24HJS有规则的SPI。
以上来自于百度翻译 以下为原文 Some of the devices have a regular SPI, which doesn't have the "H" registers. Others have advanced audio SPI, which has the "H" registers. PIC24HJs have regular SPI. |
|
|
|
谢谢你们俩。有一种感觉,只是不在那里。我看到我必须做额外的腿:)好奇如何L/H定义提供在ASM,但不是XC16 -即使对于P24HJ128GP204。我假设这只是16位寄存器断开在2例如:支持/ PIC24H/Inc/P24HJ128GP204.Inc. ExpIn SPI1BUF.等SPI1BUFL,πSPI1BUF。1BuFH,πSPI1BUF+1
以上来自于百度翻译 以下为原文 Thank you both. Had a feeling it just wasn't there. I see I'll have to do the extra legwork :) Curious though how L/H defines are provided for in ASM but not XC16 - even for the p24HJ128GP204. I was assuming that these were just 16bit registers broken in 2 eg in: support/PIC24H/inc/p24HJ128GP204.inc .extern SPI1BUF .equiv SPI1BUFL, _SPI1BUF .equiv SPI1BUFH, _SPI1BUF+1 |
|
|
|
没有-SPI1BUFL和SPI1BUFH是具有这种排列的MCU的16位寄存器。苏珊
以上来自于百度翻译 以下为原文 NO - SPI1BUFL and SPI1BUFH are 16-bit registers for those MCUs that have this arrangement. Susan |
|
|
|
对不起,迟些回复,谢谢苏珊的澄清!
以上来自于百度翻译 以下为原文 Sorry for the late reply, but thanks for the clarification Susan ! |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 12:17 , Processed in 1.177115 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号