View Full Version : Interfacing to Compass module HM55B
mikerobinson
27-01-2006, 21:03
I have a memsic 2125 compass module.
Has anyone been able to interface with one of these modules to the picaxe and can you supply any info?
It is supposed to be for a basic stamp processor and uses the command:
SHIFTOUT dinout,clk,msbfirst,[rest/4]
shiftin dinout,clk,msbpost,[x/11],y/11]
I've also seen
pulsin xin,hipulse,pulse
many thanks
mike
Garfield007
18-02-2006, 18:38
SHIFTOUT pin , pclock , var , option [, bits , delay ]
Pin
The port pin which serves as a data output.
Pclock
The port pin which generates the clock.
Var
The variable that is shifted out.
Option
Option can be :
0 – MSB shifted out first when clock goes low
1 – MSB shifted out first when clock goes high
2 – LSB shifted out first when clock goes low
3 – LSB shifted out first when clock goes high
Bits
Optional number of bits to shift out.
Delay
Optional delay in uS. When you specify the delay, the number of bits must also be specified. When the default must be used you can also use NULL for the number of bits.
you should check out this site
http://avrhelp.mcselec.com/SHIFTOUT.html
Garfield007
18-02-2006, 18:49
BTW this is a
Memsic 2125 Dual-axis Accelerometer
look at data sheet
http://www.parallax.com/dl/docs/prod/acc/memsickit.pdf
regards Garfield
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.