Hi,
I am trying to figure out how I can externally send out a 11mhz clock signal from p1.4. Does anyone have examples or tutorial on how to do so? I have tried searching but I have not found anything.
Thanks
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.
Hi,
I am trying to figure out how I can externally send out a 11mhz clock signal from p1.4. Does anyone have examples or tutorial on how to do so? I have tried searching but I have not found anything.
Thanks
Are you trying to propagate SMCLK out P1.4? If so, the C code examples found on the MSP430G2553 product folder can help illustrate this. Specifically the example msp430g2xx3_clks.c.
Regarding a specific clock frequency of 11MHz, you will need to modify the DCO settings accordingly.
Hi,
Thank you for your reply. I was curious on how do I properly adjust my DCO setting?
I know in header file there are predefined clocks:
BCSCTL1 = CALBC1_1MHZ;
DCOCTL = CALDCO_1MHZ;
is that what I'm changing?
The predefined values to write to the BCSCTL1 and DCOCTL registers are the calibrated values for operating at 1MHz. The MSP430G2553 datasheet indicates it supports 4 calibrated frequencies as indicated in Table 11. Those calibrated frequencies are 1MHz, 8MHz, 12MHz and 16MHz.
Beyond this, you can configure the Basic Clock Module+ to other operating frequencies.
Is there any sample code that sets a not predefined clock frequency?
Alani
Certainly. I would suggest you use the Grace configuration tool within CCSv5 to configure the Basic Clock Module for your non-precalibrated operating frequency. Through the Basic Mode option of the Grace configuration tool, you can specify a custom frequency (ie. non 1MHz, 8MHz, 12MHz and 16MHz).
**Attention** This is a public forum