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

MSP430G2955: MSP430G2955

$
0
0

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


Viewing all articles
Browse latest Browse all 21969

Trending Articles



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