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:
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
'-------------------- 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
Comments
I have successfully used this chip with an SX for quite a while.
Dave