说明

转载自http://www.resistorguide.com/pull-up-resistor_pull-down-resistor/。

What are pull-up resistors?

Pull-up resistors are resistors used in logic circuits to ensure a well-defined logical level at a pin under all conditions. As a reminder, digital logic circuits have three logic states: high, low and floating (or high impedance). The high-impedance state occurs when the pin is not pulled to a high or low logic level, but is left “floating” instead. A good illustration of this is an unconnected input pin of a microcontroller. It is neither in a high or low logic state, and a microcontroller might unpredictably interpret the input value as either a logical high or logical low. Pull-up resistors are used to solve the dilemma for the microcontroller by pulling the value to a logical high state, as seen in the figure. If there weren’t for the pull-up resistor, the MCU’s input would be floating when the switch is open and brought down only when the switch is closed.

Pull-up resistors are not a special kind of resistors; they are simple fixed-value resistors connected between the voltage supply (usually +5V) and the appropriate pin, which results in defining the input or output voltage in the absence of a driving signal. A typical pull-up resistor value is 4.7kΩ, but can vary depending on the application, as will be discussed later in this article.

Pull-up resistor definition

Pull-up resistors are resistors which are used to ensure that a wire is pulled to a high logical level in the absence of an input signal.

What are pull-down resistors?

Pull-down resistors work in the same manner as pull-up resistors, except that they pull the pin to a logical low value. They are connected between ground and the appropriate pin on a device. An example of a pull-down resistor in a digital circuit can be seen in the figure. A pushbutton switch is connected between the supply voltage and a microcontroller pin. In such a circuit, when the switch is closed, the micro-controller input is at a logical high value, but when the switch is open, the pull-down resistor pulls the input voltage down to ground (logical zero value), preventing an undefined state at the input. The pull-down resistor must have a larger resistance than the impedance of the logic circuit, or else it might be able to pull the voltage down by too much and the input voltage at the pin would remain at a constant logical low value – regardless of the switch position.

Pull-up resistor value

The appropriate value for the pull-up resistor is limited by two factors. The first factor is power dissipation. If the resistance value is too low, a high current will flow through the pull-up resistor, heating the device and using up an unnecessary amount of power when the switch is closed. This condition is called a strong pull-up and is avoided when low power consumption is a requirement. The second factor is the pin voltage when the switch is open. If the pull-up resistance value is too high, combined with a large leakage current of the input pin, the input voltage can become insufficient when the switch is open. This condition is called having a weak pull-up. The actual value of the pull-up’s resistance depends on the impedance of the input pin, which is closely related to the pin’s leakage current.

A rule of thumb is to use a resistor that is at least 10 times smaller than the value of the input pin impedance. In bipolar logic families which operate at operating at 5V, the typical pull-up resistor value is 1-5 kΩ. For switch and resistive sensor applications, the typical pull-up resistor value is 1-10 kΩ. If in doubt, a good starting point when using a switch is 4.7 kΩ. Some digital circuits, such as CMOS families, have a small input leakage current, allowing much higher resistance values, from around 10kΩ up to 1MΩ. The disadvantage when using a larger resistance value is that the input pin responses to voltage changes slower. This is the result of the coupling between the pull-up resistor and the line capacitance of the wire which forms an RC circuit. The larger the product of R and C, the more time is needed for the capacitance to charge and discharge, and consequently the slower the circuit. In high-speed circuits, a large pull-up resistor can sometimes limit the speed at which the pin can reliably change state.

Typical applications for pull-up and pull-down resistors

Pull-up and pull-down resistors are often used when interfacing a switch or some other input with a microcontroller or other digital gates. Most microcontrollers have in-built programmable pull up/down resistors so fewer external components are needed. It is possible to interface a switch with such microcontrollers directly. Pull-up resistors are in general used more often than pull-down resistors, although some microcontroller families have both pull-up and pull-downs available.
They are often used in analog to digital converters to provide a controlled current flow into a resistive sensor.
Another application is the I2C protocol bus, where pull-up resistors are used to enable a single pin to act as an input or an output. When not connected to a bus, the pin floats in a high-impedance state.
Pull-down resistors are also used on outputs to provide a known output impedance.

