Keil Logo

SFRs in XC16X.h and MAIN.H

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Owen Senmeis
Posted
13-Apr-2011 09:40 GMT
Toolset
C166
New! 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

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.