Chinaunix首页 | 论坛 | 博客
  • 博客访问: 426790
  • 博文数量: 362
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-26 17:08
文章分类

全部博文(362)

文章存档

2015年(362)

我的朋友

分类: 嵌入式

2015-12-10 23:57:19

以GPFUP为例,上拉使能的作用如上,但是这里的上拉电阻指的是芯片内部寄存器的上拉电阻,并不是与外部设备上所接的上拉电阻(如key上的上拉电阻)

这里使能上拉电阻的作用为:
 “增强端口的驱动能力,比如你这个端口需要5V的电压才能正常工作,而传过来的电压小于5V,上拉电阻可以将小于5V的这个电压拉上去,从而达到要求”;
 “2440的逻辑电平是3.3V,所以驱动不了一些CMOS电路的芯片.加一个上拉电阻,电压就到5V,所以可以驱动了,否则电压不够。”
 datasheet如此描述:
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)
由最后一句可以看出:上拉电阻使能后,不论这个端口引脚配置为那种功能(输入、输出、使能,中断等),上拉电阻都起作用”。
下面是有关帖子:

http://www.ourdev.cn/bbs/bbs_content.jsp?bbs_sn=648749

http://blog.csdn.net/wutianshi/article/details/4140815

阅读(667) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~