Hi, Has anyone used the new WinAVR compiler distribution from Eric Weddington with AvrX? I can print floats and strings stored in FLASH correctly when ...
You are (probably) crossing the 64k boundary and flash pointers no longer work. You need to set up one of the rampz or y or something register to access the...
Actually, that can't be the problem as I'm using a mega323 with my code totalling around 12Kbytes. I was glad to finally have printf and float printing...
Hmm. What doesn't work? Everything or just the printf stuff? I use the fp stuff for my balancing robot and it seems to work ok. I use (10 * 180 / M_PI) to...
Well, the problem is because of my problems with the math stuff I wanted to use printf to print out the float as a debugging tool but it doesn't work either so...
Hi! Have you tried to use dtostrf or dtostre? they make the conversion from double to string (ascii) and then you can print them to anywhere (I use it to print...
Yeah, I quickly tries them but ran in some other problems. The problem was that I didn't have enough stack space for my task so all his good now. (plus I'm...
Hi, i am using avrgcc(avredit) for 2313. I have to use floating point arithmetic. but the size of binary file comes out to be abt 5kb. Pls tell me if there is...
I heard about a pure assembly version of the floating point library. Try this maybe: http://home.t-online.de/home/Michael.Stumpf/AVR/AVR.htm It's old but it...
Also, you might want to go ask this same question on www.avrfreaks.net as it's a lot better place for this topic and there's a lot more people on there. ciao,...
The Michael Stumpf library is the one used in Avr LibC. It takes about 1k of code space. However, anything that does string handling (e.g. printf & support...
Hey, Larry/otherss: I just finished building my quadrature encoders and was wondering how you handled the full quadrature decoding in your code (unlike the ...
... Would it work to dedicate a small avr to the quadrature, polling it via i2c when needed ? I had thought about then when I first read Larry's article on...
If you look in "avrx.h" at the definitions of the various macros, below, you will find everything you need to know. For example: #define TCB(A) (&A##Tcb) when...
I was thinking of doing that but then again, I was worried about the I2C/Serial/SPI interface being too slow. As I might get around 4200 ticks a second I'd...
4200 ticks/sec is pretty slow in Avr time. 1. You can take my pseudo quadrature code and expand with two more interrupt lines (there are 6 on the mega128, or...
Thanks Larry, now that you put things in perspective it's true that there is a lot of real-time left. I was just getting paranoid as I never really "pushed"...
A mega128 @ 16mhz will loaf at 8khz clock rate. It takes ~250 cycles to service the timer tick. At 8khz the mega 128 clocks 2000 cycles. So about 12%...
Sounds good. Plenty of flexibility here! I just have to find a good polling based quadrature algorithm now as the one I've tried was not quite working as...
Just checked on a lark, and they are listed, 40 pin DIP in both 8 and 16 mhz $7.53 each ========================================================== Chris...
Unfortunately I got tired of waiting and switched to a mega128. It's a probably a good idea too as I won't have to upgrade for a while this way. Stephane, ...
Hi, I’ve just downloaded Avrx and avr-gcc 3.2. I’m new to both Avrx and avr-gcc and just wants everything up and running fast. It might be a problem with...
Simple. Go to http://sourceforge.net/projects/winavr/ and download this newer and better AVRGCC distribution (3.3). Also, make sure you have the absolute...
Hi! ... avrlibc only uses the assembler version. double/float are the same, they are 32bit. I think that what is eating a lot of space is the convertion...
I am attempting to use AVRX with IAR tools targeting a mega128. Has anybody done this using AVRX 2.6e? Also, is GCC required to build the AVRX libraries? I...
It has been about 1-1/2 years since I did the IAR port. Lots of stuff is likely broken now. The code is fine (unless IAR changed their calling conventions)...