Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 9 months ago.
LPTMR pulse counter bug?
Hello,
i discovered strange behaviour when interfacing the LPTMR module using mbed framework. I cannot configure LPTMR to work as a pulse counter. The value of CNR is always increasing, no matter if I set my pulse counting pin (PTC5) to GND or +3.3V.
I have attached my main.cpp (/media/uploads/arminb/main.cpp) file for you, maybe you can test it on your hardware. I posted this topic also in Kinetis forums: https://community.freescale.com/message/589693 For the guy responding to my issue my code seems to work on his side but he is not using mbed framework. What is happening here?