AnsweredAssumed Answered

[MKW01] LPTMR internal pullup

Question asked by Giancarlo Zanuz on Mar 6, 2018
Latest reply on Apr 13, 2018 by Mark Butcher

Hello, i'm using the LPTMR as a pulse counter, but the internal pull-up is not working in this mode.

The pin I'm using is the PTE17 - ALT6 (LPTMR0_ALT3), and the pullup works fine as a GPIO, but when I change the mux to ALT6 the pin goes floating.

Here's the code:

 

      PORT_HAL_SetPullMode(PORTE,17u,kPortPullUp);
      PORT_HAL_SetPullCmd(PORTE,17u,true);
      PORT_HAL_SetMuxMode(PORTE,17u,kPortMuxAlt6);           /* PTE17 - ALT6 */

 

With an external pullup it works fine, but I need to use the internal for my hardware.

Thanks in advance.

Outcomes