Vikram,
I don't want to rain on your parade but have you looked at these numbers
are you getting what you expect from the calculation you are doing.
This is where I would test my calculations out in excel or math cad to
be sure that the answer you are getting is correct. In my opinion there
are too many numbers after the decimal point for a software 8 or 16bit
PWM. This is just my opinion of course but when every I see that many
numbers after the decimal point I get curious about the calculation and
what is is doing. It should be fine and I'm sure you have proven that
this is correct but if I was doing something like this and I was testing
out an experimental library I would want to prove that it is working as
expected this goes doubly so for a math library. You don't have to
prove to me that it is working I am just writing this to make you
think. When you have the code working the job is only half done for a
software engineer you need also to prove to yourself and your peers that
it is working correctly.
Anyway well done this is an exciting library for people who want to use
floating point in their code I hope you have time to make it available
to all SDCC users.
Regards,
Rod Boyce.
Vikram Tamboli wrote:
>Hello,
> Thank you Mr Paul Stoffregen for sending me the
>sourcecode of printf_fast for small model
>My program did worked. Why the source code is not
>shipped with SDCC.
>
>the o/p was as follows
>
>Digital PWM Genrator
>
>DutyCycle = 50.58823776 %
>DutyCycle = 50.98039245 %
>DutyCycle = 51.37255097 %
>DutyCycle = 51.76410565 %
>DutyCycle = 52.15686416 %
>DutyCycle = 52.54901886 %
>.............
>
>& guess what i have 1k code space free in small model
>
>
>
>__________________________________
>Do you Yahoo!?
>The allnew My Yahoo!  What will yours do?
>http://my.yahoo.com
>
>
>
>SF email is sponsored by  The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://productguide.itmanagersjournal.com/
>_______________________________________________
>Sdccuser mailing list
>Sdccuser@...
>https://lists.sourceforge.net/lists/listinfo/sdccuser
>
>
