Yahoo Groups archive

AVR-Chat

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

Thread

Re: [AVR-Chat] Digest Number 680

Re: [AVR-Chat] Digest Number 680

2004-04-27 by Mark Weston

I have a Z8Encore dev system as well and value the comments very much, but this is the AVR group.  Can we move those comments to the Z8 Yahoo group?  
 
Mark

AVR-Chat@yahoogroups.com wrote:

There are 9 messages in this issue.

Topics in this digest:

1. Re: STK500, STK501 & AVR Studio not a complete environment
Show quoted textHide quoted text
From: "Graham Davies" 
2. RE: Re: STK500, STK501 & AVR Studio not a complete environment
From: "Paul Curtis" 

3. Re:Watchdog and sleep modes
From: jamie pollock 
4. OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete ...)
From: "Graham Davies" 
5. Re: OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete ...)
From: "Jesper Hansen" 
6. RE: OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete ...)
From: "Al Welch" 
7. RE: Re:Watchdog and sleep modes
From: "Larry Barello" 
8. Re: Re:Watchdog and sleep modes
From: Brian Dean 
9. Re: Was (What is a current sensing resistor)
From: "Mike" 


________________________________________________________________________
________________________________________________________________________

Message: 1
Date: Mon, 26 Apr 2004 14:14:12 -0000
From: "Graham Davies" 
Subject: Re: STK500, STK501 & AVR Studio not a complete environment

--- In AVR-Chat@yahoogroups.com, "Graham Davies" 
wrote:

> ... I will try GCC for now.

The subject of the thread does drift, doesn't it, but every post was 
a good one. Thanks for the continued help.

I will sign up for the GCC for AVR list. I am familiar with UNIX-
style development environments and have used Makefiles so I don't 
anticipate problems I can't overcome with a little effort. On the 
other hand, I'm using Windows now, so it's WinAVR I will go for.

I understand the point about unifying the stacks. I've been using 
the ZiLOG Z8 Encore!, which is also a modified Harvard architecture, 
and the ZiLOG compiler also produces a lot of stuff on function entry 
and exit. But, the stack frame setup and teardown are intrinsic 
subroutines so there isn't so much in-line code. It is still very 
slow, of course.

Graham.




________________________________________________________________________
________________________________________________________________________

Message: 2
Date: Mon, 26 Apr 2004 15:15:04 +0100
From: "Paul Curtis" 

Subject: RE: Re: STK500, STK501 & AVR Studio not a complete environment

Graham,

> --- In AVR-Chat@yahoogroups.com, "Graham Davies" 
> wrote:
> 
> > ... I will try GCC for now.
> 
> The subject of the thread does drift, doesn't it, but every post was 
> a good one. Thanks for the continued help.
> 
> I will sign up for the GCC for AVR list. I am familiar with 
> UNIX- style development environments and have used Makefiles 
> so I don't 
> anticipate problems I can't overcome with a little effort. On the 
> other hand, I'm using Windows now, so it's WinAVR I will go for.
> 
> I understand the point about unifying the stacks. I've been using 
> the ZiLOG Z8 Encore!, which is also a modified Harvard architecture, 
> and the ZiLOG compiler also produces a lot of stuff on function entry 
> and exit. But, the stack frame setup and teardown are intrinsic 
> subroutines so there isn't so much in-line code. It is still very 
> slow, of course.

I have an Ecore! development system and the Zilog compiler *has*
improved since the early days. But it's still not as good as it could
be. Having said that, it's very decent for the price. IAR have lost
interest in Zilog, I think, and are not providing Encore! compilers.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for MSP430, ARM, and (soon) Atmel AVR processors 


________________________________________________________________________
________________________________________________________________________

Message: 3
Date: Mon, 26 Apr 2004 11:45:27 -0700 (PDT)
From: jamie pollock 
Subject: Re:Watchdog and sleep modes


I am using the watchdog to come out of sleep mode. The watchdog seems to work fine ( i can turn it off sucessfully and re-enable it). My trouble is that when the watchdog resets it doesnot resume after the sleep. The controller begins at the reset vector and clears my registers. Is this what it is supposed to do? I think the documentation states that the registers would be intact.

Any help appreciated



Jamie.



---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�

[This message contained attachments]



________________________________________________________________________
________________________________________________________________________

Message: 4
Date: Mon, 26 Apr 2004 20:06:17 -0000
From: "Graham Davies" 
Subject: OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete ...)

--- In AVR-Chat@yahoogroups.com, "Paul Curtis" 
wrote:

> I have an Ecore! development system
> and the Zilog compiler *has*
> improved since the early days.
> But it's still not as good as
> it could be.

