Not applicable
May 28, 2014
07:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 28, 2014
07:17 AM
I have just started using the XMC1300 boot kit and when I run the blinky example the measured toggling interval is 0.194 s instead of the configured SystemCoreClock / 5 = 0.2 s, (3% lower). The difference seems too much, any idea what the problem could be?
- Tags:
- IFX
7 Replies
Not applicable
May 28, 2014
11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 28, 2014
11:36 PM
Hi mfsn,
What is the system frequency you are using?
What is the system frequency you are using?
Not applicable
May 29, 2014
05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 29, 2014
05:41 AM
It should be SystemCoreClock=8MHz, since the divider selection was set to 4. The code is very simple:
int main(void)
{
SCU_GENERAL->PASSWD = 0x000000C0UL;
SCU_CLK->CLKCR = 0x3FF00400UL;
while((SCU_CLK->CLKCR)&0x40000000UL);
SCU_GENERAL->PASSWD = 0x000000C3UL;
P0_0_set_mode(OUTPUT_PP_GP);
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock / 5);
while(1)
{
}
return 0;
}
void SysTick_Handler(void)
{
P0_0_toggle();
}
int main(void)
{
SCU_GENERAL->PASSWD = 0x000000C0UL;
SCU_CLK->CLKCR = 0x3FF00400UL;
while((SCU_CLK->CLKCR)&0x40000000UL);
SCU_GENERAL->PASSWD = 0x000000C3UL;
P0_0_set_mode(OUTPUT_PP_GP);
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock / 5);
while(1)
{
}
return 0;
}
void SysTick_Handler(void)
{
P0_0_toggle();
}
Not applicable
Jun 02, 2014
11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 02, 2014
11:27 PM
Hi mfsn,
According to the datasheet, the oscillator accuracy is between -3.9% to 4%.
Therefore, it may not be so precise.
However, to increase the accuracy, you can implement the clock calibration based on external reference signal.
You can refers to this Device Guide
According to the datasheet, the oscillator accuracy is between -3.9% to 4%.
Therefore, it may not be so precise.
However, to increase the accuracy, you can implement the clock calibration based on external reference signal.
You can refers to this Device Guide
Not applicable
Jun 03, 2014
06:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 03, 2014
06:20 AM
Jackson, I know, the datasheet claims: "-3.9% - 4% with respect to fNOM(typ), over temperature (-40 °C to 105 °C)". But it also says that the nominal frequency is "63.5MHz to 64.5MHz under nominal conditions after trimming. The deviation is relative to the factory trimmed frequency at nominal VDDC and TA = + 25 °C".
I just cannot believe that the default calibration from factory is 3% inaccurate for the device on my boot kit!!! Has anybody else measured or noticed this discrepancy in the clock frequency?
I just cannot believe that the default calibration from factory is 3% inaccurate for the device on my boot kit!!! Has anybody else measured or noticed this discrepancy in the clock frequency?
Not applicable
Jun 03, 2014
11:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 03, 2014
11:11 PM
Hi mfsn,
i also measured a deviation of about 3% with my XMC1300-Bootkit. (under nominal conditions: ~25°C)
i also measured a deviation of about 3% with my XMC1300-Bootkit. (under nominal conditions: ~25°C)
Not applicable
Jun 05, 2014
12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 05, 2014
12:34 AM
Hi mfsn,
The oscillator deviation should be around 1% at 25 °C.
Could it be the oscilloscope measurement giving some error?
Since the measurement is in term of msec, the resolution for the oscilloscope is low which may not give an accurate measurement.
Could you try to change the system frequency to 32MHz and set the systick to 3200 ticks?
Additionally, there is example code available for calibration with respect to temperature.
This can be downloaded from the DAVE Example Portal
However, only productive devices includes the required parameters for the calibration.
So the device on our boot kit now is unable to perform the calibration as the device is either EES or ES.
Therefore, it could be also that the device on your bootkit does not trim correctly too.
The oscillator deviation should be around 1% at 25 °C.
Could it be the oscilloscope measurement giving some error?
Since the measurement is in term of msec, the resolution for the oscilloscope is low which may not give an accurate measurement.
Could you try to change the system frequency to 32MHz and set the systick to 3200 ticks?
Additionally, there is example code available for calibration with respect to temperature.
This can be downloaded from the DAVE Example Portal
However, only productive devices includes the required parameters for the calibration.
So the device on our boot kit now is unable to perform the calibration as the device is either EES or ES.
Therefore, it could be also that the device on your bootkit does not trim correctly too.
Not applicable
Jun 19, 2014
08:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 19, 2014
08:27 PM
Hi all,
Trimming of XMC1000 internal oscillator is possible to improve the clock accuracy over the temperature range.
Please refers to XMC1000 TIP of the day: DCO1 calibration with respect to temperature
Trimming of XMC1000 internal oscillator is possible to improve the clock accuracy over the temperature range.
Please refers to XMC1000 TIP of the day: DCO1 calibration with respect to temperature