2015-04-24 11:43 AM
I am using the Cosmic compiler and I want to read and write bit variables in an ISR. I am wondering if there is a guarantee that ALL bit variable manipulations are atomic (ie using bitwise instructions).
If not - since multiple bit variables are stored within a single byte I would have to bracket every access of every bit variable with interrupt masking.2015-04-27 07:46 AM
Hello,
what you ask is guaranteed for bit global variables. Regards, Luca (Cosmic)2015-04-27 02:30 PM
Thank you. Bit variables will save me a lot of memory.