micromega FPU user defined function call - FCALL

I am trying to call a user defined function on a micromega fpu. A portion of my code is listed. I am using:

'-------------------- uM-FPU USER DEFINED FUNCTIONS ---------------------------
INIT_REGS           CON     $00    ' user defined FPU function, initialize fpu registers
PROCESS_ADC         CON     $01 ' 
CALC_ADJUSTMENT     CON     $02 ' 
' =========================================================================
  PROGRAM Start
' =========================================================================
Start:
Fpu_Reset
Fpu_Write FCALL, INIT_REGS
Main:
PAUSE 5000
GOTO Main




Is this the correct way to call user defined functions on a micromega fpu. I have already loaded the attached fpu code onto the fpu using the micromega v3 ide. I am trying to sort out if my hardware or software is buggy? Any ideas...?

Post Edited (slcott) : 12/28/2009 8:22:28 PM GMT
Tagged:

Comments

  • 6 Comments sorted by Votes Date Added
  • edited December 2009 Posts: 27Vote Up0Vote Down
    any help greatly appreciated.
  • edited December 2009 Posts: 0Vote Up0Vote Down
    You might want to send a not to Cam Thompson. Are you presently able to communicate with the FPU? If that works, then the other stuff is, as my friend says, a small matter of programming. I haven't use the FPU in a long time and never did get into custom functions.
    Jon McPhalen<div>Burbank, CA</div>
  • edited December 2009 Posts: 27Vote Up0Vote Down
    does anyone else have any experience with micromega fpu hooking up to an sx chip?
  • edited December 2009 Posts: 0Vote Up0Vote Down
    search for "micromega fpu". The bs2 forum has a lot of hits.
  • edited December 2009 Posts: 0Vote Up0Vote Down
    You should go to the website: micromegacorp.com/sx.html in order to develop the SPI interface with the chip.
    I have successfully used this chip with an SX for quite a while.

    Dave
Sign In or Register to comment.