AnsweredAssumed Answered

lwgpio - set attribute via mqx for digital filter on a port

Question asked by Robert Lewis on May 1, 2015
Latest reply on May 7, 2015 by soledad

Hi

I am trying to replace an MQX software debounce control that we have with port filtering on the input of an interrupt driven bit on a port. Is this a reasonable thing to do? I can see that using the 1 kHz LPO clock and the max field width, we can only get 64ms debounce and we normally need about 200 for a mechanical switch. I thought we would do a time difference and reject the changes under 200ms, or can someone suggest a better design?

 

Is there functionality to use the lwgpio driver to set the filter characteristics for DFER , DFCR and DFWR registers for a given port on the K20dx256 for example? I know how to do this with bit bashing, but I wondered if there was a way in the lwgpio API's? I can't see one.

 

Any advice is welcome and appreciated. Thank you.

 

Robert Lewis

Outcomes