English
Language : 

HMC6343 Datasheet, PDF (10/13 Pages) Honeywell Solid State Electronics Center – 3-Axis Digital Compass Module
HMC6343
Command Protocol
The command protocol defines the content of the data (payload) bytes of I2C protocol sent by the master, and the slave
device (HMC6343).
After the master device sends the 7-bit slave address, the 1-bit Read/Write, and gets the 1-bit slave device acknowledge
bit returned; the next one to three sent data bytes are defined as the input command and argument bytes. To conserve
data traffic, all response data (Reads) will be context sensitive to the last command (Write) sent. All write commands shall
have the address byte least significant bit cleared (factory default 0x32). These commands then follow with the command
byte and command specific binary formatted argument bytes in the general form of:
(Command Byte) (Argument Binary MS Byte) (Argument Binary LS Byte)
The slave (HMC6343) shall provide the acknowledge bits between each data byte per the I2C protocol. Response byte
reads are done by sending the address byte (factory default 0x33) with the least significant bit set, and then clocking back
response bytes, last command dependant. Table 2 shows the HMC6343 command and response data flow.
Table 2 – HMC6343 Interface Commands/Responses
Command
Byte
(hex)
(0x40)
Argument 1 Byte
(Binary)
Argument 2 Byte
(Binary)
(0x45)
(0x50)
(0x55)
(0x70)
(0x72)
(0x73)
(0x74)
(0x75)
(0x76)
(0x7F)
(0x82)
(0x83)
(0x84)
(0xE1)
(0xF1)
EEPROM Address
EEPROM Address
Data
Response Bytes
(Binary)
MSB/LSB Data
(6 Bytes)
MSB/LSB Data
(6 Bytes)
MSB/LSB Data
(6 Bytes)
MSB/LSB Data
(6 Bytes)
Data (1 Byte)
Command Description
Post Accel Data. AxMSB, AxLSB,
AyMSB, AyLSB, AzMSB, AzLSB
Post Mag Data. MxMSB, MxLSB,
MyMSB, MyLSB, MzMSB, MzLSB
Post Heading Data. HeadMSB,
HeadLSB, PitchMSB, PitchLSB,
RollMSB, RollLSB
Post Tilt Data. PitchMSB, PitchLSB,
RollMSB, RollLSB, TempMSB,
TempLSB
Enter User Calibration Mode
Level Orientation (X=forward,
+Z=up) (default)
Upright Sideways Orientation
(X=forward, Y=up)
Upright Flat Front Orientation
(Z=forward, -X=up)
Enter Run Mode (from Standby
Mode)
Enter Standby Mode (from Run
Mode)
Exit User Calibration Mode
Reset the Processor
Enter Sleep Mode (from Run Mode)
Exit Sleep Mode (to Standby Mode)
Read from EEPROM
Write to EEPROM
10
www.honeywell.com