Output of Floating point calculation not on LCD
Posted: Tue Apr 27, 2010 8:26 pm
hello,
I discovered some problems with floating point calculations (increment, decrement) on floating point values after the programm is correctly simulated (AVR flowCode V4) and compiled from c to hex file by both AVR FlowCode V4 and AVR Studio 4.18 SP2.
I am using the ATMEL STK500 board (with the new firmware wich was updated by AVR Studio 4.18 SP2) to program the hex files to the chip.
Only the result by AVR FlowCode simulation works very well.
1. The output of the floating point calc in string format is not send to LCD.
2. Also the LCD display will not correct initialise and makes an onstable impression.
3. Also noticed a difference when hex file is programmed to the chip between AVR studio 4.18 SP2 (led is flasing by rotating de rotary switch and LCD not initialised) and when using AVR FlowCode V4 (nothing happens correct)
Both programs AVR studio and flowCode give no errors when c files where compiled to hex and then programmed by stk500 to the chips. (i pay specially attention to the fuse settings and used the same fuse settings for both AVR studio and AVR flowCode V4. for ATmega88 (0x0,0xF9 - 0x1,0xDF - 0x2,0xFF) for ATmega16 (0x0,0xD9 - 0x1,0x7F) and for ATmega128 (0x0,0xFF - 0x1,0xD9 - 0x2,0x7F)
To get no compilation errors i have taken care of the directory path depth. If the directory path has to many sub directories then errors coming up for both AVR Studio 4.18 and AVR flowCode V4.
I had also taken care of using the output port configuration for LCD, and no using interrupts (disabled) on input port (this is the nex step).
I have written a test programm and used it for ATmega128, ATmega16 and ATmega88 and get for all of them the same results wich are not correct in what i am expected in compare with the result by simulation. The result by AVR FlowCode simulation works very well.
Are their another people who have the same experiences like me when using the floating point in their programs which are programmed on HardWare ???
My PC equipment is a Quad Core Intel Q9550, 8Gbyte RAM, Windows 7 Pro 64bit
I discovered some problems with floating point calculations (increment, decrement) on floating point values after the programm is correctly simulated (AVR flowCode V4) and compiled from c to hex file by both AVR FlowCode V4 and AVR Studio 4.18 SP2.
I am using the ATMEL STK500 board (with the new firmware wich was updated by AVR Studio 4.18 SP2) to program the hex files to the chip.
Only the result by AVR FlowCode simulation works very well.
1. The output of the floating point calc in string format is not send to LCD.
2. Also the LCD display will not correct initialise and makes an onstable impression.
3. Also noticed a difference when hex file is programmed to the chip between AVR studio 4.18 SP2 (led is flasing by rotating de rotary switch and LCD not initialised) and when using AVR FlowCode V4 (nothing happens correct)
Both programs AVR studio and flowCode give no errors when c files where compiled to hex and then programmed by stk500 to the chips. (i pay specially attention to the fuse settings and used the same fuse settings for both AVR studio and AVR flowCode V4. for ATmega88 (0x0,0xF9 - 0x1,0xDF - 0x2,0xFF) for ATmega16 (0x0,0xD9 - 0x1,0x7F) and for ATmega128 (0x0,0xFF - 0x1,0xD9 - 0x2,0x7F)
To get no compilation errors i have taken care of the directory path depth. If the directory path has to many sub directories then errors coming up for both AVR Studio 4.18 and AVR flowCode V4.
I had also taken care of using the output port configuration for LCD, and no using interrupts (disabled) on input port (this is the nex step).
I have written a test programm and used it for ATmega128, ATmega16 and ATmega88 and get for all of them the same results wich are not correct in what i am expected in compare with the result by simulation. The result by AVR FlowCode simulation works very well.
Are their another people who have the same experiences like me when using the floating point in their programs which are programmed on HardWare ???
My PC equipment is a Quad Core Intel Q9550, 8Gbyte RAM, Windows 7 Pro 64bit