This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SFRs in XC16X.h and MAIN.H

Hello,

I get an error while compiling a program:

'ASC0_CON_FDE': undefined identifier.

There are two similar definitions for this SFR:

1. In XC16X.h which is generated by Keil: sbit ASC0_CON_S0FDE = ASC0_CON^11;
2. In MAIN.H which is generated by Dave: #define ASC0_CON_FDE ((T_Reg16 *) 0xFFB0)->bit11

You see, they are different! I use the file XC16X.h. Can I change “sbit ASC0_CON_S0FDE = ASC0_CON^11;” into “sbit ASC0_CON_FDE = ASC0_CON^11;”? Why are they different?

Thanks
Senmeis