USB Power detect with MK64F

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB Power detect with MK64F

ソリューションへジャンプ
656件の閲覧回数
loicguillain
Contributor II

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.

ラベル(2)
0 件の賞賛
1 解決策
502件の閲覧回数
danielecortella
Contributor V

Hi,

Normaly the USB charger have a PGOOD pin that indicate when an external power is connected but in your case you don't have, so yes you can use a voltage divider using two resistors.

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
503件の閲覧回数
danielecortella
Contributor V

Hi,

Normaly the USB charger have a PGOOD pin that indicate when an external power is connected but in your case you don't have, so yes you can use a voltage divider using two resistors.

0 件の賞賛
502件の閲覧回数
loicguillain
Contributor II

Thanks to you for your fast answer :smileywink: and your help.

0 件の賞賛