Part Number: MSP432E401Y
As We know there is a function __delay_cycles at MSP430 series
This function can keep a delay by MCU clocks.
#include <msp430g2231.h>
void main (void)
{
WDTCTL = WDTPW + WDTHOLD ;
for(;;)
{
P1DIR |= BIT0+BIT6;
P1OUT ^= BIT0;
__delay_cycles(1);
P1OUT ^=BIT6;
__delay_cycles(2);
}
}
}
But I can find these function in DriverLib for MSP432E401
Is there a way or function to let MCU delay one clock? I need one delay about 40ns (1/25MHz) if OSC frequency is 25MHz