Microcontroller Embedded C Programming Lecture 142| Using ‘volatile’ with ISR Part-2
Using 'volatile' with ISR Part-2 In the previous article, I gave you a small assignment to identify the places where we can keep volatile in this application. And…
Using 'volatile' with ISR Part-2 In the previous article, I gave you a small assignment to identify the places where we can keep volatile in this application. And…
Using 'volatile' with ISR Part-1 Use volatile when your code is dealing with below scenarios Memory-mapped peripheral registers of the microcontrollers Multiple tasks accessing global variables(read/write) in an…
Using volatile to fix issues with the pin-read exercise Now let's try to use volatile keyword to fix the issue with our code. Figure 1 shows our…
When to use volatile qualifier? A variable must be declared using a volatile qualifier when there is a possibility of unexpected changes in the variable value. The unexpected changes…
volatile and effect of optimization Type Qualifiers in C In C programming, type qualifiers are used to specify the type and memory location of a variable. The following…
Analyzing pin read exercise disassembly with O0 and O2 In the previous article, when we activated the O2 optimization on our code, our code stopped working. We have…