kuaipai 发布于 2007-8-13 9:28:01
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, the pull-up resisters work without pin’s functional setting (input, output,DATAn, EINTn, etc). 这是s3c2410端口上拉寄存器的说明, 最后一句话:如果端口上拉寄存器使能,端口上拉寄存器开始工作,不管还是忽略端口引脚的功能设置 ,这句话该怎么理解啊? mcs8051 发布于 2007-8-13 9:51:40 不管吧怎么能忽略呢? kuaipai 发布于 2007-8-13 9:55:42 这句话该怎么理解呢? 什么情况下需要上拉使能? 上拉使能之后,除了gpio功能之外,其他的功能就不能用了,还是不影响其他功能的使用。 zhuanye 发布于 2007-8-13 10:56:53 我知道一般是要上拉的。不知道什么时候不要 kuaipai 发布于 2007-8-13 10:57:58 我写led的驱动程序的时候,上拉使能和不使能都试过,好像都可以的~ j1355275 发布于 2007-8-13 10:58:55 那看你硬件怎么接了 kuaipai 发布于 2007-8-13 10:59:41 举个例子,需要上拉电阻的例子~
j1355275 发布于 2007-8-13 11:05:13 按键,上拉电阻,不按下时高电平,按下时底电平 zhuanye 发布于 2007-8-13 11:07:27 没有上拉数据是不可靠的 kuaipai 发布于 2007-8-13 11:11:10 好的,多谢指点. kuaipai 发布于 2007-8-13 9:28:01
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, the pull-up resisters work without pin’s functional setting (input, output,DATAn, EINTn, etc). 这是s3c2410端口上拉寄存器的说明, 最后一句话:如果端口上拉寄存器使能,端口上拉寄存器开始工作,不管还是忽略端口引脚的功能设置 ,这句话该怎么理解啊? mcs8051 发布于 2007-8-13 9:51:40 不管吧怎么能忽略呢? kuaipai 发布于 2007-8-13 9:55:42 这句话该怎么理解呢? 什么情况下需要上拉使能? 上拉使能之后,除了gpio功能之外,其他的功能就不能用了,还是不影响其他功能的使用。 zhuanye 发布于 2007-8-13 10:56:53 我知道一般是要上拉的。不知道什么时候不要 kuaipai 发布于 2007-8-13 10:57:58 我写led的驱动程序的时候,上拉使能和不使能都试过,好像都可以的~ j1355275 发布于 2007-8-13 10:58:55 那看你硬件怎么接了 kuaipai 发布于 2007-8-13 10:59:41 举个例子,需要上拉电阻的例子~
j1355275 发布于 2007-8-13 11:05:13 按键,上拉电阻,不按下时高电平,按下时底电平 zhuanye 发布于 2007-8-13 11:07:27 没有上拉数据是不可靠的 kuaipai 发布于 2007-8-13 11:11:10 好的,多谢指点. |