Jump to content
Sign in to follow this  
hardik

Hi

Recommended Posts

hardik    0

<p>hi,</p>

<p>i am using pic16f689 and version 6.81. i have to use sqrt function.</p>

<p>but it need 260 bytes ram. i have only 256bytes available.</p>

<p>is it my program mistake or else?</p>

<p> </p>

Share this post


Link to post
Share on other sites
Dave    0

hi,

i am using pic16f689 and version 6.81. i have to use sqrt function,

but it need 260 bytes ram. i have only 256bytes available.

is it my program mistake or else?

 

The current floating point math library square root routine is somewhat on the heavy side when it comes to RAM and ROM.

My best suggestion if convert the value to an integer (multiply by 100 for one decimal place) and then use the integer square root function.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×