Hi Henrique, it's a real pleasure to hear from you. This is an excellent picture of your setup and it's not all that different from mine. Thanks for sharing your work. You really have to admire a guy who's not afraid to put a real heat sink on his regulator :-) Just kidding :-) Now on to your question. I am using the ansifs.lib in the free Code Warrior (up to 32k). That stands for ANSI floating point small memory model. It allows for 64 bit double calculations in the setup. Perhaps there is a lib file or option in the AVR-GCC which you can select. Otherwise I haven't had that problem and it links in about 3k of lib when I call the double calculation. A price I'm willing to pay for now. But I bet you can write some long calcs to do this Si570 calculation. I just haven't had time to get there yet. Also I would enjoy playing with the AVR chips when I get time :-) I hope someone on the list can shed some light on the AVR-GCC lib selection.
Otherwise below is a link to pictures of my MC9S08QG8 Si570 Controller awaiting it's SR-LX 8.2 :-) The significance of the numbers on the LCD is that the F1 VFO was loaded from the EEPROM with 123456789 Hz. The controller adds 10,000 Hz for a Rocky offset and multiplies that by 4 to set the SI570. Each Fxx function key is a separate VFO so you have 12 VFO's, and I will be storing their values in EEPROM. I still have a few bugs to work out and need to write some sort of memory management options. But I hope to provide at least 999 memories as the general case for a frequency source. The first bug is getting the wait for ACK after writing to EEPROM to work. I think I need to use restarts instead of starts in the wait loop. Sorry about the long message, but I am excited :-) <http://www.flickr.com/photos/k5jhf/sets/72157604863125043/> Henrique wrote: > Hi John, do you remember me? :) > > I am using SI570 with an AVR micro controler, but i am running with an > problem, AVR-GCC has no a real double float, in avr-libc double is > equal to an float. So I want to know if you have this problem in MC > micro controller. If you have how you solv this problem ? > > I am running my Si570 with Atmega168 + Encoder + Serial terminal + 4 bit LCD > > you can see it here : > > http://flickr.com/photos/henriquegravina/2417999354/in/set-72157604373745657/ > > > > -- Regards, John ========================================================= email: [EMAIL PROTECTED] photos: http://www.flickr.com/photos/k5jhf/sets/ videos: http://www.youtube.com/profile?user=k5jhf files: http://briefcase.yahoo.com/[EMAIL PROTECTED] web page: http://www.geocities.com/[EMAIL PROTECTED] call sign: K5JHF =========================================================
