AnsweredAssumed Answered

Atomic bit(s) modification on ADuC702x

Question asked by ADUzer on May 23, 2014
Latest reply on May 27, 2014 by PatrickN

Are there any processor instructions that support atomically setting or clearing specific bits or a single bit in a ADuC702x MMR in C? e.g,

 

GP0DAT |= 0x03000000;  // set GP0.0 GP0.1 as output, leave other I/O

 

GP2DAT &= 0xFFCFFFFF; // set GP2.4 GP2.5 low (assume they're output)

 

GP1DAT |= 0x10000000; // set GP1.7 as output

Outcomes