About MCU Pull-up Resistors

Publisher:BlissfulSunriseLatest update time:2015-12-30 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Since the P0 port has no pull-up resistor inside and is open-drain, no matter how strong its driving capability is, it is equivalent to having no power supply and needs an external circuit to provide it. In most cases, a pull-up resistor must be added to the P0 port.
1. Generally, the P0 port of the 51 single-chip microcomputer does not connect a pull-up resistor when used as address/data multiplexing.
2. When used as a general I/O port, since there is no pull-up resistor inside, a pull-up resistor must be connected! !
3. When the P0 port is used to drive the PNP tube, a pull-up resistor is not required because the low level is valid at this time;
4. When the P0 port is used to drive the NPN tube, a pull-up resistor is required because only when P0 is 1 can the rear end be turned on.
To put it simply, it must have a power supply to drive the LCD display, otherwise it will not light up. It happens that the P0 port has no power supply, so an external power supply must be connected. Connecting a resistor plays a role in current limiting; if it is connected to the P1, P2, and P3 ports, no external power supply and resistor are required.
 
The output port of some microcontrollers is open-collector! It can only provide two states: high-impedance and low level. In order to obtain high and low levels, a pull-up must be provided. At this time, the output port is like a switch to the ground. If the output is high level, the switch is open, and the output state is high level. If the output is low level, the switch is closed, and the output and the ground are short-circuited, forming a low level.
Keywords:MCU Reference address:About MCU Pull-up Resistors

Previous article:MCU Special Registers Chinese and English Comparison
Next article:MCU register configuration problem

Recommended ReadingLatest update time:2024-11-17 05:55

Design of digital tube display clock for avr single chip microcomputer
//Digital tube data P0 port, digital tube control P2 port #include #include #includePACe.h》 #include #include   #definecodePROGMEM #defineucharunsignedchar #defineuintunsignedint codeconstucharLED_7[16]={0x28,0x7E,0xA2,0x62,0x74,0x61,0x21,0x7A,0x20,0x60,0xff};//commonof+ codeconstucharposi ti on[8]={0x7f,0xbf,0xdf,0
[Microcontroller]
Design of digital tube display clock for avr single chip microcomputer
Detailed explanation of the io principle and function of avr microcontroller
To understand the IO structure, let's first look at the role of pull-up and pull-down resistors. 1. Pull-up resistor   Pull-up is to clamp the uncertain signal at a high level through a resistor! The resistor also acts as a current limiter! The same applies to pull-down! Pull-up resistors are used to provide curr
[Microcontroller]
Detailed explanation of the io principle and function of avr microcontroller
Ordinary MCU Teaching Lesson 7 Addressing Mode and Instruction System
Through the previous study, we have understood the internal structure of the microcontroller, and we also know that to control the microcontroller and let it do things for us, we need to use instructions. We have learned a few instructions, but they are very scattered. From now on, we will systematically study the inst
[Microcontroller]
PIC microcontroller CCS C language (#FUSES usage)
#FUSES Syntax: #fuse options The options vary depending on the device. A list of valid options is given at the top of each devices.h file, with comments for reference. PCW can effectively edit and modify fuses for a particular device. The PCW drop-down menu VIEW | Valid fuses will show all fuse descriptions. Some
[Microcontroller]
Design of Remote Fingerprint Collection Terminal Based on Single Chip Microcomputer
1 Introduction Fingerprints refer to the uneven lines on the front of the skin at the end of the finger. Although fingerprints are only a small part of human skin, they contain a lot of information. The lines of each person's fingerprint are different in pattern, breakpoints and intersections. Fingerprint recog
[Microcontroller]
Design of Remote Fingerprint Collection Terminal Based on Single Chip Microcomputer
CPLD implementation method of pulse signal source for single chip microcomputer
    Since the pulse signal source generated by the single-chip microcomputer is realized by software, the output frequency and step are limited by the single-chip microcomputer clock frequency, the number of instructions and the instruction execution cycle. This paper introduces a pulse signal source with CPLD as the
[Microcontroller]
CPLD implementation method of pulse signal source for single chip microcomputer
Development of heat meter communication module based on 89C2051 single chip microcomputer
1 Introduction The popularization of centralized heating and the implementation of metered heating are effective means of building energy conservation, but this needs to be achieved through the automation of heating system operation and management. In order to study the control and regulation methods of the
[Microcontroller]
Development of heat meter communication module based on 89C2051 single chip microcomputer
Relay Control Based on Single Chip Microcomputer
1. Experimental purpose Master the basic methods and programming of relay control. 2. Experimental content 1. Experimental schematic diagram: 2. Experimental content Use the high and low levels output by port P1 to control the opening and closing of the relay to achieve control of external
[Microcontroller]
Relay Control Based on Single Chip Microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号