Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62426

Forum Post: RE: Clock switching from DCOCLKDIV to XT2 and back to DCOCLKDIV

$
0
0
1. Initial sequence for setting SMCLK with XT1 UCSCTL3 |= SELREF__XT1CLK + FLLREFDIV__1; UCSCTL0 = 0x0000; UCSCTL1 = DCORSEL_4; UCSCTL2 = FLLD_1 + 149; __bic_SR_register(SCG0); 2. Switching SMCLK source to XT2 UCSCTL6 &= ~XT2OFF; UCSCTL6 &= ~XT2DRIVE0; UCSCTL4 |= SELS__XT2CLK + SELM__XT2CLK; 3. Switching back the SMCLK source to XT1 UCSCTL6 |=XT2OFF; UCSCTL3 |= SELREF__XT1CLK + FLLREFDIV__1; UCSCTL0 = 0x0000; UCSCTL1 = DCORSEL_4; UCSCTL2 = FLLD_1 + 149; __bic_SR_register(SCG0);

Viewing all articles
Browse latest Browse all 62426

Trending Articles



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