Author Topic: Please give a suggestion, STC12C5A60S2 oscillator problem  (Read 906 times)

0 Members and 1 Guest are viewing this topic.

Offline BerserkTopic starter

  • Contributor
  • Posts: 13
  • Country: ru
Please give a suggestion, STC12C5A60S2 oscillator problem
« on: February 10, 2019, 05:45:49 pm »
Hello Everyone! Please can anyone give me a suggestion what can be cause of strange problem with starting STC12C5A60S2 ?

Board on STC12C5A60S2 wouldn't start until I touch oscillator pins with unconnected! multimeter wires, seems like capacitance of wires, ~some pf, make a deal.
Recently I tried different oscillators orignal-4mh, 6, 8, 10, 12 mhz, different capacitors 1, 10, 22, 47 pf, nothing working. Power line of a board is fine.

Thanks.
« Last Edit: February 10, 2019, 05:49:03 pm by Berserk »
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1545
  • Country: au
Re: Please give a suggestion, STC12C5A60S2 oscillator problem
« Reply #1 on: February 10, 2019, 07:42:50 pm »
Board on STC12C5A60S2 wouldn't start until I touch oscillator pins with unconnected! multimeter wires, seems like capacitance of wires, ~some pf, make a deal.
Recently I tried different oscillators orignal-4mh, 6, 8, 10, 12 mhz, different capacitors 1, 10, 22, 47 pf, nothing working. Power line of a board is fine.

Usually, with a Xtal oscillator the CL varies somewhat inversely with Frequency.
At 4MHz 1pF and 10pF are certainly small.
Even at 12MHz, 1pF and 10pF are small, as they appear in series to the Xtal.
22/33/47pF are more usual, and you can check PCB+device+CL match to the Xtal, with a frequency counter on some clock divided pin, and a few samples.
At 22MHz, you would be more to the lower end.
I think we have tested STC12C5A60S2 at 25MHz, and it was the same Xtal operation as the Atmel MCU we usually use. Dropped straight in.

Q: Where is the power decoupling cap for MCU U4 located ?
 
 
The following users thanked this post: Berserk

Offline BerserkTopic starter

  • Contributor
  • Posts: 13
  • Country: ru
Re: Please give a suggestion, STC12C5A60S2 oscillator problem
« Reply #2 on: February 11, 2019, 02:15:31 am »
Q: Where is the power decoupling cap for MCU U4 located ?

Thank you for reply! I think decoupling cap is C14, and it looks fine 1,2 uf
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: Please give a suggestion, STC12C5A60S2 oscillator problem
« Reply #3 on: February 13, 2019, 05:21:55 am »
If you can redesign the board, I have been using three-pin ceramic resonators recently. They usually has the correct load capacitors integrated and you just need to ground the middle pin to get it working.
 

Offline Cicero

  • Contributor
  • Posts: 20
  • Country: gb
Re: Please give a suggestion, STC12C5A60S2 oscillator problem
« Reply #4 on: February 13, 2019, 10:58:06 am »
Nothing blatantly obvious...but it may be useful to rethink the layout.

There the zero decoupling caps for the MCU (in view at least), C14 is quite far away and connected to header J4 instead of as-close-as-possible to the MCU power pins - granted we can't see the underside of the board.  Where are the nF caps for higher frequency current requirements?  Maybe there are additional caps on the underside perhaps? 

The crystal layout could also be better, the ground trace runs in a big loop around the outside, I would rather try to minimise the ground loop.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf