<strike id="0k9r3"><p id="0k9r3"></p></strike>
  • <form id="0k9r3"></form>
    <nav id="0k9r3"></nav>
    <em id="0k9r3"><p id="0k9r3"></p></em>
  • <tr id="0k9r3"><source id="0k9r3"></source></tr>
    <form id="0k9r3"></form>
    <sub id="0k9r3"></sub>

      <sub id="0k9r3"><address id="0k9r3"></address></sub>
      1. <form id="0k9r3"></form>

        24小時聯系電話:18217114652、13661815404

        中文

        您當前的位置:
        首頁>
        電子資訊>
        技術專題>
        華大單片機HC32460欠...

        技術專題

        華大單片機HC32460欠壓復位配置


        華大單片機HC32F460欠壓復位配置如下:

        /*欠壓復位配置*/
        void lp_reset_init(void)
        {
            stc_pwc_pvd_cfg_t   stcPwcPvdCfg;

            MEM_ZERO_STRUCT(stcPwcPvdCfg);

            /* Config PVD1. */
            /* Disable filter. */
            stcPwcPvdCfg.enPvd1FilterEn = Disable;
            /* Msk interrupt. */
            stcPwcPvdCfg.enPvd1Int = NonMskInt;
            /* Interrupt. */
            stcPwcPvdCfg.stcPvd1Ctl.enPvdMode = PvdReset;
            /* Enable Pvd1 interrupt. */
            stcPwcPvdCfg.stcPvd1Ctl.enPvdIREn = Enable;
            /* Enable output compared result. */
            stcPwcPvdCfg.stcPvd1Ctl.enPvdCmpOutEn = Enable;
            /* PVD1 Threshold Voltage 2.8V. */
            stcPwcPvdCfg.enPvd1Level = Pvd2Level28;

            PWC_PvdCfg(&stcPwcPvdCfg);

        PWC_Pvd1Cmd(Enable);
        }

        上速代碼,在F460上面親測有用。因為華大的欠壓復位配置BOR寄存器是只讀,

        所以只能使用PVD1來配置欠壓復位。

        請輸入搜索關鍵字

        確定
        国产在线视频在线