Questions/Basic/16F628A


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    BertMan's Avatar
    BertMan Guest


    Did you find this post helpful? Yes | No

    Default

    Still working on it but here is what I got so far. I havent finished the menu system, nor have I figured a way to convert the floating point numbers coming from the V2Xe.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Lightbulb

    It might help to look at Melabs site .......

    http://www.melabs.com/resources/fp.htm

  3. #3
    BertMan's Avatar
    BertMan Guest


    Did you find this post helpful? Yes | No

    Default

    Excellent! There is a subroutine to convert 32bit floats to a usuable ascii format. Hmm.. I dont think the 628 will hold all that code.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    You could try using the 648, it has 4k.

  5. #5
    BertMan's Avatar
    BertMan Guest


    Did you find this post helpful? Yes | No

    Default

    I ended up using a math co-mcu to do the conversions. This little 8 pin device can convert strings, floats, and longs using the spi interface and only cost me $14. Here is the link: http://www.sparkfun.com/shop/index.php?shop=1&cat=79. Its the umFPU v2.0. I think the cost justified the headaches of using microcode's floating routines, and you can convert a string to float in about 3 lines of code, so I can still use the 628...YEAH!!! Attached is an alpha version of code that I am waiting to test as soon as the device gets here. You can see floating and long conversions in the routines: FloatToString, ConvertSInt32, and SetConfigMenu.

    Conclusion to this thread: If you want an easy to use method for floating point conversion in the IEEE754 format, get a fp co-mcu.
    Attached Files Attached Files

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts