Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Discussion Groups

Discussion Groups | Piclist | floating point or fixed point routines for PIC16F877

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

floating point or fixed point routines for PIC16F877 - eevagg - May 14 9:07:00 2004


Hello to everybody!

I am a new user of PIC and this period I am dialing with a project
based on PIC16F877. So, I am needing floating point routines.
I have two decimal numbers (Num1 is 32bit and Num2 is 16 bit).I want
to divide and multiply these mumbers. The result of division will be
a floating point number.I need floating point routine, don't I? But a
fixed point routine with 2 digits after point (x.yy) would be solve
my problem.
I saw the archives of microchip but the only routine I found was a
fixed point but don't return the fraction part of division,only
remainder.
Maybe someone have any simple routine for PIC?
The last question is what about piclist site.I can't load the site.
why? And what about mailing list? It is requested username and
pasword to see any mail from list.What exactly happen?
Any help will be appreciate!

Thanks in advance to each one!

Best regards,
vaggelis





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: floating point or fixed point routines for PIC16F877 - Scott Lee - May 15 9:31:00 2004

Since you said "this period" I will assume that you are a student and
thus I'm not going to give you any complete answers. As usual there
are a few ways to solve any problem however I will suggest that you
think about "scaling" and what it can do for you since fixed point
with two places after the decimal is good enough for you.

--Scott

--- In , "eevagg" <evagg@i...> wrote:
> Hello to everybody!
>
> I am a new user of PIC and this period I am dialing with a project
> based on PIC16F877. So, I am needing floating point routines.
> I have two decimal numbers (Num1 is 32bit and Num2 is 16 bit).I want
> to divide and multiply these mumbers. The result of division will be
> a floating point number.I need floating point routine, don't I? But a
> fixed point routine with 2 digits after point (x.yy) would be solve
> my problem.
> I saw the archives of microchip but the only routine I found was a
> fixed point but don't return the fraction part of division,only
> remainder.
> Maybe someone have any simple routine for PIC?
> The last question is what about piclist site.I can't load the site.
> why? And what about mailing list? It is requested username and
> pasword to see any mail from list.What exactly happen?
> Any help will be appreciate!
>
> Thanks in advance to each one!
>
> Best regards,
> vaggelis




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )