28029 Parallax Inc, 28029 Datasheet - Page 152

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
Page 140 · Smart Sensors and Applications
'
'
'
'
'
'
'
'
' -----[ EEPROM Data ]--------------------------------------------------------
CompassOffsets DATA @ 0, (4)
CompassLowVal
CompassCal
' -----[ Pin Definitions ]---------------------------------------------------
DinDout
Clk
En
' -----[ Constants ]----------------------------------------------------------
Reset
Measure
Report
Ready
NegMask
current
previous
' -----[ Variables ]----------------------------------------------------------
x
y
status
angle
axisOffset
index
table
span
angleOffset
' -----[ Initialization ]-----------------------------------------------------
DEBUG CLS
' -----[ Main Routine ]-------------------------------------------------------
DO
That calibration process must be performed prior to running
this test program.
For instructions on how to perform the calibration process,
consult Chapter #4, Activity #2 of
of Smart Sensors and Applications.
download from the Smart Sensors and Applications page at
www.parallax.com.
DATA
DATA
PIN
PIN
PIN
CON
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
2
0
1
%0000
%1000
%1100
%1100
%1111100000000000
0
1
Word
Word
Nib
Word
angle
Status
Byte(2)
x
y
(1)
(16)
' Stores x and y axis offsets
' Stores index of lowest angle
' 16 reference compass angles
' P6 transceives to/from Din/Dout
' P5 sends pulses to HM55B's Clk
' P4 controls HM55B's /EN(ABLE)
' Reset command for HM55B
' Start measurement command
' Get status/axis values command
' 11 -> Done, 00 -> no errors
' For 11-bit negative to 16-bits
' Table array index
' Table array index
' x-axis data
' y-axis data
' Status flags
' Angle measurement
' Axis offset
' EEPROM index
' Stores EEPROM table values
' Span between table entries
' Offset btwn measured and table
' Main loop
It's available for

Related parts for 28029