manutdfan2004
New Member
Following on from my previous thread concerning wireless communications I need a little bit of help again, I have connected up this analog multiplexor to a PIC but cannot get any data from it all that I end up getting is 0's constantly.
I have attached a file showing the way in which I have connected it up to an 18X chip, with pins 11,12 and 13 used to select which set of data to use from multiplexor and pin 17 being the analogue input pin.
Can anyone notice anything stupid I have done and why this would not work? I have triple checked this and cannot see anything, I have even tested the multiplexor by connecting it in another circuit with the enable set so all data is transmitted through.
Here is the datasheet on the multiplexor:
http://pdf1.alldatasheet.com/datasheet-pdf/view/73418/MAXIM/MAX4617CPE.html
Code snippet:
I have attached a file showing the way in which I have connected it up to an 18X chip, with pins 11,12 and 13 used to select which set of data to use from multiplexor and pin 17 being the analogue input pin.
Can anyone notice anything stupid I have done and why this would not work? I have triple checked this and cannot see anything, I have even tested the multiplexor by connecting it in another circuit with the enable set so all data is transmitted through.
Here is the datasheet on the multiplexor:
http://pdf1.alldatasheet.com/datasheet-pdf/view/73418/MAXIM/MAX4617CPE.html
Code snippet:
Code:
multi1:
low 7 ' Multiplexor Logic A
low 6 ' Multiplexor Logic B
low 5 ' Multiplexor Logic C
readadc 0,b0 ' Input X0
high 7
readadc 0,b1 ' Input X1
low 7
high 6
readadc 0,b2 ' Input X2
high 7
readadc 0,b3 ' Input X3
low 7
low 6
high 5
readadc 0,b4 ' Input X4
high 7
readadc 0,b5 ' Input X5
low 7
high 6
readadc 0,b6 ' Input X6
high 7
readadc 0,b7 ' Input X7
goto send
Attachments
-
32.6 KB Views: 34