In SX Microcontrollers, SX/B Compiler and SX-Key Tool, slcott wrote: I am trying to call a user defined function on a micromega fpu. A portion of my code is listed. I am using: [code] '-------------------- 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 [/code] 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...? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=413547 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)