Using volatile Correctly for Hardware Register Access in Embedded C
How and why to use volatile for memory-mapped hardware registers in embedded C, with a worked register-map example, assembly-level verification, and the limits of what volatile guarantees.