Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 112 of 307 · 15341 messages matched

Re: [AVR-Chat] Frustration abounds..

2007-07-18 by David VanHorn

> > Have you compared what you are doing with source > code from another boot loader that works? There seem to be > lots of them around, it will probably be something simple. I've looked at a few, and of course the data sheet. So far, I'm not seeing the difference. And it works i

Thread view Attachments: 0

Re: [AVR-Chat] Frustration abounds..

2007-07-18 by John Samperi

At 05:06 AM 19/07/2007, you wrote: >Anyone want to have a look at this? I won't have any free time until the middle of August from what I have on now :-( But if you like to send it I'll play with it once I get a break. Have you compared what you are doing with source code from an

Thread view Attachments: 0

Re: [AVR-Chat] Frustration abounds..

2007-07-18 by David VanHorn

Anyone want to have a look at this? I have it wrapped up in a very small and (hopefully) well commented package. At this point, I think I have everything working, except that the data is NOT getting written in the real chip, but IS getting written in the sim. Other than that one

Thread view Attachments: 0

Re: Claiming global registers in WinAVR / assembly

2007-07-18 by organix80

Thanks for all usefull answers! This one: "register char foo asm("r2");" is exactly what I searched for. It works fine! Best regards Laurens --- In AVR-Chat@yahoogroups.com, "Don Kinzer" wrote: > > --- In AVR-Chat@yahoogroups.com, "organix80" wrote: > > Is it possible to claim re

Thread view Attachments: 0

RE: [AVR-Chat] Claiming global registers in WinAVR / assembly

2007-07-18 by larry barello

This is what I used in a project... I doubt the "register" keyword does anything useful. register uint8_t tick asm("r17"); register uint8_t count asm("r16"); register uint8_t aux_pwm asm("r10"); register uint16_t rtc asm("r12"); It makes no sense allocating registers within a rou

Thread view Attachments: 0

RE: [AVR-Chat] Claiming global registers in WinAVR / assembly

2007-07-18 by Tim Mitchell

organix80 wrote: > Hi folks, > > I am using AVRStudio with WinAVR, with a mixed C / inline assembly > project. For a specific application, I want to write a very tight and > fast interrupt function in (inline) assembly. > > I am using the 'naked' interrupt attribute and assembly

Thread view Attachments: 0

Re: Claiming global registers in WinAVR / assembly

2007-07-18 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "organix80" wrote: > Is it possible to claim registers that not should be > used by the C compiler? I believe that this will work: register char foo asm("r2"); The avr-libc documentation indicates that this usage should be restricted to registers

Thread view Attachments: 0

Claiming global registers in WinAVR / assembly

2007-07-18 by organix80

Hi folks, I am using AVRStudio with WinAVR, with a mixed C / inline assembly project. For a specific application, I want to write a very tight and fast interrupt function in (inline) assembly. I am using the 'naked' interrupt attribute and assembly with manually stack control. Th

Thread view Attachments: 0

Re: [AVR-Chat] ATtiny25

2007-07-18 by John Samperi

At 01:02 PM 18/07/2007, you wrote: >i cannot access the AVRStudi Help files as I do not have IE >on my system. I will not put it on my system, either Then you are making life hard for yourself :-( I don't know if anyone can convert the chm file to a text file or pdf, may be not.

Thread view Attachments: 0

Re: [AVR-Chat] ATtiny25

2007-07-18 by Thomas Keller

John Samperi wrote: > > At 12:24 PM 18/07/2007, you wrote: > > Now what do I do? > > You look at the STK500 docs with the latest version of Studio > which you should have installed in your computer :-) > Unfortunately, the "friends' at Atmel seem to have relied on .DLL fiels that

Thread view Attachments: 0

Re: [AVR-Chat] ATtiny25

2007-07-18 by Jeffrey Engel

Maybe something like these would work? http://www.sparkfun.com/commerce/product_info.php?products_id=33 http://www.sparkfun.com/commerce/product_info.php?products_id=14 Unfortunately, they seem to be out of stock right now. Jeff Engel Arlington, TX --- Thomas Keller wrote: > Dogg

Thread view Attachments: 0

Re: [AVR-Chat] ATtiny25

2007-07-18 by John Samperi

At 12:24 PM 18/07/2007, you wrote: > Now what do I do? You look at the STK500 docs with the latest version of Studio which you should have installed in your computer :-) Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Broken

