Shop OBEX P1 Docs P2 Docs Learn Events
Using an LTC1298 with BS2 Stamp. — Parallax Forums

Using an LTC1298 with BS2 Stamp.

poorieuserpoorieuser Posts: 7
edited 2007-10-09 01:31 in BASIC Stamp
I'm doing a research projects involving battery voltage. While review the LTC1298 AppNote packet I've come to the the section of the code "config= config|%1011". Can anyone explain to me where the 1011 comes from? For reference the whole of the code is below.

LTC1298 AppNote said...
convert:
config = config | %1011 ' Set all bits except oddSign.
low CS ' Activate the ADC.
shiftout DIO_n,CLK,lsbfirst,[noparse][[/noparse]config\4] ' Send config bits.
shiftin DIO_n,CLK,msbpost,[noparse][[/noparse]AD\12] ' Get data bits.
high CS ' Deactivate the ADC.
return ' Return to program.
Orginal @ http://parallax.com/dl/docs/prod/appkit/ltc1298.pdf

Comments

Sign In or Register to comment.