我与XC8 V137/138有问题,ADC GO位没有被编译器识别……位没有被定义。查看.h包含的文件,在AdCON0寄存器中有一个位,但在任何名称或别名下都没有GooNndobit位定义。我已经检查了PICS 16F1703到1778。所有人都有同样的问题。我从来没有遇到过这个问题,其他PICCHIPSI试图将位定义添加到.h文件,但是编译器然后为头文件张贴其他错误…所以我要么做错了,要么无法编辑页眉。既然ADC是一个关键的选项,有没有其他人听说过这个问题,还是只有我?
以上来自于百度翻译
以下为原文
I am having issues with XC8 v137/138 with the ADC GO bit not being recognized by the compiler...says the bit is not defined.
Looking at the .h include files for the chips there is a place for the bit in the ADCON0 register but no GO_nDONE bit defini
tion under any name or alias. I have checked pics 16F1773 thru 1778. All have the same issue. I have never had this problem with other PIC chips
I attempted to add the bit definition to the .h file, but the compiler then posts other errors for the header file... so I am either doing it wrong or the header can't be edited.
Since the ADC is a key option, has anyone else heard of this problem, or is it just me?