Thread view Attachments: 0

ATtiny25

2007-07-18 by Thomas Keller

Doggone it. I find outt hat the AVR I was planning on using for my project, the ATtiny15, is no longer advised fornew designs (soon to be a thing of the past) Now I discover that the closest replacement, the ATtiny25, is not supported on the STK-500 (or, at least, it is not liste

Thread view Attachments: 0

Re: [AVR-Chat] Frustration abounds..

2007-07-18 by David VanHorn

> This is typically symptomatic of using uninitialized variables (in C - > in assembler it would correspond to uninitialized registers). Yup, or stack pointer corruption, or a jump out of a routine due to copy and paste problems, (jumping into the old routine instead of within th

Thread view Attachments: 0

Re: [AVR-Chat] Frustration abounds..

2007-07-18 by Dave Hylands

Hi Dave, > Loaded into a chip, the app gives me wierd problems that shift as I > include and remove debugging code, as if there was a flag or stack > problem, but myself, and another experienced SW guy have been over it > and we didn't catch anything significant. This is typicall

Thread view Attachments: 0

Re: [AVR-Chat] Re: Frustration abounds..

2007-07-18 by David VanHorn

Here's page write: Erase is similar Loader_Page_Write: rcall SPM_Ready ; rcall Loader_MakePage ; ldi TEMP,$05 ;PGWRT and SPMEN sts SPMCSR,TEMP ; spm ; Flash page write nop rcall Enable_RWW ret ; ;**************************** ; Enable_RWW: rcall SPM_Ready clr TEMP sbr TEMP, (1

Thread view Attachments: 0

Re: [AVR-Chat] Re: Frustration abounds..

2007-07-18 by David VanHorn

> Possible, but I THINK I'm re-enabling it. > The effects are pretty bizarre, what ever it is. Thinking on that further.. Ok, the sim AND the chip are acting "nuts" in a way that suggests that sort of problem, but would they try to accurately simulate executing out of unreadable

Thread view Attachments: 0

Re: [AVR-Chat] Re: Frustration abounds..

2007-07-18 by David VanHorn

> You may be seeing effects of the differences between the RWW and NRWW > sections of Flash. Depending the the size of the bootloader section, > some of the NRWW Flash will be in the application section. The > bootloder itself is always completely in the NRWW section. Possible, b

Thread view Attachments: 0

Re: Frustration abounds..

2007-07-17 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Dave VanHorn" wrote: > In sim, I get to a point in the code, VERY close to where the real > app in a chip has problems.. (hmmmm) and the sim complains > of "illegal opcode $FFFF at location $FF87 (or similar, depends on > the build). You may be s

Thread view Attachments: 0

AVRStudio question

2007-07-17 by Thomas Keller

I have a .ASM file here that will not assemble. By this, I mean that I cannot even open the Build menu when I am editing this file. Can anyone explain this behaviour? I have never seen it before. tom

Thread view Attachments: 0

Frustration abounds..

2007-07-17 by Dave VanHorn

I'm working up what should be a fairly simple Xmodem bootloader. I've hit some really WIERD problems in execution in a real chip, and I thought I'd step back to sim, to see what's going on. In sim, I get to a point in the code, VERY close to where the real app in a chip has probl

Thread view Attachments: 0

Re: AVRStudio question

2007-07-17 by Rick

--- In AVR-Chat@yahoogroups.com, Thomas Keller wrote: > > > I have a .ASM file here that will not assemble. By this, I mean that I > cannot even open the Build menu when I am editing this file. Can anyone > explain this behaviour? I have never seen it before. > > tom > This behav

Thread view Attachments: 0

Re: [AVR-Chat] AVR 90USB1287 software reset

2007-07-17 by Jim Wagner

Please send a note to the AVRFreaks list! Jim Wagner On Tue, 17 Jul 2007 14:52:33 +0100 "Tim Mitchell" wrote: > Tim Mitchell wrote: > > Clark, Andy wrote: > >> Are you sure you're using the correct cpu include > file/vector table ? > >> > >> Andy > > > > Yes.. It's actually part

Thread view Attachments: 0

RE: [AVR-Chat] AVR 90USB1287 software reset

2007-07-17 by Tim Mitchell

Tim Mitchell wrote: > Clark, Andy wrote: >> Are you sure you're using the correct cpu include file/vector table ? >> >> Andy > > Yes.. It's actually part of an Atmel demo app which does the USB part. > Mystery solved - Atmel had mis-defined the cpu register include file (eek!!!)

Thread view Attachments: 0

Re: [AVR-Chat] [OT] Books on Forth

2007-07-17 by John Samperi

At 02:36 PM 17/07/2007, you wrote: >As such, I have some beloved FORTH books that I think might be of >interest to some in this group Last time I played with Forth was more than 20 years ago, how time goes Forth and never back :-) Regards John Samperi ****************************

Thread view Attachments: 0

[OT] Books on Forth

2007-07-17 by Ivan Vernot

Hi Guys, I hope that this is not against the rules but I need to find new homes for goodies that have not been used for a long time. As such, I have some beloved FORTH books that I think might be of interest to some in this group http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&i

Thread view Attachments: 0

Re: [AVR-Chat] Re: Stand-alone programmer?

2007-07-16 by John Samperi

At 07:32 AM 17/07/2007, you wrote: >This dev board from Wright Hobbies is only U$10 and has built-in >programming ports What the OP wanted IIRC was something that can be used WITHOUT a computer ie have something that you can download your code into and stays there. Then just push

Thread view Attachments: 0

Re: [AVR-Chat] AVR 90USB1287 software reset

2007-07-16 by John Samperi

At 11:40 PM 16/07/2007, you wrote: >(I am not sure what it is doing, or how to tell). I haven't used the 1287 so...beer ware. Have you set up the watchdog correctly? Newer chips seem to have a zillion ways of setting it up including a "don't behave like a watchdog" mode :-( ie fi

Thread view Attachments: 0

Re: Stand-alone programmer?

2007-07-16 by Granz

This dev board from Wright Hobbies is only U$10 and has built-in programming ports for 10- and 6-pin programming cables. http://www.wrighthobbies.net/catalog/product_info.php?products_id=124 Schematic: http://www.wrighthobbies.net/bots/ttbot/chibot_controller2.4.3.pdf Programming

Thread view Attachments: 0

Re: [AVR-Chat] Light dimmer signal to digital converter?

2007-07-16 by BobGardner@aol.com

>Any suggestions how to connect the power line to the microcontroller? ========================================================= Drive a small incandescent 230V bulb in a black tube with a light sensitive resistor. This will give a reading proportional to brightness, which is wha

Thread view Attachments: 0

RE: [AVR-Chat] AVR 90USB1287 software reset

2007-07-16 by Tim Mitchell

Clark, Andy wrote: > Are you sure you're using the correct cpu include file/vector table ? > > Andy Yes.. It's actually part of an Atmel demo app which does the USB part. I'm now digging further into it - it appears to be running my software for approx 25msec then restarting, in

Thread view Attachments: 0

RE: [AVR-Chat] AVR 90USB1287 software reset

2007-07-16 by Clark, Andy

Are you sure you're using the correct cpu include file/vector table ? Andy ________________________________ From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Tim Mitchell Sent: 16 July 2007 14:40 To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] AVR 90U

Thread view Attachments: 0

AVR 90USB1287 software reset

2007-07-16 by Tim Mitchell

I'm trying to do a software restart on an AVR90USB1287. (basically a mega128 with USB). I am disabling interrupts, turning on the watchdog timer and going into an endless loop. When the watchdog times out, it resets, but does not run my software (I am not sure what it is doing, o

Thread view Attachments: 0

RE: [AVR-Chat] Light dimmer signal to digital converter?

2007-07-16 by Tim Mitchell

Manne Tallmarken wrote: > Hello folks, > > I have a 230 V AC power line that is connected to a light dimmer. I > want to determine how much this signal is dimmed, e.g. what the duty > cycle is (i guess the dimmer regulates the duty cycle?). 8-Bit > precision is enough (or less as

Thread view Attachments: 0

Re: [AVR-Chat] Light dimmer signal to digital converter?

2007-07-16 by Ralph Hilton

On Mon, 16 Jul 2007 14:33:44 +0200 (CEST) you wrote: >Hello folks, > >I have a 230 V AC power line that is connected to a light dimmer. I want >to determine how much this signal is dimmed, e.g. what the duty cycle is >(i guess the dimmer regulates the duty cycle?). 8-Bit precisio

Thread view Attachments: 0

Light dimmer signal to digital converter?

2007-07-16 by Manne Tallmarken

Hello folks, I have a 230 V AC power line that is connected to a light dimmer. I want to determine how much this signal is dimmed, e.g. what the duty cycle is (i guess the dimmer regulates the duty cycle?). 8-Bit precision is enough (or less as well) Any suggestions how to connec

Thread view Attachments: 0

Re: Fast PWM

2007-07-16 by vidord

--- In AVR-Chat@yahoogroups.com, John Samperi wrote: > > At 05:23 AM 15/07/2007, you wrote: > >Did I missed something? > > Probably the fact that you can't really trust the simulator > when it comes to timers...and a lot of other things too :-( > > Have you tried with real hardwa

Thread view Attachments: 0

Re: [AVR-Chat] Stand-alone programmer?

2007-07-15 by John Samperi

At 08:55 AM 16/07/2007, you wrote: > Before I start designing one myself, is there some DIY >project available for download somewhere? You can use a Butterfly with Buttload installed as far as I know. Very cheap. Regards John Samperi **********************************************

Thread view Attachments: 0

Stand-alone programmer?

2007-07-15 by enkitec@gmail.com

Hi, I need a stand-alone SPI programmer for an ATMega48. It will be used in the field for firmware upgrade work. Before I start designing one myself, is there some DIY project available for download somewhere? Thanks. Mark Jordan

Thread view Attachments: 0

Re: [AVR-Chat] Fast PWM

2007-07-15 by John Samperi

At 05:23 AM 15/07/2007, you wrote: >Did I missed something? Probably the fact that you can't really trust the simulator when it comes to timers...and a lot of other things too :-( Have you tried with real hardware? > ldi temp, 0x08 > out DDRB, temp ............ > ldi temp, 0xB3 >

Thread view Attachments: 0

Re: Bootloader Frustration

2007-07-15 by Mike Perks

David, > > The flash page size is also listed in the table on page 294 of the > > mega128 datasheet and referred to from pages 201 and 306 as well. See > > http://atmel.com/dyn/resources/prod_documents/doc2467.pdf. > > Silly me, I expected that to happen in the section about the

Thread view Attachments: 0

Re: [AVR-Chat] Re: Bootloader Frustration

2007-07-15 by David VanHorn

> I really hope you are using one of the standard ASM include files such > as mdef128.inc. It is going to save hardcoding everything. It includes > definitions for PAGESIZE (128), and FIRSTBOOTSTART (0xfe00). I am, but of course you have to know it's there, or go looking for it.

Thread view Attachments: 0

Re: Bootloader Frustration

2007-07-15 by Mike Perks

David, > I found one problem already.. The page size is 128 words, not 64 like it says. > I found this out by running it in sim, and watching it erase a page. > The docs mention different chips having different page sizes, and I > didn't see anywhere that it calls out a table to

Thread view Attachments: 0

Re: Bootloader Frustration

2007-07-14 by stevech11

This project, and others, has source code configurable for many AVRs for bootloading. And the PC side too. As an example. This one is in asm language to keep the bootloader small - since the bootloader area size increased in steps of two-fold. http://www.avrfreaks.net/index.php?m

Thread view Attachments: 0

Re: [AVR-Chat] Re: Bootloader Frustration

2007-07-14 by David VanHorn

On 7/14/07, poitsplace wrote: > I've never attempted to use any of the AVR's with the store program > memory instruction...but I can't help but notice there's an interrupt > vector (and therefore a corresponding flag somewhere) called "SPM > READY" (Store Program Memory Ready). I

Thread view Attachments: 0

Fast PWM

2007-07-14 by vidord

Hi Guys, I started a new project with an ATmega88, and I need two fast-PWM signals. One it will be an inverted signal of the other signal. I wrote the code, but when I simulate it on AVRStudio, I don't get out any signal. Did I missed something? Here comes the code: .include "m88

Thread view Attachments: 0

Re: Bootloader Frustration

2007-07-14 by poitsplace

I've never attempted to use any of the AVR's with the store program memory instruction...but I can't help but notice there's an interrupt vector (and therefore a corresponding flag somewhere) called "SPM READY" (Store Program Memory Ready). Is your program using this interrupt (o

Thread view Attachments: 0

Bootloader Frustration

2007-07-12 by Dave VanHorn

Hmm.. Having much fun trying to implement this.. The basics of the Xmodem transfer protocol are working, and I get 128 byte packets from the host. But putting them into program memory isn't working out right. I have a register that counts packets from the host, of course it rolls

Thread view Attachments: 0

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.