Hi
I am trying to read values from ADC808 to a port using keil C. Unfortunately my circuit is designed such that pins are not connected in order. My connection is as follows D0-p2.4 D1-p2.6 D2-p2.6 D3-p2.7 D4-p2.3 D5-p2.2 D6-p2.1 D7-p2.0
D0-D7 are data pins of ADC808 and p2 is port2. How can I read these values to a byte?
Are you sure you mean C251 ?
D1-p2.6 D2-p2.6
That can't be right?!
"How can I read these values to a byte?"
Use the C51/251 bit addressing features?
Use standard 'C' shift & mask operations?
I am using 89V51 and I had corrected it using shift. Thnx for the reply
So that's not C251, then - is it?!
As there's only 256 possibilities (max), you could just use a lookup table...