I2C is the way I would go. Use PICs for the slaves.
Steve
rschader, How fast are going to scan the matrix? What PIC are you intending on using? If it was me, I would switch the source for the phototransistors and use 1 a/d port. Less power and less to worry about as far as calibrating all of the a/d channels and multiple references with multiple PIC's.
Dave Purola,
N8NTA
Reducing it to a single ADC pin would only require one more DG408 and three more control lines but it does complicate the switching logic, going from 6-bits (with 7 ADC pins) to 9-bits.
40 DG408s + 1 PIC with 1 ADC pin and 9 control pins.
However, there is only one ADC channel with a PIC - it's input is merely being switched internally so there''s no real difference between using all seven ADC pins on a PIC16F88 and using only 1 ADC and adding another DG408.
If the OP could live with digital outputs for the photo transistor levels, then you could just use I/O expanders. Comparitors would be cheaper than analog switches. Some I/O expanders can read 26 I/O pins with one package.
Tim Barr
Bookmarks