GPIO的上拉下拉功能說明
If the port pull-up register is enabled then the pull-up resisters work without pin’s functional setting(input, output,DATAn, EINTn and etc)
上拉寄存器是控制對應(yīng)端口上拉使能的。當(dāng)對應(yīng)位為0時,設(shè)置對應(yīng)引腳上拉使能,為1時,禁止對應(yīng)引腳上拉使能。如果上拉寄存器使能,無論引腳功能寄存器如何設(shè)置(輸入,輸出,數(shù)據(jù),中斷等),對應(yīng)引腳輸出高電平。本文引用地址:http://www.ex-cimer.com/article/201611/321410.htm
評論