请问大家PIC18编译疑问

2020-02-08 09:03发布

本帖最后由 AttTiv 于 2012-7-16 15:32 编辑

大家好,请问一下,我用的PIC18F45K80,添加头文件 PIC18.h 对不对,问什么我编译后,所有的寄存器名说未定义,比如“TX9”、“RX9”、“BRG”、"SPEN"、“TRMT”等等这些寄存器名,编译器都 说是 未定义呢???是不是头文件没添加对了?? 我添加 htc.h也试过了,还是这样

编译器用的PICC18 9.80 PRO

IDE 是 8.83版本
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
12条回答
电子蔡鸟
1楼-- · 2020-02-09 02:37
怀疑破解不成功。。。
AttTiv
2楼-- · 2020-02-09 07:15
 精彩回答 2  元偷偷看……
AttTiv
3楼-- · 2020-02-09 11:14
surf_131 发表于 2012-7-16 16:44
直接到官网下载,选择最新的版本,用那个LITE版,足够了。现在下的话,好像是3.4x?  ...

谢谢surf_131提醒,下了个3.42版本的,能认识45K80了
Lu.Shi
4楼-- · 2020-02-09 11:59
我也遇到过这个问题,不过我是用MPLAB X IDE来打开已经存在的MPLAB IDE工程,然后就是有的特殊功能寄存器不识别,我自己琢磨了好久才发现是编译器的问题,换了一种编译器就好了,楼主不妨可以试试
wiisir
5楼-- · 2020-02-09 13:22
请问是这样的提示吗?
Warning [1385] E:weiMCUpicPIC1819264.c; 246. variable "_RC1" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3875)
Warning [1385] E:weiMCUpicPIC1819264.c; 255. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 258. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 282. variable "_RC0" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3873)
Warning [1385] E:weiMCUpicPIC1819264.c; 283. variable "_RC1" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3875)
Warning [1385] E:weiMCUpicPIC1819264.c; 292. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 295. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 319. variable "_RC0" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3873)
Warning [1385] E:weiMCUpicPIC1819264.c; 320. variable "_RC1" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3875)
Warning [1385] E:weiMCUpicPIC1819264.c; 328. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 331. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 538. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 542. variable "_RD7" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3925)
Warning [1385] E:weiMCUpicPIC1819264.c; 546. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
Warning [1385] E:weiMCUpicPIC1819264.c; 548. variable "_RC2" is deprecated (declared at C:Program FilesHI-TECH SoftwarePICC-189.80includepic18f4620.h:3883)
wiisir
6楼-- · 2020-02-09 17:45
可以不管它么?因为最后显示********** Build successful! **********(编译成功的啊)

一周热门 更多>