This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430G2955: MSP430G2955

Part Number: MSP430G2955

Hello Everyone,

I am bit confused of the usability of SMCLK and SPI configuration and have some other question related to frequency sitting, so what i understand is that the SMLCK is sourcing the peripherals like SPI in my case, and from the module+ registers i can configure the frequency  according to my wishes and also i can use this SMCLK to feed pin which is connected to it,am i wrong?

for the other question, i wante to configure the registers accessing directly the bits,i looked at one example from MS430ware and they are using directly certain predifined value as below

 DCOCTL = 0;                               // Select lowest DCOx and MODx settings
  BCSCTL1 = CALBC1_8MHZ;                    // Set DCO to 8MHz
  DCOCTL = CALDCO_8MHZ;
  P2DIR |= 0x07;                            // P2.0,1,2 output direction
  P2SEL |= 0x03;                            // P2.0 = ACLK, P2.1 = SMCLK

so i  opened declaration of the CALBC1_8MHZ but didn t find anything detailed about it

an i thought if i configure the RSELx ,DCOx and MODx would be the same but this is what it says on the datasheet.

fDCO(13,3) DCO frequency (13, 3) RSELx = 13, DCOx = 3, MODx = 0 3 V 6.00 7.8 9.60 MHz

and

BCSCTL1 = CALBC1_8MHZ,

DCOCTL = CALDCO_8MHZ, 0°C to 85°C 3 V -3 ±0.5 3 %

as you see i am bit lost here, thank you in advance for any help to clarify it

  • This code has nothing to do with SPI; it just configures P2.0/1 to output some clock signals directly.

    The USCI modules can be configured for different clock sources; SMCLK is one of them.

    When you set RSEL/DCO/MOD to 13/0/0, you get some frequency that might be anywhere between 6 and 9.6 MHz. So when testing each chip, the register values that actually result in 8Mhz are searched, and stored in a flash memory location called CALBC1_8MHZ and CALDCO_8MHZ.
  • thank you very much, you cleared my mind

**Attention** This is a public forum