2008-03-06 by eko setiawan
this week i try using fuzzy controller on my robot motion with avr. first try defuzzy your output into several class. then try to fuzzy your input into several class. you may try form of graph fuzzy which suitable on your system. the last you make the rule for the condition. my f
Thread view
Attachments: 0
2008-03-06 by David VanHorn
On Mon, Mar 3, 2008 at 11:17 AM, rpvicerra wrote: > Guys, I don't know where to start. Can you help me? > A good first step would be to de-fuzzify your requirements. :)
Thread view
Attachments: 0
2008-03-04 by Zack Widup
I think this data is all on the Atmel website. They have a spreadsheet listing that shows how many of each feature a particular chip has. Take a look. Zack On Mon, 3 Mar 2008, eko setiawan wrote: > anyone know about Atmel which include feature 4 timer/counter. > cause i will use
Thread view
Attachments: 0
2008-03-04 by Roy E. Burrage
The selection guide at the Atmel web site has an in-depth table with all major peripherals listed for comparison. Actually, depending on your speed of operation and number of other functions required, you could use about any of the controllers if you get your firmware right. REB
Thread view
Attachments: 0
2008-03-04 by eko setiawan
anyone know about Atmel which include feature 4 timer/counter. cause i will use them for 2 counters,1 pwm,and 1 timer. thanks for your help ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yah
Thread view
Attachments: 0
2008-03-03 by rpvicerra
Guys, I don't know where to start. Can you help me?
Thread view
Attachments: 0
2008-03-03 by Zack Widup
That would be quite an adventurous project. The programmer contains a programmed 90S8535 and a programmed 90S1200, both SMD on the double-sided board of the real STK500. How are you going to program them if you don't already have a programmer? Can't you buy one? Zack On Sun, 2 Ma
Thread view
Attachments: 0
2008-03-03 by Klaus Ruebsam
Hop Hoh, > How can I make a STK500 programmer ?? Could you please be more precise on what you are actually asking for? The Atmel STK500 is an evaluation system that includes a serial and HV-parallel programmer for AVR-devices. If you want to build your own STK500: forget it. It i
Thread view
Attachments: 0
2008-03-03 by John Samperi
At 06:41 AM 3/03/2008, you wrote: >How can I make a STK500 programmer ?? You log into Digikey or you local Atmel distributor, give them some money and in a few days you have made your STK500. Regards John Samperi ******************************************************** Ampertroni
Thread view
Attachments: 0
2008-03-02 by hop_hoh
Hi How can I make a STK500 programmer ?? please help me.
Thread view
Attachments: 0
2008-03-02 by bobby cossum
--- In AVR-Chat@yahoogroups.com, "bobby cossum" wrote: > > i'm trying to get a 30Hz pulse out of timer 1. i initialize it as > follows... > // > // set up timer 1, ca 30Hz, fast pwm mode 15, prescale = 64, top = > 8333, no interrupts > // > TCCR1B = 0; // stop timer 1 > TIMSK1 =
Thread view
Attachments: 0
2008-03-02 by bobby cossum
--- In AVR-Chat@yahoogroups.com, "Roy E. Burrage" wrote: > > Which controller are you using? > > > REB > > mega168. 16MHz oscillator.
Thread view
Attachments: 0
2008-03-02 by Roy E. Burrage
Which controller are you using? REB bobby cossum wrote: > --- In AVR-Chat@yahoogroups.com, James Wagner wrote: > > >> Check that you are loading the dual 8-bit registers in the correct >> ORDER. There IS a required order so that an internal "temp" register >> can load both regist
Thread view
Attachments: 0
2008-03-02 by bobby cossum
--- In AVR-Chat@yahoogroups.com, James Wagner wrote: > Check that you are loading the dual 8-bit registers in the correct > ORDER. There IS a required order so that an internal "temp" register > can load both registers in a single operation. Do a doc search for 16 > bit register
Thread view
Attachments: 0
2008-03-02 by James Wagner
On Mar 1, 2008, at 3:08 PM, bobby cossum wrote: > --- In AVR-Chat@yahoogroups.com, John Samperi wrote: > > > > At 03:07 PM 1/03/2008, you wrote: > > >--- In AVR-Chat@yahoogroups.com, "bobby cossum" wrote: > > >first the backwards reset of the TOV1 flag. > > > you guys claim it ma
Thread view
Attachments: 0
2008-03-01 by bobby cossum
--- In AVR-Chat@yahoogroups.com, John Samperi wrote: > > At 03:07 PM 1/03/2008, you wrote: > >--- In AVR-Chat@yahoogroups.com, "bobby cossum" wrote: > >first the backwards reset of the TOV1 flag. > > you guys claim it makes sense, > > Don't know whether it makes sense or not, thi
Thread view
Attachments: 0
2008-03-01 by John Samperi
At 03:07 PM 1/03/2008, you wrote: >--- In AVR-Chat@yahoogroups.com, "bobby cossum" wrote: >first the backwards reset of the TOV1 flag. > you guys claim it makes sense, Don't know whether it makes sense or not, this is just the way that avr and other companies like Motorola (Frees
Thread view
Attachments: 0
2008-03-01 by bobby cossum
--- In AVR-Chat@yahoogroups.com, "bobby cossum" wrote: > > i'm trying to get a 30Hz pulse out of timer 1. i initialize it as > follows... > // > // set up timer 1, ca 30Hz, fast pwm mode 15, prescale = 64, top = > 8333, no interrupts > // > TCCR1B = 0; // stop timer 1 > TIMSK1 =
Thread view
Attachments: 0
2008-02-29 by Tom
OK, gcc 4.3.1, AVRStudio 4,3 Service Pack 1: int main (){ uint8_t var1, var2, var3, var4; // declare 8 bit unsigned variables // for compatiblity with 8 bit // registers in the AVR register // file /* * set the bit patterns for the copy operation */ var1 = 0; // all zeros var2 =
Thread view
Attachments: 0
2008-02-29 by Russell Shaw
np np wrote: > This is due to the way C is parsed by the compiler. > > The compiler throws a wobbly even in Visual C if the braces are unequal. > > It goes to the end of the file if there is one missing. Software is not clairvoyant, and the brackets are required for the parser to
Thread view
Attachments: 0
2008-02-29 by Russell Shaw
np np wrote: > One huge huge hole with C in some microcontrollers is the loss of the status bits after a calculation. C was designed for portability. There is no standard for how to implement hardware status, so that is non-portable and too variable to implement in C, especially
Thread view
Attachments: 0
2008-02-29 by Russell Shaw
Tom wrote: > Again: avrgcc 4.3, AVRStudio 4.31 Service Pack 1. > > Following code: > > asm volatile ( > > " ldi R16, %0 \n" > " ldi R17, %1 \n" > " ldi R18, %2 \n" > " ldi R19, %3 \n" > > " mov %3, R19 \n" > " mov %2, R18 \n" > " mov %1, R17 \n" > " mov %0, R16 \n" > > : "=r" (va
Thread view
Attachments: 0
2008-02-28 by np np
This is due to the way C is parsed by the compiler. The compiler throws a wobbly even in Visual C if the braces are unequal. It goes to the end of the file if there is one missing. ----- Original Message ---- From: avrx123456789 To: AVR-Chat@yahoogroups.com Sent: Thursday, 28 Feb
Thread view
Attachments: 0
2008-02-28 by np np
One huge huge hole with C in some microcontrollers is the loss of the status bits after a calculation. ----- Original Message ---- From: David Kelly To: AVR-Chat@yahoogroups.com Sent: Thursday, 28 February, 2008 3:42:06 PM Subject: Re: [AVR-Chat] C problem On Thu, Feb 28, 2008 at
Thread view
Attachments: 0
2008-02-28 by Tom
Again: avrgcc 4.3, AVRStudio 4.31 Service Pack 1. Following code: asm volatile ( " ldi R16, %0 \n" " ldi R17, %1 \n" " ldi R18, %2 \n" " ldi R19, %3 \n" " mov %3, R19 \n" " mov %2, R18 \n" " mov %1, R17 \n" " mov %0, R16 \n" : "=r" (var1) , "=r" (var2) , "=r" (var3) , "=r" (var4)
Thread view
Attachments: 0
2008-02-28 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, Tom wrote: > undefined reference to `r22' > None of R22, R23, R30 or R31 are referenced explicitly > ANYWHERE in this code That's true, but the compiler assigns locally defined variables like 'var1', etc. to registers as it pleases. The problem is
Thread view
Attachments: 0
2008-02-28 by Tom
Don Kinzer wrote: > > > Perhaps this is simply an exercise but the code does nothing other > than use CPU cycles. > > Don Kinzer > Yes, it is precisely an exercise, will never run in silicon. Now I am getting the following: asm volatile ( " ldi R16, (%0) \n" " ldi R17, (%1) \n" "
Thread view
Attachments: 0
2008-02-28 by David Kelly
On Thu, Feb 28, 2008 at 08:13:49AM -0000, bhadson2001 wrote: > > unsigned char a; > a=255*20/10; > > it gives output 254 > > for > a=255*200/100; > > it gives output 111 > > why it gives different results. > > it there any logical relationship. The intermediate math is signed 16
Thread view
Attachments: 0
2008-02-28 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, Tom wrote: >I am getting: > ../embedded_asm.c:63: error: expected ')' before '(' token You do have to follow the recipe. asm volatile ( "mov r16, %0" "\n\t" "mov r17, %1" "\n\t" "mov r18, %2" "\n\t" "mov r19, %3" "\n\t" "mov %3, r19" "\n\t" "mov %
Thread view
Attachments: 0
2008-02-28 by Tom
OK. avrgcc 4.3, AVRStudio 4,13 Service Pack 1, mixed C and assembly. I have: int main (){ uint8_t var1, var2, var3, var4; var1 = 0; // all zeros var2 = 255; // all ones var3 = 170; // alternating ones and zeros var4 = 55; // alternating zeros and ones /* * copy register to backup
Thread view
Attachments: 0
2008-02-28 by avrx123456789
The problem of C's error messages being useless has existed in all the C compilers I've ever used. That covers about a dozen compilers from AVR's use of gcc to somewhat larger machines that process millions of business transactions per day. I have found that using a "lint" progra
Thread view
Attachments: 0
2008-02-28 by Russell Shaw
bhadson2001 wrote: > unsigned char a; > a=255*20/10; > > it gives output 254 > > for > a=255*200/100; > > it gives output 111 > > why it gives different results. > > it there any logical relationship. > > kindly help me to resolve the problem. > i will be grateful > thanks a lot.
Thread view
Attachments: 0
2008-02-28 by Leon
----- Original Message ----- From: "bhadson2001" To: Sent: Thursday, February 28, 2008 8:13 AM Subject: [AVR-Chat] C problem > > unsigned char a; > a=255*20/10; > > it gives output 254 > > for > a=255*200/100; > > it gives output 111 > > why it gives different results. > > it the
Thread view
Attachments: 0
2008-02-28 by bhadson2001
unsigned char a; a=255*20/10; it gives output 254 for a=255*200/100; it gives output 111 why it gives different results. it there any logical relationship. kindly help me to resolve the problem. i will be grateful thanks a lot.......
Thread view
Attachments: 0
2008-02-28 by Tom
Don Kinzer wrote: > > --- In AVR-Chat@yahoogroup s.com , > Tom wrote: > > How do I access said vars from assembly language in > > the same program image? > > If you're referring to inline assembly language, the recipe you're > seeking is in the Inline Assembler Cookbook: > http:/
Thread view
Attachments: 0
2008-02-28 by J C
Thanks for that idea, I did get the other code running but the clock wasn't set right so I wasn't seeing any pulses. I might try that idea in the future. David VanHorn wrote: On Sun, Feb 24, 2008 at 5:52 PM, J C wrote: > I am trying to control 2 servos with an ATMEGA16 running of
Thread view
Attachments: 0
2008-02-28 by Tom
Philippe Habib wrote: > > That's what I don't like about gcc. I don't find the errors to be that > helpful and often the error is unrelated to the problem and a hundred > lines > away. > Phillipe: to be fair, I have found that to be true with every C compiler, indeed, with every
Thread view
Attachments: 0
2008-02-28 by Tom
OK. Again, I am using avrgcc. I place some values in some vars declared as unit8_t. How do I access said vars from assembly language in the same program image? avrFreak
Thread view
Attachments: 0
2008-02-28 by Philippe Habib
That's what I don't like about gcc. I don't find the errors to be that helpful and often the error is unrelated to the problem and a hundred lines away. -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Tom Sent: Wednesday, F
Thread view
Attachments: 0
2008-02-28 by Don Kinzer
--- In AVR-Chat@yahoogroups.com, Tom wrote: > How do I access said vars from assembly language in > the same program image? If you're referring to inline assembly language, the recipe you're seeking is in the Inline Assembler Cookbook: http://www.nongnu.org/avr-libc/user-manual/i
Thread view
Attachments: 0
2008-02-28 by Tom
Tom wrote: > > I am using avrgcc 4.2.1 through AVRStudio 4.13 Service Pack 1. > > I am getting a frustrating compiler error: > > Found it! It's been 7 years since I coded any C. I had "main {" not "main () {" *sheesh* the error the compiler was tossinfg didn't help at ALL., avrFr
Thread view
Attachments: 0
2008-02-28 by Roy E. Burrage
A sadist is a person who's nice to masochists. From time to time it does fit here...for those of us who insist upon enduring the pain caused by a failed attempt to save 25 or 30 bucks. Figured you might appreciate, though, since you're experiencing the pain in another sort of way
Thread view
Attachments: 0
2008-02-28 by Michael Magin
I assume you're trying to define the main function... If you replace that line with (a standard-compliant main definition): int main(int argc, char *argv[]) { does the problem go away? Mike > > On Wed, Feb 27, 2008 at 7:18 PM, Tom wrote: > > > > > > > > > > > > > > Tom wrote: > >
Thread view
Attachments: 0
2008-02-28 by Philippe Habib
Is it because you've got a paren instead of a curly brace after main? -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Tom Sent: Wednesday, February 27, 2008 7:12 PM To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] gcc probl
Thread view
Attachments: 0
2008-02-28 by Tom
Tom wrote: > > I am using avrgcc 4.2.1 through AVRStudio 4.13 Service Pack 1. > > I am getting a frustrating compiler error: > > in line 38: > > main ( > Err, typo: main { avrfreak
Thread view
Attachments: 0
2008-02-28 by Tom
I am using avrgcc 4.2.1 through AVRStudio 4.13 Service Pack 1. I am getting a frustrating compiler error: in line 38: main ( I am getting: error: unexpected '=', ' ,' , ', ' , ';', 'asm' or '_attribute_" before '{' token Problem is the only lines prior to this line in the code ar
Thread view
Attachments: 0
2008-02-28 by David VanHorn
On Wed, Feb 27, 2008 at 7:50 PM, Roy E. Burrage wrote: > Going back to what John stated earlier, Dave, do you know what a sadist is? Yes, but I'm not sure how it applies here.
Thread view
Attachments: 0
2008-02-28 by Roy E. Burrage
Going back to what John stated earlier, Dave, do you know what a sadist is? REB David VanHorn wrote: >> Yes but that's your fault for keep on running over black cats, >> breaking mirrors, walking under ladders etc. LOL >> > > I thought it cancelled out.. I must be off by one. :)
Thread view
Attachments: 0
2008-02-27 by John Samperi
At 08:50 AM 28/02/2008, you wrote: >Their latest reply says that they can't find anyone else having >problems like this, Had the same run around with the ICE200 :-( I even showed the guy that came from Norway for a seminar. The problem never got fixed and it is still there with n
Thread view
Attachments: 0
2008-02-27 by David VanHorn
> Yes but that's your fault for keep on running over black cats, > breaking mirrors, walking under ladders etc. LOL I thought it cancelled out.. I must be off by one. :) Their latest reply says that they can't find anyone else having problems like this, and they want me to provid
Thread view
Attachments: 0