Accelerometer
Commander_Bob
Posts: 17
In the demo code for the· Hitachi H48C TriAxis Accelerometer Module does any one know what %11\2 means? I think \2 means 2 bits but what is %11? I am trying to use the accelerometer and I am writing the code in C so I need to know what this means. Does it have a hexadecimal equivalent that could be sent to the chip?
Thanks
Thanks
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Are you sure you didn't just lean on the keyboard? The only use for \ I can find is for abort traps.
Graham
Get_H48C:
LOW CS
SHIFTOUT Dio, Clk, MSBFIRST, [noparse][[/noparse]%11\2, VRef\3] ' select vref register
SHIFTIN Dio, Clk, MSBPOST, [noparse][[/noparse]rvCount\13] ' read ref voltage counts
HIGH CS
PAUSE 1
LOW CS
SHIFTOUT Dio, Clk, MSBFIRST, [noparse][[/noparse]%11\2, axis\3] ' select axis
SHIFTIN Dio, Clk, MSBPOST, [noparse][[/noparse]axCount\13] ' read axis voltage counts
HIGH CS
RETURN
http://forums.parallax.com/showthread.php?p=605387
Given that this is the propeller forum not the basic stamp forum.
Graham
Post Edited (Graham Stabler) : 6/27/2007 12:16:00 AM GMT