by jtemples » Tue Aug 09, 2016 7:38 pm
I've been working with interrupt on change on the PIC16F1777. The data sheet says, "In order to ensure that no detected edge is lost while clearing flags, only AND operations masking out known changed bits should be performed." Does that mean there's actually special silicon related to the AND instruction that avoids the race condition when clearing flags? The data sheet doesn't say that explicitly, and in the general case, an AND isn't going to do anything special to avoid clearing flags that shouldn't be cleared.