MSP430 Pull-up Resistors & Secondary Functions of I/O Ports

Publisher:电子创新者Latest update time:2015-11-09 Source: eefocusKeywords:MSP430 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
When introducing these four I/O ports, a "pull-up resistor" was mentioned. So what is a pull-up resistor? What does it do? Since it is a resistor, it is of course a resistor. When used as an input, the pull-up resistor pulls its potential up, and if the input is low, it can provide a current source; so if the P0 port is used as an input, it is in a high impedance state, and only an external pull-up resistor can be effective.

The "second function" you mentioned should refer to the peripheral module function. If you use the module, select "second function", and if you don't use the module, select "first function". You can select by setting the PxSEL register. Writing "0" to a certain bit is I/O; writing "1" is "second function". When using a comparator (on-chip peripheral module), set it to the second function. Of course, if you use an off-chip comparator and send its output high or low level (1 or 0) to MSP430, then select "first function".

Keywords:MSP430 Reference address:MSP430 Pull-up Resistors & Secondary Functions of I/O Ports

Previous article:How the program is debugged in RAM and how it is run after being solidified
Next article:Key program PORT interrupt program

Latest Microcontroller Articles
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号