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.

Can PIC16F877 do floating point math?

Status
Not open for further replies.

stevenlkz

Newbie level 3
Joined
Jun 6, 2005
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,332
microchip an575 picfloat

Hello everyone! Im doing my final project about intelligent traffic system with fuzzy logic that need to build into PIC16F877. But I face a problem that is there are no multiply, divide, square and square root instruction with MPlab. Another problem is I need to do the math in floating point. How can I solve it? Any advices and suggestions do u all can give me?
Thanks for spending your time.
 

C-Man

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,059
Helped
90
Reputation
180
Reaction score
17
Trophy points
1,318
Activity points
10,189
Which programming language are you using??

Please state wheter you program in assembler, basic, c ...

best regards
 

aym_qunibi

Member level 4
Joined
Mar 5, 2005
Messages
77
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Activity points
1,932
i am sorry it is not the compiler ,but the file size i want to send to you is very large
so send me your email and i will send it to you by parts.
:eek:
 

    stevenlkz

    Points: 2
    Helpful Answer Positive Rating

GrandAlf

Advanced Member level 2
Joined
Mar 9, 2002
Messages
520
Helped
47
Reputation
92
Reaction score
6
Trophy points
1,298
Location
UK
Activity points
4,730
Most small MCUs do not have an FPU unit due to various constraints. If you are using C there is probably a FP library available. Not very efficient though, it will cost speed and memory.
 

stevenlkz

Newbie level 3
Joined
Jun 6, 2005
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,332
Im using the MPlab, which is an assembler. I must use the floating point for my fuzzy logic.
 

VVV

Advanced Member level 5
Joined
Nov 26, 2004
Messages
1,582
Helped
384
Reputation
768
Reaction score
88
Trophy points
1,328
Activity points
19,971
Check out Application note AN576 (I think) from Microchip. It gives details on implementing IEEE-754 compliant floating point routines. (If it's not AN576, try AN575. The Microchip website is down right now, so I could not check).
 

comsians

Member level 1
Joined
May 22, 2005
Messages
41
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,755
yes, PIC16F877 has a floating point math i know because

in my final project i am using this microcontroller but using a compiler of
WIZ-C which provide the fascility of
floating point math

u can check the software at

wizc.co.uk/fored
 

muruga86

Member level 3
Joined
Mar 26, 2005
Messages
55
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Location
Chennai, India
Activity points
1,931
if u are using an assembler u have to implement floating point algoritham urself, or else if u use any c compiler ther will be build in libraries that take care of floating point operations. flaoting point operations require more instructions to execute. mostly the micro clock determines how fast floating point operations takes place and jence if ur clock freq. is too small then micro an't complete it.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top