Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

clock speed

clock speed

2007-06-24 by Thomas Keller

OK. I am  new to development kits/systems.  I have my STK-500 set up 
with power (beibng stolen from a disk drive power connector in my PC) 
and the serial connection.   When I try to program in the switches and 
LED sample program, it fails, and the tip suggests checking clock 
frequency setting.  WHERE am I supposed to check that, and where do I 
set it?

tom

Re: [AVR-Chat] clock speed

2007-06-24 by Cat

I may be wrong, but DISCONNECT THAT IMMEDIATELY! USE A WALLWART!

Ground of PC should not go to the power connector of the STK500, because 
there's a bridge rectifier there...
You might have blown it.

If I'm wrong, sorry about the panic :-)

Cat
----- Original Message ----- 
Show quoted textHide quoted text
From: "Thomas Keller" <tjkeller1@alltel.net>
To: <AVR-Chat@yahoogroups.com>
Sent: Saturday, June 23, 2007 7:30 PM
Subject: [AVR-Chat] clock speed


>
> OK. I am  new to development kits/systems.  I have my STK-500 set up
> with power (beibng stolen from a disk drive power connector in my PC)
> and the serial connection.   When I try to program in the switches and
> LED sample program, it fails, and the tip suggests checking clock
> frequency setting.  WHERE am I supposed to check that, and where do I
> set it?
>
> tom
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

RE: [AVR-Chat] clock speed

2007-06-24 by larry barello

Many AVR chips come factory programmed with internal 1mhz rc oscillator
enabled.  Those require an ISP frequency of 250khz or less to program.

You find the ISP frequency on the "board" tab of the STK500 dialog.

Once you get the ISP frequency correct, you can reprogram various fuses for
higher frequency oscillator options.
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Thomas Keller
Sent: Saturday, June 23, 2007 6:31 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] clock speed


OK. I am  new to development kits/systems.  I have my STK-500 set up 
with power (beibng stolen from a disk drive power connector in my PC) 
and the serial connection.   When I try to program in the switches and 
LED sample program, it fails, and the tip suggests checking clock 
frequency setting.  WHERE am I supposed to check that, and where do I 
set it?

tom



 
Yahoo! Groups Links

Re: [AVR-Chat] clock speed

2007-06-24 by Cat C

I wrote the previous as soon as I could, in case speed was of the essence... 
to save your board.
Then I gave it some thought, and... sure a diode is shorted, but I think it 
should still work.

Sorry about that :-)

Cat

----Original Message Follows----
Show quoted textHide quoted text
From: "Cat" <catalin_cluj@hotmail.com>
Reply-To: AVR-Chat@yahoogroups.com
To: <AVR-Chat@yahoogroups.com>
Subject: Re: [AVR-Chat] clock speed
Date: Sat, 23 Jun 2007 22:24:12 -0600

I may be wrong, but DISCONNECT THAT IMMEDIATELY! USE A WALLWART!

Ground of PC should not go to the power connector of the STK500, because
there's a bridge rectifier there...
You might have blown it.

If I'm wrong, sorry about the panic :-)

Cat
----- Original Message -----
From: "Thomas Keller" <tjkeller1@alltel.net>
To: <AVR-Chat@yahoogroups.com>
Sent: Saturday, June 23, 2007 7:30 PM
Subject: [AVR-Chat] clock speed


 >
 > OK. I am  new to development kits/systems.  I have my STK-500 set up
 > with power (beibng stolen from a disk drive power connector in my PC)
 > and the serial connection.   When I try to program in the switches and
 > LED sample program, it fails, and the tip suggests checking clock
 > frequency setting.  WHERE am I supposed to check that, and where do I
 > set it?
 >
 > tom
 >
 >
 >
 >
 > Yahoo! Groups Links
 >
 >
 >
 >




Yahoo! Groups Links



_________________________________________________________________
Fight Allergies With Live Search 
http://search.live.com/results.aspx?q=Remedies+For+Spring+Allergies&mkt=en-ca&FORM=SERNEP

Interfacing a 5 Volts LCD to a 3.3 Volts system.

2007-06-24 by Alexandre Guimarães

Hi,

    I have to interface a 5 volts 160x160 LCD display to a 3.3 volts system 
