zoukankan      html  css  js  c++  java
  • STM32 USB VBUS 监控

    OTG_FS general core configuration register (OTG_FS_GCCFG)

    Bit 21 NOVBUSSENS: VBUS sensing disable option

    When this bit is set, VBUS is considered internally to be always at VBUS valid level (5 V).

    This option removes the need for a dedicated VBUS pad, and leave this pad free to be used for other purposes such as a shared functionality.

    VBUS connection can be remapped on another general purpose input pad and monitored by software.

    This option is only suitable for host-only or device-only applications.

    0: VBUS sensing available by hardware
    1: VBUS sensing not available by hardware.

    如果需要使用 VBUS 引脚作为其他功能,NOVBUSSENS = 1

    According to the reference manual for the STM32F205, page 945, you want to do the following:

    First, you want to disable the VBUS sensing option.

    This is done by setting the NOVBUSSENS bit in the OTG_FS_GCCFG register.

    In this case VBUS is considered internally to always be at VBUS valid level (5 V),

    so you don't need to run a trace from the VBUS pin on the USB connector over to the STM32F205 at all.

  • 相关阅读:
    Tarjan 算法 自学整理
    POJ 2395 Out of Hay
    Codevs 1557 热浪
    Codevs 2956 排队问题
    Codevs 1005 生日礼物
    集合
    奇怪的函数
    关押罪犯
    搭积木
    大数据
  • 原文地址:https://www.cnblogs.com/shangdawei/p/4334250.html
Copyright © 2011-2022 走看看