5082 views|16 replies

2768

Posts

397

Resources
The OP

Msp430 strange phenomenon [Copy link]

I have replied to this before. I did not press the key, but it lit up when I brought my hand close to it.
This post is from Microcontroller MCU

Latest reply

The problem of human body static electricity can be avoided by setting it up or down.  Details Published on 2014-4-30 13:18
Personal signature

5174

Posts

5

Resources
2
Did your hand touch the board? Did your hand touch the board?
This post is from Microcontroller MCU
Personal signature没工作,没女人老婆,没宽带 ,  没钱

2768

Posts

397

Resources
3
Touched, not pressed
This post is from Microcontroller MCU
Personal signature

5174

Posts

5

Resources
4
Can you post the code? Especially the one related to the LED IO? Also, do you still have this problem when you use battery power? Try wearing shoes made of different materials? Does your computer's 220V power supply have a ground wire? If not, put a wire on the shell and step on it. Try changing the direction of your 220 power plug?
This post is from Microcontroller MCU
Personal signature没工作,没女人老婆,没宽带 ,  没钱

2768

Posts

397

Resources
5
The code is a simple keystroke program. #include
void main(void) { WDTCTL = WDTPW + WDTHOLD; P1DIR |= BIT0+BIT6; P1OUT &=~BIT0+BIT6; P1IES |= BIT3; P1IE |= BIT3; P1IFG &=~BIT3; _BIS_SR(LPM4_bits + GIE); } #pragma vector=PORT1_VECTOR __interrupt void port(void) { P1OUT ^=BIT0+BIT6; P1IFG &=~BIT3; }
This post is from Microcontroller MCU
Personal signature

5174

Posts

5

Resources
6
Are you using the new version of LaunchPad or the old version? The new version does not have a pull-up resistor. If it is a new version, do you need to turn on the pull-up resistor in the software? Is this sentence necessary? : P1IREN |= BIT3;
This post is from Microcontroller MCU
Personal signature没工作,没女人老婆,没宽带 ,  没钱

2768

Posts

397

Resources
7
Well, that's it.
This post is from Microcontroller MCU
Personal signature

284

Posts

77

Resources
8
There is no pull-up or pull-down setting, it is the static electricity that is causing the problem: hug: When the MSP430 MCU IO port is used to detect high and low levels, no external pull-up or pull-down is required, because it has internal pull-up and pull-down. When used for high and low level detection, you need to turn on the pull-up or pull-down. If the effective state is high, you need to configure REN to enable the pull-up, and configure OUT to 0, that is, set it to pull-down. If the effective state is low, you need to configure REN to enable, and OUT bit 1, that is, set it to pull-up. If the internal pull-up is not turned on, the IO may appear in an unfixed state. For example, when the IO is input high, the external input is removed, but the IO register is still high. Note: The situation here is that after the IO is input high, the external input is withdrawn, but the IO register IN still remains high, but after the voltage is measured with a multimeter, the IO becomes 0. The reason for this situation is that a 3K resistor and a 100nf capacitor are connected in series to the ground of the IO, and the external input is added to the connection between the resistor and the capacitor. It should be that when external input is applied, the capacitor is charged, and the capacitor maintains the voltage after the external input is removed.
This post is from Microcontroller MCU
Personal signaturei miss you!
新浪微博http://weibo.com/u/3178116863
一切都是最好的安排!感恩,毋需抱怨!

2768

Posts

397

Resources
9
Thanks:)
This post is from Microcontroller MCU
Personal signature

550

Posts

0

Resources
10
Learned
This post is from Microcontroller MCU

603

Posts

4

Resources
11
It should be that the IO port pull-up and pull-down are not done properly.
This post is from Microcontroller MCU

240

Posts

1

Resources
12
Just like mine, P1.3 will light up when you touch it.
This post is from Microcontroller MCU

2768

Posts

397

Resources
13
Add pull-up resistor
This post is from Microcontroller MCU
Personal signature

2768

Posts

397

Resources
14
Internal pull-up, P1REN = P1.3; P1OUT |= P1.3;
This post is from Microcontroller MCU
Personal signature

2768

Posts

397

Resources
15
Internal pull-up, P1REN = P1.3; P1OUT |= P1.3;
This post is from Microcontroller MCU
Personal signature

8

Posts

0

Resources
16
499362154 Published on 2013-3-9 11:13 There is no pull-up or pull-down setting. It is static electricity that is causing the problem. When the MSP430 microcontroller IO port is used to detect high and low levels, no external pull-up or pull-down is required. ...
{:1_113:} Great! I didn't know about this and never paid attention to it. Thank you.
This post is from Microcontroller MCU

22

Posts

0

Resources
17
The problem of human body static electricity can be avoided by setting it up or down.
This post is from Microcontroller MCU

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list