both edge triggering needs a delay to settle to reliably read the right value