Jump to content



Recommended Posts


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.




Link to comment
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji 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.


  • Create New...