Trying work with Hitachi HM55B Compass Module
Hi. Iam trying comunicate with Hitachi HM55B Compass Module by PIC18F4550, but i dont recive the correct status flag.
Iam working with 20Mhz, but use the function Delay10TCYx(1) for make one delay greater that 100ns.
Actually a PIC with a Clock of 20MHz runs every instruction cycle at 50x4 i.e. 200nSec·![s1.gif](http://forum.microchip.com/image/s1.gif)
This makes 2uSec using Delay10TCYx(1).
I translate the code form Basic Stamp2 series test program to MCC18.
The·functions void ShiftOUT (char comando); char TestStatus (void); void ShiftIN (void);·they had been created by me.
·
In the annexes i send my code and the HM55B documentation.
PlZ try help me with this because i need this for one school project.
Iam working with 20Mhz, but use the function Delay10TCYx(1) for make one delay greater that 100ns.
Actually a PIC with a Clock of 20MHz runs every instruction cycle at 50x4 i.e. 200nSec·
![s1.gif](http://forum.microchip.com/image/s1.gif)
This makes 2uSec using Delay10TCYx(1).
I translate the code form Basic Stamp2 series test program to MCC18.
The·functions void ShiftOUT (char comando); char TestStatus (void); void ShiftIN (void);·they had been created by me.
·
In the annexes i send my code and the HM55B documentation.
PlZ try help me with this because i need this for one school project.