Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22073

MSP430FR5994: Set the delay for 0.1us

$
0
0
Part Number: MSP430FR5994

Tool/software:

Hi TI support team,

Could you please provide guidance on how to set the GPIO to trigger with a delay of 0.1 microseconds?

This is my current setup for the system clock.

//initialize Clock System DCO = 8MHz
CS_setDCOFreq(CS_DCORSEL_0 , CS_DCOFSEL_6); // Set the DCO to 8MHz

// Configure clock source and clock dividers.
CS_initClockSignal(CS_MCLK , CS_DCOCLK_SELECT , CS_CLOCK_DIVIDER_1); // MCLK=DCOCLK/1=8MHz
CS_initClockSignal(CS_SMCLK , CS_DCOCLK_SELECT , CS_CLOCK_DIVIDER_1); // SMCLK=DCOCLK/1=8MHz
CS_initClockSignal(CS_ACLK , CS_LFXTCLK_SELECT , CS_CLOCK_DIVIDER_1); // ACLK=LFXT1/1=32768Hz

I measured the GPIO pin with an oscilloscope, and the delay is approximately 0.6 microseconds.

P3OUT |= BIT2;

P3OUT &= ~BIT2;

Thank you.


Viewing all articles
Browse latest Browse all 22073

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>