书中提到PxREN控制位是决定是否引入内部电阻,写0是不接入内部电阻,写1时内部电阻被接入电路,电阻另一端固定接在了IO输出端,至于另一端接在VCC或者GND还得看PxOUT,好吧,说了这么多我想问的是内部电阻上拉和下拉有什么用?为什么按键电路输入高电平1是可靠的?是因为按键按下去电平为0吗?为什么另一端接在PxOUT上?而不是PxIN上?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.