This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Rading pin values to a byte

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?

0