C28x CPU + FPU + VCU + TMU and CLA
1 - 6 TMS320F2837xD Microcontroller Workshop - Architecture Overview
Special Instructions
C28x Atomic Read/Modify/Write
Registers
ALU / MPY
LOAD
STORE
WRITE
READ
CPU
Mem
Atomic Instructions Benefits
Simpler programming
Smaller, faster code
Uninterruptible (Atomic)
More efficient compiler
AND *XAR2,#1234h
2 words / 1 cycles
Atomic Read/Modify/Write
MOV AL,*XAR2
AND AL,#1234h
MOV *XAR2,AL
DINT
EINT
6 words / 6 cycles
Standard Load/Store
Note: Example shows non-atomic assembly instructions vs. atomic assembly instruction; Compiler intrinsics can
be used for generating the atomic assembly instructions if the user needs guaranteed atomicity at the C level
Atomic instructions are a group of small common instructions which are non-interuptable. The
atomic ALU capability supports instructions and code that manages tasks and processes. These
instructions usually execute several cycles faster than traditional coding.