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.

For which application is floating point calculation required

Status
Not open for further replies.

pixel

Advanced Member level 2
Joined
Sep 16, 2004
Messages
511
Helped
69
Reputation
138
Reaction score
16
Trophy points
1,298
Activity points
3,992
floating point

Lot of computing can be done with fixed point, which is much faster than floating point calculation on microcontrollers.
For which application is the floating point necessary in microcontrollers systems?
 

rkodaira

Full Member level 6
Joined
Jun 8, 2004
Messages
332
Helped
68
Reputation
136
Reaction score
12
Trophy points
1,298
Location
Sao Paulo - Brasil
Activity points
4,092
Re: floating point

Hi !

Floating point operation should be avoided if possible. It spends a lot of commands, memory and processing. But sometimes, you have to deal with fractionary very smaller or numbers very larger than fixed point numbers of 2 (65,536) or 4 bytes long (4,294,967,296) or need a good precision.
It is normally used to treat numbers within the range of fixed point (integer) numbers, shifting decimal point right or left (multiplying or dividing by ten). As I made some confusion about it, i´d prefer using standard floating point routines in my PIC programs.
 

mipedja

Junior Member level 3
Joined
Sep 20, 2004
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
301
Re: floating point

So, as I understood floating point should not be used in fast real time application. Maybe in some slow instrumantation measurement?
 

stygops

Newbie level 6
Joined
Aug 31, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
114
Re: floating point

in a program of 89s8252 i used floating point to calculate antilogarithm and after i multiply to show in lcd...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top