2012-02-29 07:49 AM
Hi,
I have chosen this 25Mhz Crystal to be my next HSE: http://at.farnell.com/abracon/abm8g-25-000mhz-18-d2-t/crystal-25mhz-18pf-smd/dp/1788523#similarProducts Datasheet: http://www.abracon.com/Resonators/ABM8G.pdf How I calculate the HSE CL1 & CL2 Value? I remember to not take the 18pF Value from the Datasheet, there was a formular: http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00221665.pdf so: Cstray is 4 pF (i dont know but its a common value) CL is 18pF so CL - CStray = 14pF then CL1=CL2= 28pF am I correct with that? WR Alex2012-03-01 10:01 AM
From the datasheet, CL for your selected crystal is 10 pF, so CL1 & CL2 = 12 pF
Cheers, Hal2012-03-01 11:55 PM
ST AN2867 gives useful information and a formula for calculating the ''Gain Margin''. You have chosen a very small crystal with a higher ESR of up to 70 Ohms. I think that the gain margin is only just over 5 for this crystal (5 is recommended). In general, larger crystal package sizes will have lower ESR. The risk is your choice might work in your prototype but in production PCBs, the crystal might not always begin oscillating. Please have a look at the Application Note.
2012-03-05 02:20 AM
Hi John,
Thanks for the Information. Do you know a good 25Mhz crystal which I can replace with my selection? Like this ? two times bigger http://at.farnell.com/aker/c7s-25-000-12-3030-x/kristall-5x7mm-smd-keramik-25-000mhz/dp/1538821 WR Alex @Hal,no the crystal has 18pF CL
ah I see farnell has the wrong datasheet linked.2012-03-05 06:01 AM
You do not state which chip, so if your chip (I know no such ARM) does not have a PLL this will be irrelevant.
why do you use such a high frequency? the EMI will be much more than you would get with a lower freq XTAL and corresponding PLL settings. Erik2012-03-05 09:24 AM
why do you use such a high frequency?
Probably the ability to get 25 MHz out for Ethernet applications, which would otherwise require a second crystal. The STM32's PLL, and clocking scheme, is sufficiently inflexible that picking crystals with magic values (specialized applications, yet mass produced) often out weighs other considerations.2012-03-05 09:52 AM
Specifically, you should prefer a crystal frequency that matches the HSI clock. That is 8MHz for the 32F1xx chips, and 16MHz for the 'F4 chips. This simplifies start-up from sleep.
The reasons to use a different frequency are using Ethernet, USB, or I2S, or you want an odd sampling rate from the ADC. My understanding is that production designs start with a ''usual suspect'' load capacitor for the prototype, then pick a final value based on the observed frequency. For small-scale work it's simpler to just use a bigger HC49 crystal and 18pf capacitor, then check that the crystal starts up in a reasonable time. Having the HSI clock immediately available and a HSE Ready status bit in RCC_CR makes this easy to do in firmware on the STM32.2012-03-07 02:31 AM
I'm using a STM32F407, I chose a 25MHz because the Std.Periph.Lib is made for 25MHz HSE. I can go with a 8Mhz as shown on the Discovery F4, but I have to change the Lib's alltime. This is not such a big Problem but i thought it would be better.
I want to use the Ethernet too. But It would be no Problem to implement a second crystal. RG Alex