True, but it's not as good as it needs to be either for serious work. 
I have reported many defects to ZiLOG and release after release goes 
by without fixes. I have sunk a lot of effort into that MCU - an 
RTOS, Flash Loader and Prototyping System - and I'm at the point of 
trashing it all. I sure hope the AVR and Atmel are a hell of a lot 
better. Trouble is, that stuff already exists for the AVR.

> ... it's very decent for the price.

True. It is nominally free (comes with the ZiLOG evaluation board), 
so it's hard to say it's not worth the price of nothing.

> IAR have lost interest in Zilog,
> I think, and are not providing
> Encore! compilers.

I tried to persuade the Director of third party tools at ZiLOG that 
he needed to consider bringing an outside source of a compiler on 
line but he was satisfied with their internal development. ZiLOG 
want to do it all themselves. He is no longer at the company.

Graham.




________________________________________________________________________
________________________________________________________________________

Message: 5
Date: Mon, 26 Apr 2004 23:52:29 +0200
From: "Jesper Hansen" 
Subject: Re: OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete ...)

I seem to recall that in the "early days" (late 70's), nobody used Zilog tools.
It was all third-party assemblers, and compilers. 
There must have been a reason for that. Probably the same as today.

Very apropos Atmel - chip-makers should stick to making chips !

/Jesper

----- Original Message ----- 
From: "Graham Davies" 
To: 
Sent: Monday, April 26, 2004 10:06 PM
Subject: [AVR-Chat] OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete ...)


> --- In AVR-Chat@yahoogroups.com, "Paul Curtis" 
wrote:
> 
> > I have an Ecore! development system
> > and the Zilog compiler *has*
> > improved since the early days.
> > But it's still not as good as
> > it could be.
> 
> True, but it's not as good as it needs to be either for serious work. 
> I have reported many defects to ZiLOG and release after release goes 
> by without fixes. I have sunk a lot of effort into that MCU - an 
> RTOS, Flash Loader and Prototyping System - and I'm at the point of 
> trashing it all. I sure hope the AVR and Atmel are a hell of a lot 
> better. Trouble is, that stuff already exists for the AVR.
> 
> > ... it's very decent for the price.
> 
> True. It is nominally free (comes with the ZiLOG evaluation board), 
> so it's hard to say it's not worth the price of nothing.
> 
> > IAR have lost interest in Zilog,
> > I think, and are not providing
> > Encore! compilers.
> 
> I tried to persuade the Director of third party tools at ZiLOG that 
> he needed to consider bringing an outside source of a compiler on 
> line but he was satisfied with their internal development. ZiLOG 
> want to do it all themselves. He is no longer at the company.
> 
> Graham.
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 



________________________________________________________________________
________________________________________________________________________

Message: 6
Date: Mon, 26 Apr 2004 15:15:20 -0700
From: "Al Welch" 
Subject: RE: OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete ...)

I also worked on Z-80's in the old days. Used CP/M, Digital Research
compilers, then MS-DOS Assembler, etc. Burned EPROMS for firmware with hand
built hardware. For my money Atmel and CodeVision make a good combo. It is
such a pleasure to fire up a new prototype board and have the display LCD
work and chip selects to other parts work without having to burn PAL chips,
edit DataI/O files and scope out the reasons why chip selects are not what
you want. ISP6PIN is so easy to download and test.

My recent failing of JTAGICE to work has not kept me from writing and
testing code. I used my ANT-16 USB logic analyzer last week to verify my spi
clocks and chip selects to several I/O parts. All in all its so much easier.
AVRs are so easy to use.

Al Welch

-----Original Message-----
From: Jesper Hansen [mailto:jesperh@telia.com]
Sent: Monday, April 26, 2004 2:52 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] OT - ZiLOG Z8 Encore! (was ... AVR Studio not a
complete ...)


