MCP3208_fast_multi howto setup pins if out of I/O's
courtens
Posts: 101
I would like to use the object MCP3208_fast_multi but ran into a unusual roadblock.
I have used the object before, however, this time I am out of I/O's. The object allows for up to 3 chips, but I am using only 1 (dpin1, cpin1, spin1)
Assigning the pins happen like this
but with out any extra I/O's available I can not assign bogus pins for the none existing chip 2 and 3 -- dpin2, cpin2, spin2, dpin3, cpin3, spin3
What would I need to assign to these pins: dpin2, cpin2, spin2, dpin3, cpin3, spin3 to? Would 50 or -1 work?
Thanks in advance for your suggestion.
I have used the object before, however, this time I am out of I/O's. The object allows for up to 3 chips, but I am using only 1 (dpin1, cpin1, spin1)
Assigning the pins happen like this
adc.start(dpin1, cpin1, spin1, dpin2, cpin2, spin2, dpin3, cpin3, spin3)
but with out any extra I/O's available I can not assign bogus pins for the none existing chip 2 and 3 -- dpin2, cpin2, spin2, dpin3, cpin3, spin3
What would I need to assign to these pins: dpin2, cpin2, spin2, dpin3, cpin3, spin3 to? Would 50 or -1 work?
Thanks in advance for your suggestion.
Comments
Sorry for not being clear enough. I ran out of I/O's on the propeller chip. So I do not have any remaining IO's that I can assign for chip 2 (unused) and 3 (unused). I us to have one I/O left over P27 and would assign all remaining assignment to P27, like this:
dpin2 := 27
cpin2 := 27
spin2 := 27
dpin3 := 27
cpin3 := 27
spin3 := 27
but now I can't do this any more.
I wasn't sure about the communication between the MCP3208 chip and the propeller. Was afraid that the AD converter would somehow get overwhelmed by all the request. But if that works, sure -- why not.
Thanks a bunch!