Constant volatile variable

Can you have constant volatile variable?

You can have a const volatile variable. Its syntactically correct and often used while expecting a value change from the hardware.
Example:
The status registers (read only) if micro controllers are often declared as
const volatile statRegxxxx;

The program (software) shouldn't change the value of statRegxxxx, only the hardware can

Comments

Popular posts from this blog

8051 Development Setup:MIDE-51 Installation

Nokia dot Matrix LCD Interfacing with 89c51( 8051 core)