GPIO的上拉下拉功能說明

2021-05-26 14:29:06 字數 619 閱讀 4141

the port pull-up register controls the pull-up resister enable/disable of each port group. when the corresponding bit is 0, the pull-up resister of the pin is enabled. when 1, the pull-up resister is disabled.

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)

上拉暫存器是控制對應埠上拉使能的。當對應位為0時,設定對應引腳上拉使能,為1時,禁止對應引腳上拉使能。如果上拉暫存器使能,無論引腳功能暫存器如何設定(輸入,輸出,資料,中斷等),對應引腳輸出高電平。

可見對應於s3c2410的gpb-bph口內部有上拉電阻暫存器,當相應的上拉電阻使能時,對應的i/o引腳懸空時,表現出高電平。反之,表現出低電平。

上拉是乙個電阻接到乙個電壓,其實就是增強io的驅動能力。

下拉是乙個電阻接到地,保證io口是低電平。

上拉下拉功能 GPIO的上拉下拉功能說明

2011 07 11 14 36 394人閱讀 收藏舉報 the port pull up register controls the pull up resister enable disable of each port group.when the corresponding bit is 0...

GPIO的上拉下拉功能說明

首先 上下拉 是給io乙個預設的狀態 比如控制en的話,那麼高有效的我們就下拉,低有效的話我們就上拉 而 很多io 由於cmos工藝問題會出現float的現象,所以不能懸空 需要pu pd。上拉和下拉是指gpio輸出高電位 上拉 還是低電位 下拉 上拉就是輸入高電平,然後接乙個上拉電阻 起保護作用 ...

GPIO口配置為上拉,下拉輸入

每個gpio內部有三種狀態 上拉 下拉 不拉。什麼時候,需要選擇上拉 下拉或不拉呢 1.如果是output,那個一般選擇no pull,這樣,引腳才能根據你的output資料,進行正確輸出。2.如果是input,那麼需要看具體應用的預設輸入值是0還是1.2.1 如果預設是輸入0,則最好配置為pull...