Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Why Cristal don't oscillate??

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
pinkfloyd11

Bascom Member



Joined: 02 Jul 2007
Posts: 247

italy.gif
PostPosted: Wed Dec 19, 2007 8:09 pm    Post subject: Why Cristal don't oscillate?? Reply with quote

Dear Friends

I have realized a program on ATmega8515 and it work good when run on STK500.

After I have realized a prototype on bread board using the same cristal placed on stk500. The pin of cristal are placed between Xtal1 and Xtal2.
From the same pin 2 condenser of 33pF go to gnd.

The clock fuse bit selected is:
Ext. RC Osc. 8MHz - 12 MHz StartUp time : 6CK+4ms

Why I do not view oscillation when place the scope on pin 19?

Thanks
Back to top
View user's profile
SteveT

Bascom Member



Joined: 16 Apr 2005
Posts: 61

canada.gif
PostPosted: Wed Dec 19, 2007 8:46 pm    Post subject: Reply with quote

Hello,

Check for clean connection without FLUX. I have already this probleme with SOLDER containt WATER SOLUB FLUX. And check for your power supply, to avoid to much ripple on the supply line, The evaluation board have a good filtration....

Steve

ps. You have seen that my English is a bit special, excuse me
Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Wed Dec 19, 2007 9:38 pm    Post subject: Reply with quote

Hi,

Wrong fuse if you use a 8MHz crystal.

AVR Studio 4.13

Use this setting:
Ext. Crystal/Resonator High Freq.; Start-up time: 16K CK + 64 ms

Best regards,

Luciano
Back to top
View user's profile
pinkfloyd11

Bascom Member



Joined: 02 Jul 2007
Posts: 247

italy.gif
PostPosted: Wed Dec 19, 2007 11:14 pm    Post subject: Reply with quote

Dear Luciano

I use 16MHz quartz.
In this case which is the best fuse?
Are 33pF correct value?

Thanks

Luciano wrote:
Hi,

Wrong fuse if you use a 8MHz crystal.

AVR Studio 4.13

Use this setting:
Ext. Crystal/Resonator High Freq.; Start-up time: 16K CK + 64 ms

Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Thu Dec 20, 2007 9:28 am    Post subject: Reply with quote

Hi,

For a 16MHz crystal use this setting:
Ext. Crystal/Resonator High Freq.; Start-up time: 16K CK + 64 ms

Make sure you are using an ATmega8515 and not an ATmega8515L.
Speed Grades:
0 to 8 MHz for ATmega8515L
0 to 16 MHz for ATmega8515

* * *

Click to enlarge the picture

Best regards,

Luciano
Back to top
View user's profile
pinkfloyd11

Bascom Member



Joined: 02 Jul 2007
Posts: 247

italy.gif
PostPosted: Thu Dec 20, 2007 10:40 am    Post subject: Reply with quote

Hello

on chip there is this:

ATMEGA8515
16PU
0602

Howhewer on STK500 I have 16MHz crystal and when the same is placed on it, work good.

Thanks
Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Thu Dec 20, 2007 11:28 am    Post subject: Reply with quote

Hi,

The crystal is used for the oscillator on the STK500.

When you plug an AVR chip into the sockets of the STK500
the AVR chip gets the TTL clock from the the oscillator on the STK500.
(See the STK500 manual for details).

The second clock option you have while using the STK500 is to
remove the jumper XTAL1 and use the internal RC oscillator of the AVR.

Best regards,

Luciano
Back to top
View user's profile
pinkfloyd11

Bascom Member



Joined: 02 Jul 2007
Posts: 247

italy.gif
PostPosted: Thu Dec 20, 2007 10:47 pm    Post subject: Reply with quote

Hello

I have set the fuse bit:

Ext. Crystal/Resonator High Freq.; Start-up time: 16K CK + 64 ms

and now work good also on bread board!

Thanks
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum