Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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!!!!!!!!!
 

kef

Junior Member level 2
Joined
Feb 21, 2002
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
156
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
 

swanann2000

Member level 1
Joined
Oct 20, 2001
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
236
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
 

Fragrance

Advanced Member level 4
Joined
Jul 26, 2002
Messages
1,191
Helped
247
Reputation
494
Reaction score
198
Trophy points
1,343
Location
East Of Earth
Activity points
8,916
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top