Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 233 of 307 · 15341 messages matched

Re: [AVR-Chat] Re: What does this error mean?

2005-02-22 by Robert Adsett

At 08:06 PM 2/22/05 +0100, Paul Colin Gloster wrote: >However, one valid argument in favor of wastefully declaring all variables >in advance is that it will be easier to be confident by the time the >end-product is delivered that it will not run out of memory at runtime >(albeit

Thread view Attachments: 0

Re: [AVR-Chat] Re: What does this error mean?

2005-02-22 by Paul Colin Gloster

On Tue, Feb 22, 2005 at 06:33:01PM -0000, Daniel wrote: "[..] I'm used to working on computers with large amounts of memory and processor speed, so I natually used my standared for loop declaration: for(type var = constant; condition; var++){} is this going to cause me problems o

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Paul Colin Gloster

On Tue, Feb 22, 2005 at 01:47:20PM -0500, Robert Adsett wrote: "[..] [..] Another item to remember is a lot of C compilers (particularly embedded) are barely C89 compliant never mind C99 compliant. Heck some of them aren't even pre-ANSI K&R complaint." Agreed :(

Thread view Attachments: 0

Re: [AVR-Chat] Re: What does this error mean?

2005-02-22 by Robert Adsett

At 06:33 PM 2/22/05 +0000, kc9dag wrote: >I'm used to working on computers with large amounts of memory and >processor speed, so I natually used my standared for loop >declaration: >for(type var = constant; condition; var++){} > >is this going to cause me problems on the memory l

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Robert Adsett

At 07:16 PM 2/22/05 +0100, Paul Colin Gloster wrote: >On Tue, Feb 22, 2005 at 01:05:49PM -0500, Robert Adsett wrote: >"At 05:45 PM 2/22/05 +0000, kc9dag wrote: >[..] > > > >for this chunk of code: > > > >45 for(unsigned int x = 0; x >This would be valid C++ but not C" > >Actually

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Robert Adsett

At 07:30 PM 2/22/05 +0100, Paul Colin Gloster wrote: >Incidentally, at least in C89 would Mike's example not run the risk of x >and inty having different datatypes? No Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical.

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Paul Colin Gloster

On Tue, Feb 22, 2005 at 12:07:41PM -0600, Mike Murphree wrote: "What evilness allows you define variables inside a for loop structure like that? Take them out, and precede this code with: unsigned int x, inty; " One correct answer to the question is ANSI C. In ANSI C++ and Java a

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Paul Colin Gloster

On Tue, Feb 22, 2005 at 01:05:49PM -0500, Robert Adsett wrote: "At 05:45 PM 2/22/05 +0000, kc9dag wrote: [..] > >for this chunk of code: > >45 for(unsigned int x = 0; x 46 { >47 Page_To_Buffer(x, 1); >48 for(unsigned int inty = 0, inty

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Robert Adsett

At 01:05 PM 2/22/05 -0500, Robert Adsett wrote: > >45 for(unsigned int x = 0; x >This would be valid C++ but not C My mistake, it appears C99 introduced this form. Nice catch on the semicolon. Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they leg

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Mike Murphree

Leon Heller said: > > ----- Original Message ----- > From: kc9dag > To: AVR-Chat@yahoogroups.com > Sent: Tuesday, February 22, 2005 5:45 PM > Subject: [AVR-Chat] What does this error mean? > > > > I've done all my previous AVR programing in ASM and I program in C# on a > daily ba

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Paul Colin Gloster

On Tue, Feb 22, 2005 at 05:57:59PM -0000, Leon Heller wrote: "Which compiler? It looks like the ANSI C you are using isn't liked by your compiler. Try using old-fashioned K&R C." Yikes no! That would make things worse. From item 12 on WWW.computing.DCU.Ie/~cdaly/projects/ : "C++

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Robert Adsett

At 05:45 PM 2/22/05 +0000, kc9dag wrote: >I've done all my previous AVR programing in ASM and I program in C# >on a daily basis so I figured I should finally learn C for the >AVR... Things have been going fine and now I am getting the >following error: > >Datalogger.c: In functio

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Paul Colin Gloster

On Tue, Feb 22, 2005 at 05:45:22PM -0000, kc9dag wrote: "[..] Things have been going fine and now I am getting the following error: Datalogger.c: In function `main': Datalogger.c:48: error: redeclaration of 'inty' with no linkage Datalogger.c:48: error: previous definition of 'in

Thread view Attachments: 0

Re: [AVR-Chat] call, ret

2005-02-22 by Dave VanHorn

At 09:51 AM 2/22/2005, Eric wrote: >Goodone Dave > >How can I plead ignorant on this one, I did read about this problem in the >theory books come to think of >it, in fact this is someone else's program a "16 character by two line >LCD" maybe I should start fresh >with my own prog

Thread view Attachments: 0

Re: What does this error mean?

2005-02-22 by kc9dag

Okay, after getting my code to work (or at least compile, I haven't flashed it yet) and reading all the responses I have a new but related question: I'm used to working on computers with large amounts of memory and processor speed, so I natually used my standared for loop declara

Thread view Attachments: 0

Re: What does this error mean?

2005-02-22 by kc9dag

> line 48's accidental comma instead of a semicolon > Paul Colin Gloster okay, that was the problem... I feel stupid now (I know I looked that code over for a hour and never noticed that comma... I've done that before in C# but it gives much more helpful error messages (like "sem

Thread view Attachments: 0

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Leon Heller

----- Original Message ----- From: kc9dag To: AVR-Chat@yahoogroups.com Sent: Tuesday, February 22, 2005 5:45 PM Subject: [AVR-Chat] What does this error mean? I've done all my previous AVR programing in ASM and I program in C# on a daily basis so I figured I should finally learn

Thread view Attachments: 0

What does this error mean?

2005-02-22 by kc9dag

I've done all my previous AVR programing in ASM and I program in C# on a daily basis so I figured I should finally learn C for the AVR... Things have been going fine and now I am getting the following error: Datalogger.c: In function `main': Datalogger.c:48: error: redeclaration

Thread view Attachments: 0

Re: [AVR-Chat] call, ret

2005-02-22 by Eric

Goodone Dave How can I plead ignorant on this one, I did read about this problem in the theory books come to think of it, in fact this is someone else's program a "16 character by two line LCD" maybe I should start fresh with my own program and call up the LCD as I need to. From

Thread view Attachments: 0

Re: [AVR-Chat] call, ret

2005-02-22 by Dave VanHorn

At 08:56 AM 2/22/2005, Eric wrote: >Hi all, Now here is a tricky problem, sorry to hog your time. > >I have a call statement near the start of the program I comment out just >before I download it to the >micro, but when I wish to step through the program with the simulator, I >un

Thread view Attachments: 0

call, ret

2005-02-22 by Eric

Hi all, Now here is a tricky problem, sorry to hog your time. I have a call statement near the start of the program I comment out just before I download it to the micro, but when I wish to step through the program with the simulator, I un-comment it. The main program calls a func

Thread view Attachments: 0

RE: [AVR-Chat] AVR ISP ATAVRISP

2005-02-22 by wbounce

Check your cables. Check you battery levels retry it. -----Original Message----- From: vifra gomez [mailto:fravifra@yahoo.com.mx] Sent: Saturday, February 19, 2005 1:18 PM To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] AVR ISP ATAVRISP warning:signature does not match selected

Thread view Attachments: 0

Re: the "case" statement

2005-02-22 by Luke.Wei

> > how do you do the line containing the "switch( i )" in assembly code. > > From Eric > no attachment was sent with this email, if there is one, you might have a problem. Dear, "switch(i) " have so many methods to describe , you can use compare and branch instruction to try. ex

Thread view Attachments: 0

Re: the "case" statement

2005-02-21 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, Eric wrote: > In C/C++ there is a "case" statement, is there such a thing > in assembly code? and is there a example around. There are two ways to implement the logic of a switch/case. Which one is chosen depends on the circumstances. If the case

Thread view Attachments: 0

Re: [AVR-Chat] the "case" statement

2005-02-21 by John Stiekema

// IAR assembler, variables byte-sized in registers: #define i r16 //int8 #define n r17 #define z r18 #define p r19 CPI r16,LOW(-1) //test: -1? BRNE $+6 SUBI n,LOW(-1) RJMP break_ TST r16 //test: 0? BRNE $+6 SUBI z,LOW(-1) RJMP break_ CPI r16,1 //test: 1? BRNE $+6 SUBI p,LOW(-1)

Thread view Attachments: 0

Re: [AVR-Chat] the "case" statement

2005-02-21 by Eric

it's OK all I am beginning to think someone used a lot of "caseX" in their code, so they could read their code easier. even thou is no assembly code "case" equivalent. I just inserted break at the end of each "caseX" and it never worked. From Eric ----- Original Message ----- Fro

Thread view Attachments: 0

Re: [AVR-Chat] the "case" statement

2005-02-21 by Stefan Trethan

On Tue, 22 Feb 2005 00:02:30 +1300, Eric wrote: > > Hi all chat'ers > In C/C++ there is a "case" statement, is there such a thing in assembly > code? and is there a example > around. I think you use your variable to jump to different locations. (add it to the address). You must m

Thread view Attachments: 0

the "case" statement

2005-02-21 by Eric

Hi all chat'ers In C/C++ there is a "case" statement, is there such a thing in assembly code? and is there a example around. e.g here is the C version switch( i ) { case -1: n++; break; case 0 : z++; break; case 1 : p++; break; } how do you do the line containing the "switch( i )

Thread view Attachments: 0

Re: [AVR-Chat] the "case" statement

2005-02-21 by Leon Heller

----- Original Message ----- From: Eric To: AVR-Chat@yahoogroups.com Sent: Monday, February 21, 2005 11:02 AM Subject: [AVR-Chat] the "case" statement Hi all chat'ers In C/C++ there is a "case" statement, is there such a thing in assembly code? and is there a example around. e.g

Thread view Attachments: 0

Re: [AVR-Chat] Re: Keyboard delay

2005-02-21 by Valerij Avrealij

Thanks to all for quick help. I'll try find my optimal delay. > 0.001 sec or 1/1000 or One One-Thousands of a second > 0.01 sec or 1/100 or One One-Hundreds of a second > 0.1 sec or 1/10 or One One-Tenth of a second > The theory is > "Find a value that does not work." > "Find a v

Thread view Attachments: 0

Re: [AVR-Chat] Re: Keyboard delay

2005-02-21 by Don Ingram

WRT Keyboard Bounce: If you use an interrupt driven ( timer ) kbd scanner then you can just look at successive scan cycles and if you see 3 cycles ( for example ) in a row which return the same value then you output a valid key value. A benefit of doing things this way is that th

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-20 by Robert Adsett

At 05:50 PM 2/20/05 -0500, Ben Matthews wrote: >I think >what i am going to do for now is scrap the h bridge for now and use a >servo to toggle a switch, if we win and go on to the state competition >maybe i will be able to build one, but hopefully the servo will work >for now. (

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-20 by Ben Matthews

On Sun, 20 Feb 2005 15:04:48 -0500, Robert Adsett wrote: > At 09:06 PM 2/19/05 -0500, Ben Matthews wrote: > >Dad drew the schematic and i put it at > >http://benlinuxisbest1.tripod.com/testcircuit.pdf . I drew a > >schematic of an h bridge that i think will work based on this > >

Thread view Attachments: 0

Help! Problem with fuses in ATTINY12

2005-02-20 by Grzegorz Bywalec

Hi! I tray to use Tiny12 but I have problem with crystal oscilator or with ponyprog(2000). I set fuses as 1101 (CKSEL3...0) but tiny still work with internal RC oscilator. Where may be a problem? Thanks for any help! Have a nice day! Grzesiek __________________________________ Do

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-20 by Robert Adsett

At 09:06 PM 2/19/05 -0500, Ben Matthews wrote: >Dad drew the schematic and i put it at >http://benlinuxisbest1.tripod.com/testcircuit.pdf . I drew a >schematic of an h bridge that i think will work based on this >experiment, it is at http://benlinuxisbest1.tripod.com/hbridge2.pdf

Thread view Attachments: 0

Re: Keyboard delay

2005-02-20 by brewski922

--- In AVR-Chat@yahoogroups.com, "brewski922" wrote: > > --- In AVR-Chat@yahoogroups.com, Valerij Avrealij > wrote: > > Hello 2AVR-Chat members. > > > > I have interrupt based keyboard inquiry. How much time I need wait > > after interrupt occurs and keyboard inquiry? > > Thanks.

Thread view Attachments: 0

Re: [AVR-Chat] Re: Keyboard delay

2005-02-20 by Kathy Quinlan

Valerij Avrealij wrote: > Çäðàâñòâóéòå, brewski922. > > û ïèñàëè 20 ôåâðàëÿ 2005 ã., 19:20:56: > > > > >>--- In AVR-Chat@yahoogroups.com, Valerij Avrealij >>wrote: >> >>>Hello 2AVR-Chat members. >>> >>>I have interrupt based keyboard inquiry. How much time I need wait >>>after i

Thread view Attachments: 0

Re: [AVR-Chat] Re: Keyboard delay

2005-02-20 by Valerij Avrealij

Çäðàâñòâóéòå, brewski922. û ïèñàëè 20 ôåâðàëÿ 2005 ã., 19:20:56: > --- In AVR-Chat@yahoogroups.com, Valerij Avrealij > wrote: >> Hello 2AVR-Chat members. >> >> I have interrupt based keyboard inquiry. How much time I need wait >> after interrupt occurs and keyboard inquiry? >> T

Thread view Attachments: 0

Re: Keyboard delay

2005-02-20 by brewski922

--- In AVR-Chat@yahoogroups.com, Valerij Avrealij wrote: > Hello 2AVR-Chat members. > > I have interrupt based keyboard inquiry. How much time I need wait > after interrupt occurs and keyboard inquiry? > Thanks. > > -- > Valerij Avrealij It depends on the bounce time of the switc

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-20 by Robert Adsett

At 05:04 AM 2/20/05 -0800, sami saqqa wrote: >try to use the L298 IC >it is a simple to use two h bridg , here is the data sheet > http://www.mip.sdu.dk/~n2018/Aflevering/L298.pdf But that's only a 4A peak device. The OP has a 10A load. Robert " 'Freedom' has no meaning of itself

Thread view Attachments: 0

rs232 (max222cpn chipset) to atmega32 not working.. why?!

2005-02-20 by Lee Leathers

Hello, I am new to serial communication with atmega. I basically get that I show in the link in bray. (i get repeating until I unplug the atmega) http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=27082 (this is my thread that explains everything) Do you'll have an

Thread view Attachments: 0

Amazon Re: [AVR-Chat] The keyboard

2005-02-20 by brewski922

--- In AVR-Chat@yahoogroups.com, "Stefan Trethan" wrote: > On Fri, 18 Feb 2005 15:16:04 -0500, Dave VanHorn > wrote: > > > > > The easy way to do a matrix keyboard, is to take rows (or columns) and > > make > > them inputs pulled up, and take the other side (col or row) and make

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-20 by Robert Adsett

At 09:06 PM 2/19/05 -0500, Ben Matthews wrote: >Hi again, > >after an evening of experimentation i think we have found something >that may work: >we used a test circuit with one BUZ11, a 2N2904 npn transistor the >light bulb from before and a .3 ohm resistor in series with the bu

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-20 by Ben Matthews

Hi again, after an evening of experimentation i think we have found something that may work: we used a test circuit with one BUZ11, a 2N2904 npn transistor the light bulb from before and a .3 ohm resistor in series with the bulb. the npn transistor drives the buz11 with about an

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-19 by Robert Adsett

At 04:29 PM 2/19/05 -0600, David Kelly wrote: >On Feb 19, 2005, at 10:06 AM, Robert Adsett wrote: > > > That should be driving the power section off of more than 5 or 6 Volts > > is > > asking for trouble. You want the gate drive voltage to be 10-15V above > > it's reference. > >

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-19 by Robert Adsett

At 05:12 PM 2/19/05 -0500, Ben Matthews wrote: >I actually was using relays originally but the ones we could find >couldn't deal with the current and welded quickly. You do need a substantial relay. >relooking at my drawing i agree that the gates are paired wrong, i do >have it b

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-19 by David Kelly

On Feb 19, 2005, at 10:06 AM, Robert Adsett wrote: > That should be driving the power section off of more than 5 or 6 Volts > is > asking for trouble. You want the gate drive voltage to be 10-15V above > it's reference. Datasheet reference please for your 10-15V recommendation? R

Thread view Attachments: 0

Re: [AVR-Chat] Re: Motor Control Problems - more info

2005-02-19 by Ben Matthews

> For some reason the original post hasn't shown up here yet. The vagaries > of Yahoo and e-mail I expect. In any case this circuit will not work. It > also strikes me as too complex but that's a separate issue. > > - Problem 1: > Unless there is a couple of invertors you haven't

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.