• <span id="cucya"><sup id="cucya"></sup></span>

    <optgroup id="cucya"><li id="cucya"><del id="cucya"></del></li></optgroup>

  • <optgroup id="cucya"><em id="cucya"></em></optgroup>

    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來配置欠壓復位。

    請輸入搜索關鍵字

    確定
    午夜性春猛交XXXX|亚洲自偷自拍另类第1页|国产精品第一区第27页|亚洲αv在线精品糸列