Pic FPU


Closed Thread
Results 1 to 10 of 10

Thread: Pic FPU

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Pic FPU

    Hi,
    It's not the numbers that are needed, but the math,
    and in particular, of interest to me, trigonometric functions
    not implemented in PBP such as: sin, cos, tan, etc.
    needed for calculations such as distance,bearing,foot of perpendicular,
    anything to do with angles in games (ball bouncing of a wall at the inverse angle), etc.

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: Pic FPU

    Quote Originally Posted by Art View Post
    Hi,
    It's not the numbers that are needed, but the math,
    and in particular, of interest to me, trigonometric functions
    not implemented in PBP such as: sin, cos, tan, etc.
    needed for calculations such as distance,bearing,foot of perpendicular,
    anything to do with angles in games (ball bouncing of a wall at the inverse angle), etc.
    Your saying calculations like sin etc. require floating point in place of the use of Longs?

    Norm

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Pic FPU

    No, because I've seen that cordic trig has been implemented with PicBASIC,
    and is demonstrated by a program that can calculate distance and bearing
    given a set of geo-coordinates.

    I'm saying any purely PBP implementation I've seen is slow and memory consuming,
    and unsuitable for anything requiring the speed for a graphics display.

    The dspic at 40MIPS should really be doing the whole job,
    but in reality, I'd get the job done quicker with a low end pic using PBP
    when it comes to interfaces and talking to other devices,
    but that could change if one became familiar with the C libraries used
    for the communication. A large part of what PBP is, is a collection of
    similar libraries in RISC asm.

    I think it would be easiest to emulate the comms of LCDOUT/LCDIN
    with 8 bit interface, so you could use LCDOUT to talk to it.

Similar Threads

  1. FPU for pic
    By Art in forum General
    Replies: 6
    Last Post: - 12th May 2008, 11:51
  2. High Speed Serial Comm PC - PIC and PIC - PIC
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 16th January 2007, 21:55

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