This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, I would like to use the interruption method #"pragma vector " for the MSP432, I've found examples only for the MSP430, when I try to use the next code y get the error :
"Description Resource Path Location Type
#2622 The symbol used in #pragma vector= requires a declaration main.c /pruebainterrupcion line 36 C/C++ Problem
"
//////THE CODE
#include <msp.h> // original <msp430.h>
#include <inttypes.h>
int i=0;
int T=30000;
void main(){
WDTCTL= WDTPW+WDTHOLD;
P1SEL= 0x00;
P1DIR|= (BIT0+BIT6);
P1DIR&=~BIT3;
P1REN|=BIT3;
P1IE|=BIT3;
P1IES|=BIT3;
P1IFG&=~BIT3;
P1OUT|=BIT0;
P1OUT&=~BIT6;
_BIS_SR(GIE);
while(1){
for(i=0;i<T;i++);
P1OUT^=BIT6;
P1OUT^=BIT0;
if(T<=1500){T=30000;}
}
}
#pragma vector= PORT1_VECTOR
__interrupt void Led_ISR (void){
P1IFG&=~BIT3;
T=T-2000;
}
Also I was looking in the MSP432™ Platform Porting Guide, there in secction 4.2.3.1 I've found that there are 3 steps for enabling interruptions(RTCPS1CTL |= RTP1PSIE;SCS_NVIC_ISER=INT_RTC_BIT;__enable_interrupt())
The second one is an extra step for the MSP432, but even the other two that are suppose to be used in the MSP430 are no defined in the example code that is functional.
That is confusing, I just want to make a simple interruption like on the example code.
Thanks!!!!!
Hi Josue!
Response here in your other thread:
MSP 432 Interruption whit button - MSP low-power microcontroller forum - MSP low-power microcontrollers...
Dennis
**Attention** This is a public forum