【硬件相关】Pull-up and Pull-down Resistors相关推荐

  1. Linux系统查看硬件相关信息

    Linux系统硬件信息查看 一.前言 二.查看CPU相关信息 1.利用文件进行查看:cat /proc/cpuinfo 2.利用命令查看:lscpu (调取cpuinfo文件中的内容) 三.负载情况( ...

  2. 理解嵌入式开发中的一些硬件相关的概念

    为什么80%的码农都做不了架构师?>>>    做嵌入式系统开发,经常要接触硬件.做嵌入式开发对数字电路和模拟电路要有一定的了解.这样才能深入的研究下去.下面我们简单的介绍嵌入式开发 ...

  3. 关于 git pull 和 git pull origin develop 的区别

    日期:2019 年 9 月 29 日 关于 git pull 和 git pull origin develop 的区别 闲来无事,正于网上冲浪之际,一位漂亮小姐姐抛来一个问题:git pull 和 ...

  4. Jetson Nano 硬件相关

    文章目录 前言 核心板 规格参数 框图 260-Pin SO-DIMM接口 供电部分 USB PCIe GBE MIPI DSI / DP / HDMI MIPI CSI SD卡/SDIO Audio ...

  5. 【SPI】SPI学习之SPI硬件相关

    关联内容: [SPI]SPI学习之SPI硬件相关 [SPI]SPI学习之SPI驱动相关 [SPI]SPI学习之SPI调试相关 目录 SPI硬件知识 SPI相关的缩写或说法 SPI外部信号描述 SPI硬 ...

  6. git pull远程master_git pull 命令

    git pull 命令 git pull 命令用于从远程获取代码并合并本地的版本. git pull 其实就是 git fetch 和 git merge FETCH_HEAD 的简写. 命令格式如下 ...

  7. git pull远程master_git pull拉取远程指定分支

    1.若git clone之后想拉取某个指定分支:先git pull ,然后git checkout 指定分支名称 2.若git clone之后想拉取某个指定分支:先git fetch origin 分 ...

  8. git pull 与 git pull --rebase

    文章目录 前提知识 区别git pull 与 git pull --rebase 简单理解 git merge与git rebase git pull 和 git pull --rebase 命令都是 ...

  9. git pull和git pull origin master报如下警告Pulling without specifying how to reconcile divergent branches

    git pull和git pull origin master报如下警告 hint: Pulling without specifying how to reconcile divergent bra ...

  10. 笔记本电脑无法设置连接wifi,检测到适配器 Realtek 8821CE Wireless LAN 802.11ac PCI-E NIC 遇到与驱动程序或硬件相关的问题

    问题现象: 笔记本电脑无法设置WIFi,网络和Internet设置左侧无WLAN选项,右击网络连接菜单,点击[疑难解答]-->[所有网络适配器],检查结果显示:适配器 Realtek 8821C ...

最新文章

  1. MindSpore循环神经网络
  2. 充分理解表达式——《狂人C》习题解答2(第二章习题5)
  3. 爬虫之手机APP抓包教程-亲测HTTP和HTTPS均可实现
  4. Protobuf3语言指南
  5. stm32 堆和栈(stm32 Heap Stack)【worldsing笔记】
  6. nodejs库express是如何接收inbound json请求的
  7. (六)Neo4j综合项目
  8. Linux下SVN服务器的搭建
  9. R交互图_shiny包
  10. 第十四章 C语言头文件的编写_C语言模块化编程中的头文件
  11. 数据科学分布——Beta分布
  12. latex 花体之英文字母
  13. Ubuntu配置locale
  14. 360插件化RePlugin踩坑
  15. 基于android的记账本国内外研究现状,基于android系统的记账本的设计与实现.doc
  16. 超过心跳间隔的客户端重连接导致额外的License消耗
  17. 【Matplotlib】学术论文黑白柱状图绘制
  18. 计算机视觉常用资源整理
  19. 行缓冲,全缓冲,无缓冲的详细介绍
  20. 使用omniverse:一张照片快速生成一个3D数字人

热门文章

  1. matlab 裕度指令,相位裕度增益裕度Matlab命令w=logspace-13.PPT
  2. 高考“明日方舟”火了一把,arknights.fans顺势被抢注!
  3. WPF 控件【L】ListView(一) ListView如何实现单行SelectedItem或多行SelectedItems的绑定
  4. QOS基本概念/技术原理理解
  5. 目标检测经典论文——R-FCN论文翻译(中英文对照版):Object Detection via Region-based Fully Convolutional Networks
  6. 周鸿祎访谈(二)(转)
  7. windows10无法启动承载网络
  8. 采用SmartQQ 协议可制作聊天机器人
  9. 系统服务器 lis6.0,LIS系统条形码生成接口说明(Service)
  10. 程序人生有用的几个网站