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.

Parents
  • "the compiler said that is wrong."

    How can anyone help you with this if you don't show the actual error message that you got??

    Post the entire message, verbatim - use copy-and paste, do not re-type it.

Reply
  • "the compiler said that is wrong."

    How can anyone help you with this if you don't show the actual error message that you got??

    Post the entire message, verbatim - use copy-and paste, do not re-type it.

Children
No data