Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

implementing floating point code - help

Status
Not open for further replies.

swanann2000

Member level 1
Joined
Oct 20, 2001
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
236
Floating point help

I need to implement floating point code in a 8-bit ,128 (RAM), and 1.5K flash memory microcontroller (Motorola).
I'm programming in C but the libraries are not optimized for a tiny microcontroller.
Somebody have any code implementing optimized floating libraries for a low RAM (low Stack) microcontrollers..

Thanks in advance!!!!!!!!!
 

1. Try QT4
2. The worst case stack oriented HC08 FP implementation should
require no more than 2*4(single prec arguments)+2(return address)+
<4(for temporary argument storage)+optional1(sign)+optional1(exp).
So max 16 bytes. You have 128 and I don't see your problem.
3. Google IEEE754
4. Take existing FP implementation and port it to
zero page, unleash power of MOV ,X+, BSET!


OT: If not secret why did you choose hc08? pics&avs look much better

kef
 

thx key,

I will try it.... my problem was with the compiler float library, it use almost 30 bytes of stack.

I choose HC08 to test the NITRON generation

Thanks
 

Here's a floating point example for PIC MCU: **broken link removed**
 

TRY ASLO THIS

HI,

swanann please use the pic micro that provide the better floating point
example and software available such as pic basic pro compiler and pic basic plus compiler

regards
Fragrance
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top