EmbeddedRelated.com
Forums

stk500 crystal problem

Started by argyle1138 September 30, 2003
How do I know when the external crystal is working on the stk500
board?
I have an ecs 4.09 Mhz crystal plugged in and have moved the jumpers
for xtal1 and oscsel through all their permutations. Each time I have
changed the setting I have used avr studio 4 and stk500.exe to verify
that it is working and the proper frequency is set to 4.09 mhz. ( I
have changed the internal osc through studio4 and through stk500.
exe and it appears that the change worked. But the external crystal
is
No go.)
4.09 Mhz never shows up... I have tried different fuse settings as
well. Am I making a newbie mistake somewhere? I have tried this with
90s8515 and with mega8515 ( thought it might be because of the fuse
bits being set improperly). I know I can talk to the board because I
have succesfully compilied and downloaded programs to each of the
chips. Can anyone help?

-Andrew


The "read osc" function does not detect the clock frequency of the
external Crystal but the internal ocilator setting.

To use a external crystal have xtal1 jumper mounted and the oscsel
jumper set for "xtal oscillator", you now run from the external
crystal (but you cant calculate the frequency of the crystal with
the software controled oscillator!)

The oscsel jumper chooses which clock source you are using, the
internal software controled oscilator or the external crystal.

--- In avrclub@avrc..., "argyle1138" <andrew@a...> wrote:
> How do I know when the external crystal is working on the stk500
> board?
> I have an ecs 4.09 Mhz crystal plugged in and have moved the
jumpers
> for xtal1 and oscsel through all their permutations. Each time I
have
> changed the setting I have used avr studio 4 and stk500.exe to
verify
> that it is working and the proper frequency is set to 4.09 mhz. (
I
> have changed the internal osc through studio4 and through stk500.
> exe and it appears that the change worked. But the external crystal
> is
> No go.)
> 4.09 Mhz never shows up... I have tried different fuse settings as
> well. Am I making a newbie mistake somewhere? I have tried this
with
> 90s8515 and with mega8515 ( thought it might be because of the
fuse
> bits being set improperly). I know I can talk to the board because
I
> have succesfully compilied and downloaded programs to each of the
> chips. Can anyone help?
>
> -Andrew




Thank you for the answer, after writing some simple display loops I
could see that in fact it does see the crystal.

-Andrew
--- In avrclub@avrc..., daniel_adolfsson <no_reply@y...>
wrote:
> The "read osc" function does not detect the clock frequency of the
> external Crystal but the internal ocilator setting.
>
> To use a external crystal have xtal1 jumper mounted and the oscsel
> jumper set for "xtal oscillator", you now run from the external
> crystal (but you cant calculate the frequency of the crystal with
> the software controled oscillator!)
>
> The oscsel jumper chooses which clock source you are using, the
> internal software controled oscilator or the external crystal.
>
> --- In avrclub@avrc..., "argyle1138" <andrew@a...> wrote:
> > How do I know when the external crystal is working on the stk500
> > board?
> > I have an ecs 4.09 Mhz crystal plugged in and have moved the
> jumpers
> > for xtal1 and oscsel through all their permutations. Each time I
> have
> > changed the setting I have used avr studio 4 and stk500.exe to
> verify
> > that it is working and the proper frequency is set to 4.09 mhz. (
> I
> > have changed the internal osc through studio4 and through stk500.
> > exe and it appears that the change worked. But the external
crystal
> > is
> > No go.)
> > 4.09 Mhz never shows up... I have tried different fuse settings
as
> > well. Am I making a newbie mistake somewhere? I have tried this
> with
> > 90s8515 and with mega8515 ( thought it might be because of the
> fuse
> > bits being set improperly). I know I can talk to the board
because
> I
> > have succesfully compilied and downloaded programs to each of the
> > chips. Can anyone help?
> >
> > -Andrew