HMR3100-DEMO-232

HMR3100
Advanced Information SENSOR PRODUCTS
Solid State Electronics Center www.magneticsensors.com (800) 323-8295 Page 4
Normal Mode
When the host processor (external to the HMR3100) sends a RTS low pulse to the RTS pin, the HMR3100 will send
heading data via the TXD pin. The host shall hold the RXD pin high during this mode. The RTS shall be held high
when not pulsed. The HMR3100 will return to sleep status when RTS is left high after the data is sent. Up to 20
heading queries per second can be accomplished given fast enough baud rates. A caution is advised that average
current draw is proportional to supply voltage and amount of queries handled. At the 20 Hz rate, 1 to 5 milliamperes
of current is consummed with lesser query rates taking advantage of the less than one microampere sleep mode
current draw between queries. Figure 1 shows the normal mode timing diagram.
Figure 1
Normal Mode Timing Diagram
HMR3100
Advanced Information SENSOR PRODUCTS
Solid State Electronics Center www.magneticsensors.com (800) 323-8295 Page 5
Continuous Mode
When the host processor sets the RTS pin to a low level position, the HMR3100 will continuously stream heading
data via the TXD pin. Note that the processor does not return to sleep mode and outputs heading slightly below a 2
Hz rate. Figure 2 shows the continuous mode timing diagram.
Figure 2
Continuous Mode Timing Diagram
HMR3100
Advanced Information SENSOR PRODUCTS
Solid State Electronics Center www.magneticsensors.com (800) 323-8295 Page 6
Calibration Mode
When the host processor pulses the RTS pin, and sends the RXD pin to a low logic level, the HMR3100 is in
calibration mode. At a moderate rate (2 to 5 seconds per rotation), rotate the HMR3100/host assembly two complete
circles to allow the HMR3100 to take measurements for compass calibration. At the completion of the rotations,
return the RXD to a high logic level. The HMR3100 will return to sleep status until another mode has been initiated.
Upon initiation of the calibration mode, the microcontroller shall output a STA (53 54 41 hex) indicating a start of
calibration and then RDY (52 44 59 hex) at the completion of the rotations and the RXD line returning high. Figure 3
shows the calibration mode timing diagram.
Data Description
The HMR-3100 host processor uses a three byte reply as the RTS line is brought low. The data is formatted in
hexadecimal (hex) fashion with the first byte being either 80(hex) or 81(hex). If that first byte LSbit is flagged high (81
hex), it means magnetic distortion maybe present and a calibration should be performed. The remaining two bytes
are the heading (in degrees) in MSB to LSB format. There is some data interpretation needed to derive the heading.
For example, an 80 02 85 (hex) Byte pattern correlates to 322.5 degrees.
This is done by taking the MSB hex value, converting it to decimal representation (e.g. 02 decimal) and multiplying it
by 256. Then the LSB is decimalized (e.g. 85(hex) to 133(decimal)) and added to the 512(decimal) MSB. The total
(512+133=645) is then divided by two to arrive at a 322.5 degree heading. This data format permits the 0.5°
resolution.
Figure 3
Calibration Mode Timing Diagram

HMR3100-DEMO-232

Mfr. #:
Manufacturer:
Description:
KIT DEMO DGTL COMPASS MOD RS232
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet