Shop OBEX P1 Docs P2 Docs Learn Events
Trying work with Hitachi HM55B Compass Module — Parallax Forums

Trying work with Hitachi HM55B Compass Module

MeiraMeira Posts: 3
edited 2007-10-01 13:07 in General Discussion
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
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.
Sign In or Register to comment.