Other Parts Discussed in Thread: MSP430G2553
Hi everyone;
Lately I've developed a need to increase the clock speed of my msp430g2553. I have been using the following code to run the clock at 1MHz.
void ConfigClocks(){
BCSCTL1 =CALBC1_1MHZ; //set range
DCOCTL = CALDCO_1MHZ; //set DCO step+ modulation
BCSCTL3 |= LFXT1S_2; //LFXT1 = VLO
IFG1 &= ~OFIFG; //clear OSCFault flag
BCSCTL2 |= SELM_0 +DIVM_3 +DIVS_3; //MCLK = DCO/8, SMCLK = DCO/8
}
In order to increase the clock speed I adjusted all of the clock speeds from 1MHz to 8 MHz which resulted in the following final draft of code
void ConfigClocks(){
BCSCTL1 =CALBC1_8MHZ; //set range
DCOCTL = CALDCO_8MHZ; //set DCO step+ modulation
BCSCTL3 |= LFXT1S_2; //LFXT1 = VLO
IFG1 &= ~OFIFG; //clear OSCFault flag
BCSCTL2 |= SELM_0 +DIVM_3 +DIVS_3; //MCLK = DCO/8, SMCLK = DCO/8
}
I looked in the header file "msp430g2553.h" and found that there are definitions for CALBC1_8MHz and CALDCO_8MHz, but I keep getting the following errors,
unresolved symbol CALBC1_8MHZ, first referenced in ./blinker.obj
and
unresolved symbol CALDCO_8MHZ, first referenced in ./blinker.obj
can anyone tell me why these symbols are still unresolved even though they are defined in the header file
"msp430g2553.h"?
Thanks:
Greg