EmbeddedRelated.com
Forums

Clock Source Problem

Started by SoneR August 24, 2009
Hello,

I am using Timer Module, UART Module and WDT+ of 430F2370 microcontroller.
When I try to use different clock sources for these modules, I observed
different responses from the system.

If I use ACLK for the UART Module and SMCLK for the others (WDT+ and Timer)
, the system works properly. However If I switch to SMCLK for UART, the
system shows some inconsistencies.

Besides, If I use ACLK for timer and SMCLK for the others, the system also
shows instable responses.

The question is that, does a clk source have a limit or capacity to be used?
Couldn't I use a clk signal for any purposes I need? Is there any
restriction for that?

----

As a second question; In the datasheet, there are time intervals for DCO
frequency and minimum and maximım values exist for each interval.

How can I be sure about the exact frequency of DCO for a selected interval?
In other words, how does DCO frequency change within a selected interval?

Thank you very much...

--
Soner ISIKSAL


Beginning Microcontrollers with the MSP430

I would not call ACLK, SMCLK, or MCLK "clock sources". I call them clock routers. Crystal oscillators, Digital Controlled oscillators, etc. are what I called clock sources. You cannot connect a source to its destiny directly. You need to use one of the routers.

No there is no limit of how many destinies a router has to deliver.

The DCO uses semiconductor resistors and capacitors to generate the time base. The current technology cannot make them precise. They vary from batch to batch. Within the batch, they vary from chip to chip. And for each chip, they still vary depending on temperature, voltage, and age. This is what the min/max about.

--- In m..., SoneR wrote:
>
> Hello,
>
> I am using Timer Module, UART Module and WDT+ of 430F2370 microcontroller.
> When I try to use different clock sources for these modules, I observed
> different responses from the system.
>
> If I use ACLK for the UART Module and SMCLK for the others (WDT+ and Timer)
> , the system works properly. However If I switch to SMCLK for UART, the
> system shows some inconsistencies.
>
> Besides, If I use ACLK for timer and SMCLK for the others, the system also
> shows instable responses.
>
> The question is that, does a clk source have a limit or capacity to be used?
> Couldn't I use a clk signal for any purposes I need? Is there any
> restriction for that?
>
> ----
>
> As a second question; In the datasheet, there are time intervals for DCO
> frequency and minimum and maximım values exist for each interval.
>
> How can I be sure about the exact frequency of DCO for a selected interval?
> In other words, how does DCO frequency change within a selected interval?
>
> Thank you very much...
>
> --
> Soner ISIKSAL
>
>
>
>
Thank you very much for your interest and your correction about my imperfect
terminology - clock source -
The problem I have encountered may have an extraordinary reason since you
said "No there is no limit of how many destinies a router has to deliver"

Thanks...
--
Soner ISIKSAL


You can set up P1.4 to show you the SMCLK and use an oscilloscope or frequency meter to determine its frequency.

Are you using DCO to drive SMCLK? If you use the calibration stored in Info Flash to set up DCO, its frequency should be within 3%.

--- In m..., SoneR wrote:
>
> Thank you very much for your interest and your correction about my imperfect
> terminology - clock source -
> The problem I have encountered may have an extraordinary reason since you
> said "No there is no limit of how many destinies a router has to deliver"
>
> Thanks...
> --
> Soner ISIKSAL
>
>