alejandro1957 - 2014-06-14

with this code the module works well and transmits the data via RF with the USART where they are processed by a terminal in Gambas2 with an error of ± 0.5°(HMC5883L.16F877A.gcb).
And this is the code of the terminal Gambas2(Brujula.Gambas2).
Then I created a code that uses the CORDIC algorithm for pic without floating point with gambas2(ATAN2.Gambas2).
seen that worked very well to convert the coordinates of the X and Y axes, I tried to pour it into GCBasic for 16F877A.ma does not work, better to say is slow (you can see the LEDs in the loop) and arrive erroneous data on line USART RF terminal.
this is the code(the code HMC5883L.16F877A.gcb running without the ATAN2 and ATAN), have a look.
where he is the mistake?

 

Last edit: alejandro1957 2014-06-14