SPRUIY2A November 2024 – March 2025 F29H850DM , F29H850TU , F29H859TU-Q1 , F29P329SM-Q1 , F29P589DU-Q1
The C29x CPU supports an instruction “ATOMIC.REG #u8” that loads an internal counter (ISTS.ATOMIC COUNTER) with an 8-bit value. This counter decrements once for each instruction packet executed. As long as this atomic counter is not zero, an interrupt (RTINT or INT) cannot enter the CPU pipeline. Hence, this instruction allows the user code to block interrupts for up to 256 instruction packets.
Restrictions on the use of ATOMIC instruction: