Hello everyone,
I don't know how to set/clear only one bit into a password protected register such as WDTCTL. So here is the issue:
If I write: WDTCTL = WDTPW + WDTCNTCL; I will clear the WDT counter register, but I will also clear bits as WDTIS, WDTSSEL, which is undesired. I want to reset the counter and all the other bits to remain unchanged. Is there any technique to work around this problem?