Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MSP430 LaunchPad with G2553 --- P2.6 interrupt does not work

Status
Not open for further replies.

uka1024

Newbie level 1
Newbie level 1
Joined
Nov 11, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hi !

First I used the example delivered with the Launchpad stuff and got
the P1.4 interrupt running ok (resulting in changes of red LED state).

Then I tried the same with P2.0 and P2.4 - they are working ok, too.

Then, trying with input P2.6 the interrupt does not work ! This is also
the XIN-pin on the board, but i don't have the XTAL soldered on it....

The datasheet for the G2553 doesn't give me a hint. Please, help ...


With thanks in advance & best regards, Uli
 

Hello,

Please find the below code for P2.6 Interrupt Driven.

Code:
[syntax=c]#include<msp430g2553.h>
void main(void)
{
WDTCTL=WDTPW+WDTHOLD;
P2DIR |= BIT6;
P2SEL &= ~BIT6;
P1DIR &= ~BIT3;
P1SEL &= ~BIT3;
P1IN |= BIT3;
P1REN |= BIT3;
P1IE |= BIT3;
P1IFG &= ~BIT3;
_BIS_SR(GIE);
}
#pragma vector=PORT1_VECTOR
__interrupt void port1(void)
{
P1IFG &= ~BIT3;
P2OUT^=BIT6;
}[/syntax]

Thank You,


Hi !

First I used the example delivered with the Launchpad stuff and got
the P1.4 interrupt running ok (resulting in changes of red LED state).

Then I tried the same with P2.0 and P2.4 - they are working ok, too.

Then, trying with input P2.6 the interrupt does not work ! This is also
the XIN-pin on the board, but i don't have the XTAL soldered on it....

The datasheet for the G2553 doesn't give me a hint. Please, help ...


With thanks in advance & best regards, Uli

 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top