Shop OBEX P1 Docs P2 Docs Learn Events
uM-FPU from MicroMega for Javelin? — Parallax Forums

uM-FPU from MicroMega for Javelin?

TyreBiterTyreBiter Posts: 40
edited 2005-06-05 18:19 in General Discussion
I am new to the javelin forum. I have been having fun with the JBot and Java. As a programmer I am used to thinking in terms of floating point arithmatic. The microcontroller is a lot of fun, but I keep running into the 16bit arithmatic barrier. The floating point unit looks like a good way to solve my problems. I was wondering if anyone has written any code for the uM-FPU from MicroMega.

Thanks...

Comments

  • TyreBiterTyreBiter Posts: 40
    edited 2005-05-23 14:40
    Thanks Peter,

    I appreciate the speed of your reply. Sorry to miss the obvious.

    Regards... blush.gifblush.gif
  • camtcamt Posts: 45
    edited 2005-05-23 14:52
    Hi,

    The uM-FPU works well with the Javelin Stamp. You can find lots of additional information and application notes about using the uM-FPU on the Micromega website located at www.micromegacorp.com.

    Note: The currently posted Javelin class is for the uM-FPU V1 chip. There are a couple of changes to the reset method that must be made to be compatible with uM-FPU V2. (The reset pulse needs to be 500 usec followed by an 8 msec delay.) I will make the changes to the class by tomorrow at the latest and send a new version to Parallax for posting. In the meantime, you can email support@micromegacorp.com to request a copy be sent directly to you.

    Regards,
    Cam
    Micromega Corporation
  • SteveYSteveY Posts: 1
    edited 2005-06-05 07:36
    Dear Auburnsky, Cam, and Peter,

    Is it possible to do plotting with the Javelin?· --XY plot with animated

    points on the plot, being updated every couple of seconds from measurement

    data?· Has any one done it?



    Steve
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-06-05 09:08
    You can use Stampplot

    http://www.selmaware.com/stampplot/

    but that requires a bidirectional Uart.

    You can do simple XY plotting to the Jide message window by

    outputting lines like

    "···· ."

    "·· ."

    "··· ."

    etc.

    where each line is a fixed X-step and the dot position reflects the Y-value.

    It may be possible to do some cursor control so you could overwrite previous lines

    (i.e animating the plot) but I do not know the cursor control codes (if any).

    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-06-05 10:19
    Here are the IDE message control codes I could find:

    · static final int JIDE_HOME··· = 1;· //move cursor to upper-left position (home)
    · static final int JIDE_LEFT··· = 3;· //move cursor one position to left
    · static final int JIDE_RIGHT·· = 4;· //move cursor one position to right
    · static final int JIDE_UP····· = 5;· //move cursor one line up
    · static final int JIDE_DOWN··· = 6;· //move cursor one line down
    · static final int JIDE_BELL··· = 7;· //sound bell
    · static final int JIDE_BS····· = 8;· //delete character to left of cursor and move cursor left
    · static final int JIDE_TAB···· = 9;· //appears to be ignored by IDE message window, also '\t'
    · static final int JIDE_NEWLINE = 10; //move cursor to start of next line, also '\n'
    · static final int JIDE_CR····· = 13; //appears to be ignored by IDE message window, also '\r'
    · static final int JIDE_CLS···· = 16; //clear message window and home cursor

    regards peter
    ·
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-06-05 18:19
    I have created a JIDE_Display class that allows to use the IDE message window

    as a LCD display. The files are located here. It uses the in the previous reply mentioned

    cursor control values to mimic an lcd.

    http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/display/

    regards peter
Sign In or Register to comment.