and after reading the LCD specs I am quite sure that I will not violate the 
minimum voltage levels of the inputs but I may have to use partially the LCD 
memory for other functions so I may have to use it bi-directionaly. My CPU 
will be a AtMega324P. Will series resistors to limit current in the data bus 
be enough in this case ? I have not found any specs in the data sheets about 
how much current the internal protection diodes on the AVR's would take :-(

Best regards,
Alexandre Guimaraes

Re: [AVR-Chat] clock speed

2007-06-24 by Roy E. Burrage

It's never a good idea to power an external circuit from your computer's 
supply.  If there's a problem externally there's a chance you might let 
all of the smoke out of the computer supply...and once we let the smoke 
out, they quit working.  At that point we have an external circuit that 
has to be replaced...and a computer that needs to be repaired or replaced.

Not that I've ever done this, mind you...


REB




Cat C wrote:
Show quoted textHide quoted text
>I wrote the previous as soon as I could, in case speed was of the essence... 
>to save your board.
>Then I gave it some thought, and... sure a diode is shorted, but I think it 
>should still work.
>
>Sorry about that :-)
>
>Cat
>
>----Original Message Follows----
>From: "Cat" <catalin_cluj@hotmail.com>
>Reply-To: AVR-Chat@yahoogroups.com
>To: <AVR-Chat@yahoogroups.com>
>Subject: Re: [AVR-Chat] clock speed
>Date: Sat, 23 Jun 2007 22:24:12 -0600
>
>I may be wrong, but DISCONNECT THAT IMMEDIATELY! USE A WALLWART!
>
>Ground of PC should not go to the power connector of the STK500, because
>there's a bridge rectifier there...
>You might have blown it.
>
>If I'm wrong, sorry about the panic :-)
>
>Cat
>----- Original Message -----
>From: "Thomas Keller" <tjkeller1@alltel.net>
>To: <AVR-Chat@yahoogroups.com>
>Sent: Saturday, June 23, 2007 7:30 PM
>Subject: [AVR-Chat] clock speed
>
>
> >
> > OK. I am  new to development kits/systems.  I have my STK-500 set up
> > with power (beibng stolen from a disk drive power connector in my PC)
> > and the serial connection.   When I try to program in the switches and
> > LED sample program, it fails, and the tip suggests checking clock
> > frequency setting.  WHERE am I supposed to check that, and where do I
> > set it?
> >
> > tom
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
>
>
>
>Yahoo! Groups Links
>
>
>
>_________________________________________________________________
>Fight Allergies With Live Search 
>http://search.live.com/results.aspx?q=Remedies+For+Spring+Allergies&mkt=en-ca&FORM=SERNEP
>
>
>
> 
>Yahoo! Groups Links
>
>
>
>
>
>  
>

Re: [AVR-Chat] Interfacing a 5 Volts LCD to a 3.3 Volts system.

2007-06-24 by xolang1

ever tried max3000 from maxim? its a biderectional logic level translator,.

Alexandre Guimarães <listas@logikos.com.br> wrote:          Hi,

I have to interface a 5 volts 160x160 LCD display to a 3.3 volts system 
and after reading the LCD specs I am quite sure that I will not violate the 
minimum voltage levels of the inputs but I may have to use partially the LCD 
memory for other functions so I may have to use it bi-directionaly. My CPU 
will be a AtMega324P. Will series resistors to limit current in the data bus 
be enough in this case ? I have not found any specs in the data sheets about 
how much current the internal protection diodes on the AVR's would take :-(

Best regards,
Alexandre Guimaraes



         

       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 

[Non-text portions of this message have been removed]

re: STK-500 <-> AVR Studio

2007-06-24 by Thomas Keller

OK, perhaps I didn't explain my problem sufficiently.   I can neither 
read data from the on board 8515, nor write data to it (in either 
program mode or control mode. I cannot read the fuses or lock bits, for 
example, nor can I program or otherwise write to the device on the STK-500.

   When I try I get a failure dialogue box that includes a long winded 
"hint" to check the clock frequency on the processor being targetted.  
Since I can neither read nor write to the processor, how in hell do I do 
this?

  The Switches and LEDs demonstration program which comes burned into 
the 8515 runs just fine.


   So what am, I doing wrong? Nothing in the STK-500 User Guide has helped,

Tom

RE: [AVR-Chat] re: STK-500 <-> AVR Studio

2007-06-24 by larry barello

You have the ISP jumper cable installed correctly?  Is the board set
properly to drive the clock input of the chip?  The 8515 is archaic and
needs an external clock (IIRC).  Is the ISP clock frequency less than 1/4
the CPU clock frequency?
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Thomas Keller
Sent: Sunday, June 24, 2007 8:46 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] re: STK-500 <-> AVR Studio



   OK, perhaps I didn't explain my problem sufficiently.   I can neither 
