Part Number: MSP432P401R
Hi everybody.
I'm migrating from MSP430 to MSP432.
In MSP430 is necessary to add a NOP instruction before or/after after any instruction setting or clearing interrupt enable or interrupt flag bit (section interrupt acceptance, page 60 SLAU208Q).
I look for < similar section in MSP432P4xx SimpleLink Microcontrollers Technical Reference Manual but found nothing related.
My question is: shouldI insert NOP in MSP432 like in MSP430?
For example, I want to create a critical section for DIO P3.5 and this is may proposal. Is it necessary to insert any NOP?
uint8_t check_and_clear_P35_flag (void)
{
uint8_t interrupt_state;
uint8_t copy_flag;
interrupt_state = (P3->IE & BIT5);
P3->IE &= ~BIT5;
copy_flag = P35_flag;
P35_flag = 0;
P3->IE |= interrupt_state;
return (copy_flag);
}
Thanks for your help.
Toni