I seem to recall that in the "early days" (late 70's), nobody used Zilog
tools.
It was all third-party assemblers, and compilers.
There must have been a reason for that. Probably the same as today.

Very apropos Atmel - chip-makers should stick to making chips !

/Jesper

----- Original Message -----
From: "Graham Davies" 
To: 
Sent: Monday, April 26, 2004 10:06 PM
Subject: [AVR-Chat] OT - ZiLOG Z8 Encore! (was ... AVR Studio not a complete
...)


> --- In AVR-Chat@yahoogroups.com, "Paul Curtis" 
wrote:
>
> > I have an Ecore! development system
> > and the Zilog compiler *has*
> > improved since the early days.
> > But it's still not as good as
> > it could be.
>
> True, but it's not as good as it needs to be either for serious work.
> I have reported many defects to ZiLOG and release after release goes
> by without fixes. I have sunk a lot of effort into that MCU - an
> RTOS, Flash Loader and Prototyping System - and I'm at the point of
> trashing it all. I sure hope the AVR and Atmel are a hell of a lot
> better. Trouble is, that stuff already exists for the AVR.
>
> > ... it's very decent for the price.
>
> True. It is nominally free (comes with the ZiLOG evaluation board),
> so it's hard to say it's not worth the price of nothing.
>
> > IAR have lost interest in Zilog,
> > I think, and are not providing
> > Encore! compilers.
>
> I tried to persuade the Director of third party tools at ZiLOG that
> he needed to consider bringing an outside source of a compiler on
> line but he was satisfied with their internal development. ZiLOG
> want to do it all themselves. He is no longer at the company.
>
> Graham.
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>





Yahoo! Groups Links








________________________________________________________________________
________________________________________________________________________

Message: 7
Date: Mon, 26 Apr 2004 20:23:55 -0700
From: "Larry Barello" 
Subject: RE: Re:Watchdog and sleep modes

Yep. This is the most effective way to do a hard reset... The registers
and SRAM shouldn't be affected, but if you are using C the startup runtime
will clear everything out for you. The hardware registers (e.g. I/O &
peripherals) will be wiped out.

You might get away with a bit of assembly code, intercept the reset vector
(can't help you with how...) check to see the reset source and skip the
C-runtime init code if it were watchdog. However, there would be a host of
issues to resolve: which C variables need initializing, and which you want
to save, etc. Not a trivial problem.


-----Original Message-----
From: jamie pollock

I am using the watchdog to come out of sleep mode. The watchdog seems to
work fine ( i can turn it off sucessfully and re-enable it). My trouble is
that when the watchdog resets it doesnot resume after the sleep. The
controller begins at the reset vector and clears my registers. Is this what
it is supposed to do? I think the documentation states that the registers
would be intact.


[This message contained attachments]



________________________________________________________________________
________________________________________________________________________

Message: 8
Date: Mon, 26 Apr 2004 23:53:36 -0400
From: Brian Dean 
Subject: Re: Re:Watchdog and sleep modes

On Mon, Apr 26, 2004 at 08:23:55PM -0700, Larry Barello wrote:

> Yep. This is the most effective way to do a hard reset... The
> registers and SRAM shouldn't be affected, but if you are using C the
> startup runtime will clear everything out for you. The hardware
> registers (e.g. I/O & peripherals) will be wiped out.
> 
> You might get away with a bit of assembly code, intercept the reset
> vector (can't help you with how...) check to see the reset source
> and skip the C-runtime init code if it were watchdog. However,
> there would be a host of issues to resolve: which C variables need
> initializing, and which you want to save, etc. Not a trivial
> problem.

If you are using GCC, you can place the variable(s) that you want the
runtime init code to leave alone in a section called '.noinit', i.e.:

int foo __attribute__ ((section (".noinit")));

When declared this way, 'foo' will explicitly not be initialized by
the C runtime startup. Of course, you should initialize it yourself
after you check the watchdog flag which is a good test to see if you
are executing due to a power-on reset or a watchdog reset.

-Brian
-- 
Brian Dean
http://www.bdmicro.com/


________________________________________________________________________
________________________________________________________________________

Message: 9
Date: Tue, 27 Apr 2004 06:37:52 -0000
From: "Mike" 
Subject: Re: Was (What is a current sensing resistor)

Which AVR chip are you using for your stepper driver?
Mike B.


In AVR-Chat@yahoogroups.com, "dv7839" wrote:
> I hope this isn't too far off topic. I was doing some research for 
an 
> AVR powered stepper motor driver design when I came across a 
reference 
> to a current sensing resistor. Could someone please explain what 
this 
> is, and why one might use it?
> 
> thanks,
> dan



________________________________________________________________________
________________________________________________________________________



------------------------------------------------------------------------
Yahoo! Groups Links




------------------------------------------------------------------------


		
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs

RE: [AVR-Chat] Digest Number 680

2004-04-27 by Kathy Quinlan

As List owner I do not mind this OT thread.

Please in future remember to trim the post :o)

Regards,

Kat.
Show quoted textHide quoted text
-----Original Message-----
From: Mark Weston [mailto:weston54@yahoo.com] 
Sent: Tuesday, 27 April 2004 10:06 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Digest Number 680


I have a Z8Encore dev system as well and value the comments very much,
but this is the AVR group.  Can we move those comments to the Z8 Yahoo
group?  

Mark

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.667 / Virus Database: 429 - Release Date: 23/04/2004

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.