Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/MSP430FR4133: Error in the Clock section.

$
0
0

Part Number:MSP430FR4133

Tool/software: Code Composer Studio

Hi, I am using the custom MSP430FR4133 board for Water meter which is similar to the one provided in the site. And i also used the same source code given in the site but the problem is the code getting stuck in the clock loop

void CLOCK_Config()
{
P4SEL0 |= BIT1 + BIT2; // Select pin4.1 pin4.2 as crystal function
do
{
CSCTL7 &= ~(XT1OFFG + DCOFFG); // Clear XT1 and DCO fault flag
SFRIFG1 &= ~OFIFG;                                                                                             // the code gets stuck here.......
}while (SFRIFG1 & OFIFG); // Test oscillator fault flag

CSCTL4 = SELA__XT1CLK; // IMPORTANT. Select ACLK = XT1 = 32768Hz
}

I am not getting any errors but the code is not running. Anyone one knows What may be the problem.?

the board schematics and the source code is provided in the below link

TIDM-FRAM-WATERMETERwww.ti.com/.../TIDM-FRAM-WATERMETER


Viewing all articles
Browse latest Browse all 262198

Trending Articles



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