read data from the on board 8515, nor write data to it (in either 
program mode or control mode. I cannot read the fuses or lock bits, for 
example, nor can I program or otherwise write to the device on the STK-500.

   When I try I get a failure dialogue box that includes a long winded 
"hint" to check the clock frequency on the processor being targetted.  
Since I can neither read nor write to the processor, how in hell do I do 
this?

  The Switches and LEDs demonstration program which comes burned into 
the 8515 runs just fine.


   So what am, I doing wrong? Nothing in the STK-500 User Guide has helped,

Tom




 
Yahoo! Groups Links

Re: [AVR-Chat] re: STK-500 <-> AVR Studio

2007-06-24 by Thomas Keller

Hrm.   I can set the STK-500 oscillator frequency and the ISP 
frequency, and I can set and read the Vtarget and Aref voltages.  But 
any attempt to access fuse bits or lock bits results in an error box 
with the following text at the top: "A problem occurred while executing 
the command.  See command output for more info."    Query: Where is the 
"command output?" found?
Therre ids also a long paragraph about ensuring that the "ISP 
programming frequency is set well below 1/4 of the clock frequenxcy of 
the device."  So far as I can tell, it is so set (STK OScillator set to 
1.843 Mhz, ISP frequency set to 115.2 Khz).  So what the hell?

Tom

Re: [AVR-Chat] re: STK-500 <-> AVR Studio

2007-06-24 by Thomas Keller

larry barello wrote:
>
> You have the ISP jumper cable installed correctly?
>
>   

  Nope, I didn't. *DOH*  I  knew it was going to be sometihng really 
supid that I was doing wrong..  *heh*   thanks

Re: [AVR-Chat] Interfacing a 5 Volts LCD to a 3.3 Volts system.

2007-06-24 by Alexandre Guimarães

Hi,

    Getting Maxim parts down in Brazil is a big problem....

    I changed the circuit to use a voltage divider.. Space is not a problem 
at this application and this way I will not be violating any chip specs.. 
Better safe than sorry :-)

Best regards,
Alexandre Guimaraes
Show quoted textHide quoted text
----- Original Message ----- 
From: "xolang1" <xolang1@yahoo.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Sunday, June 24, 2007 8:10 AM
Subject: Re: [AVR-Chat] Interfacing a 5 Volts LCD to a 3.3 Volts system.


ever tried max3000 from maxim? its a biderectional logic level translator,.

Alexandre Guimarães <listas@logikos.com.br> wrote:          Hi,

I have to interface a 5 volts 160x160 LCD display to a 3.3 volts system
and after reading the LCD specs I am quite sure that I will not violate the
minimum voltage levels of the inputs but I may have to use partially the LCD
memory for other functions so I may have to use it bi-directionaly. My CPU
will be a AtMega324P. Will series resistors to limit current in the data bus
be enough in this case ? I have not found any specs in the data sheets about
how much current the internal protection diodes on the AVR's would take :-(

Best regards,
Alexandre Guimaraes






---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games.

[Non-text portions of this message have been removed]




Yahoo! Groups Links

Re: [AVR-Chat] clock speed

2007-06-24 by David VanHorn

I'd agree, also 5V isn't enough to run the STK-500, and 12V is a bit too much.
The regulator on the kit is a bit underdesigned, 9V is better.
Get something from Goodwill, 9V at around 1A is good.


And what they said on the clock speed, assuming your chips are new,
they are set for 1MHz internal R/C, so you need to use < 250kHz to
program them the first time.
I find it easiest to just leave my programmers on that setting, since
it works with pretty much everything. (Unless you have <1MHz clock on
your system...)

Re: [AVR-Chat] re: STK-500 <-> AVR Studio

2007-06-24 by David VanHorn

>   Nope, I didn't. *DOH*  I  knew it was going to be sometihng really
> supid that I was doing wrong..  *heh*   thanks


Ah.. "Does not work when not plugged in"  :)

Re: [AVR-Chat] clock speed

2007-06-24 by Thomas Keller

David VanHorn wrote:
>
> I'd agree, also 5V isn't enough to run the STK-500, and 12V is a bit 
> too much.
> The regulator on the kit is a bit underdesigned, 9V is better.  
>
 
