adc0838 programming ?

ArchiverArchiver Posts: 46,084
edited 2000-03-16 - 03:56:00 in Microcontrollers
I am trying to use the AD0838.bs2 prgm to understand
how to use the ADC0838 a/d converter.
There is an expression :InitBits = %11000 | ((Channel & %001) << 2) | ((Channel
& %110) >> 1)
that i do not understand .
The initbits is a part of the shiftin command but can someone explain in simple
english what the logical or symbol
means in this context.
The AD0838 prgm was brought to my atention in the HTH files.

ron... the motor man...
Ronald Doctors
http://www.members.home.net/rdoctors
Sign In or Register to comment.