AnsweredAssumed Answered

USB Power detect with MK64F

Question asked by Loic Guillain on Jun 19, 2015
Latest reply on Jun 19, 2015 by Loic Guillain

battery_function.PNG I'm using a function to charge a battery and supply the MK64F when it's usb supplied and use this battery to suuply the microcontroller when it's not usb supplied. I would like to know how i can do to indicates which entry it has to his power supply port (to authorize sleep mode or not).


I tought to use a voltage divider connected between +5v of my USB and a GPIO (in input) and generate interrupt. Could I get your advice?


Thanks to you.