Part Number: MSP432P401R Tool/software: Code Composer Studio Hello everyone. I am new using the MSP430P401R. Most of the code is similar to the code used in MSP430 family but I have an issue trying to make interrupts in Ports and Timer A. What I see, the pins can be set as MSP430 family P4->SEL0 |= ~0xED; P4->SEL1 |= ~0xED; // Make this pins as GPIO P4->DIR &= ~0xED; // Set as input P4->REN |= 0xED; // Set resistors P4->OUT |= 0xED; // Pull-up P4->IES |= 0xED; // Falling edge P4->IFG &= ~0xED; // Clear interrupt flag P4->IE |= 0xED; // Port interrupt enable After this there is this code, that is supposed to enable the interruption (I don´t know) NVIC->ISER[1]=1<<((PORT4_IRQn)&&31); But the code to call the interruption is something like this void PORT4_IRQHandler(void){ } Please, someone could explain how to make properly interuptions in Ports and Timer A interruption Regards.
↧