AnsweredAssumed Answered

Glitch Filter on RESET_b

Question asked by Ammar Bazzaz on Nov 1, 2018
Latest reply on Nov 7, 2018 by xiangjun.rong

Hello,

 

I want to reduce or eliminate the possibility of resets due to noise on the RESET_b pin of the MCU that I am using (MKE16F512VLH16, PTA5, PIN 63)

 

Will a simple conversion of PTA5 to a GPIO accomplish this?  If so, will I still be able to debug my code using SWD via P&E Multilink Universal USB hardware and MCUExpresso IDE v10.0.2 [Build 411] [2017-07-11]?

 

Alternatively, I have considered enabling the digital glitch filter on the RESET_b PIN, but it is not clear if this should be done via PORT control or the RCM.  Are these two methods independent?

 

If implementing a glitch filter on RESET_b, then how and where in the code can I do this so as not ending up in an infinite loop of resetting?  This is what happened when I tried to implement the glitch filter in main() using simple writes to the required PORT control registers (DFWR, DFCR, and DFER)

 

Thank you kindly for your guidance.

 

Best Regards,

Ammar#

Outcomes