Uhm.   According to the documentation for the STK-500 (page 2-1) the 
STK-500 will work with anything between 9 Volts and 15 Volts, AC or DC, 
@ 500 mA minimum.

Unfortunately, I am not in a position to purchase anything, at any 
price, until uly 3.  I don't want to wait that long to start learning to 
use the STK-500.  Thjis is my first ever use of a commercial development 
kit/board, and the learning curve is a bit steeper than I anticipated.


tom

Re: [AVR-Chat] clock speed

2007-06-25 by John Samperi

At 08:31 AM 25/06/2007, you wrote:
>Unfortunately, I am not in a position to purchase anything, at any
>price, until uly 3.

So WHAT do you have around that you could use? If you have a 9Vac
transformer with the correct current rating you could use that.

Remember to measure the voltage BEFORE connecting it to the STK500,
the no load voltage will be much higher, maybe up to 14Vac. A 12V TX
could be as high as 16Vac. So the regulator will get a little hot
but it should still be ok.

My personal preference (and others too) is a 9Vdc 1A regulated power
pack as it keeps things cooler with the STK500.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.6/865 - Release Date: 24/06/2007 8:33 AM

Re: [AVR-Chat] clock speed

2007-06-25 by David VanHorn

> Uhm.   According to the documentation for the STK-500 (page 2-1) the
> STK-500 will work with anything between 9 Volts and 15 Volts, AC or DC,
> @ 500 mA minimum.

Yeah, I know what the docs say..  I know how hot that reg gets too..

Re: Interfacing a 5 Volts LCD to a 3.3 Volts system.

2007-06-25 by cnfhjcnby

read Philips AN97055 or 74LVC125

--- In AVR-Chat@yahoogroups.com, xolang1 <xolang1@...> wrote:
>
> ever tried max3000 from maxim? its a biderectional logic level 
translator,.
> 
> Alexandre Guimarães <listas@...> wrote:          Hi,
> 
> I have to interface a 5 volts 160x160 LCD display to a 3.3 volts 
system 
> and after reading the LCD specs I am quite sure that I will not 
violate the 
> minimum voltage levels of the inputs but I may have to use 
partially the LCD 
> memory for other functions so I may have to use it bi-directionaly. 
My CPU 
> will be a AtMega324P. Will series resistors to limit current in the 
data bus 
> be enough in this case ? I have not found any specs in the data 
sheets about 
> how much current the internal protection diodes on the AVR's would 
take :-(
> 
> Best regards,
> Alexandre Guimaraes
> 
> 
> 
>          
> 
>        
> ---------------------------------
> Moody friends. Drama queens. Your life? Nope! - their life, your 
story.
Show quoted textHide quoted text
>  Play Sims Stories at Yahoo! Games. 
> 
> [Non-text portions of this message have been removed]
>

Re: [AVR-Chat] Re: Interfacing a 5 Volts LCD to a 3.3 Volts system.

2007-06-26 by David VanHorn

For output lines from the 5V to 3.3V system, a simple resistive divider will do.
For inputs, check the data sheets, but in almost all cases you'll find
that the guaranteed levels on the 3.3V system are high enough and low
enough to be valid 1's and 0's to the 5V system without modification.
Bi-directional lines are more interesting, but still not that hard.

Maxim loves to charge you $5 to solve a $0.05 problem.

Re: [AVR-Chat] Re: Interfacing a 5 Volts LCD to a 3.3 Volts system.

2007-06-26 by Alexandre Guimarães

Hi,

    I do not have speed or space problems so I think I can get away nicely 
with just a voltage divider even if the bus is bidirectional. If I am not 
missing anythink obviuos, from 5v to 3v it will work as a regular voltage 
divider and from 3v to 5v it will act as a simple series resistor and a 
resistor to ground that will not affect the voltage levels at all... Looking 
at my display specs the levels will be well within the limits..

Best regards,
Alexandre Guimaraes
Show quoted textHide quoted text
> For output lines from the 5V to 3.3V system, a simple resistive divider 
> will do.
> For inputs, check the data sheets, but in almost all cases you'll find
> that the guaranteed levels on the 3.3V system are high enough and low
> enough to be valid 1's and 0's to the 5V system without modification.
> Bi-directional lines are more interesting, but still not that hard.
>
> Maxim loves to charge you $5 to solve a $0.05 problem.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.