bluesmoke
- 5th October 2009, 18:04
I am sending instructions from my 16f887 to a uM-FPU V3 32-bit floating point coprocessor. All works well until I try to do trig and must send commands that use the words SIN or COS. Since these are reserved words the program refuses to compile.
The details:
The instruction set I am trying to send from Pic to coprocessor:
SHIFTOUT FpuOut, FpuClk, MSBFIRST, [SELECTA, p1, LEFT, FSET, Lon2, FSUB, Lon1, SIN, RIGHT, FSET0, LEFT, FSET, Lat2, COS, RIGHT, FMUL0]
The problem is that the FPU chip needs "SIN" and "COS" as part of its instructions. Microcode studio gives me error 239 when compiling because these are reserved words.
Does anyone see a workaround for this problem?
Thanks.
The details:
The instruction set I am trying to send from Pic to coprocessor:
SHIFTOUT FpuOut, FpuClk, MSBFIRST, [SELECTA, p1, LEFT, FSET, Lon2, FSUB, Lon1, SIN, RIGHT, FSET0, LEFT, FSET, Lat2, COS, RIGHT, FMUL0]
The problem is that the FPU chip needs "SIN" and "COS" as part of its instructions. Microcode studio gives me error 239 when compiling because these are reserved words.
Does anyone see a workaround for this problem?
Thanks.