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

Volatile for SFR ?

I have some Special function registers (SFR) that need to be in volatile type. How can I do this? Because when I declare:

 volatile sfr16 CAN0DAT = 0xD0;
the compiler said that is wrong.