ClubRobotInsat / libkicad-robot

Les projets et les librairies KiCad du club robot de l'INSA Toulouse.
0 stars 0 forks source link

Crystal design for stm32f103 #3

Open gbip opened 5 years ago

gbip commented 5 years ago

We need to find a crystal for the microcontroller and the attached capacitance. crystal_1 More information can be found in this application note.

You can find the micro-controller characteristics here : crystal_2 page 105 of the cortex m4 datasheet

goowza commented 5 years ago

The ECS-80-18-5PX (datasheet : csm-7x.pdf) is ok.

(The gm value can be found in the STM32F103 datasheet : cd00161566.pdf and all the other values come from the crystal datasheet)

/!\ If we add this resistance, we will have to recalculate the gain margin taking Rext into account (by adding it to the value of ESR)

gbip commented 5 years ago

Thanks a lot @goowza for your answer, I checked your calculations and everything is correct !

I will add this crystal to the "to buy" list so that we can test it as soon as possible (see #11) ! :smile:

Are you willing to add your comment to the documentation so that people can reuse your work if they need to find an other crystal ? I think that it should go over this section of the documentation (feel free to add a new entry for crystals). @dotsumae is this ok for you ?

gbip commented 5 years ago

I have troubles finding this crystal on online retailers (such as farnell or rs-components), where can we buy it ?

goowza commented 5 years ago

Yes i'll do that :) I can't find it either, but this one has almost the same caracteristics (the only differences are the size and the ESR value which is 80 ohms instead of 60 ohms). The gain margin value is changed but is equal to 42,4 so that's still > 5.

gbip commented 5 years ago

Nice, thanks !