Goal: Transmit 12bit ADC data from 2 ADC channels on the ATTiny20-XU to a DS2408. Acheive 12 bit from 10bit adc using oversampling technique. Use the DS2408's 8 io's to receive the 10bit data. Purposed solution : 2 of the IO's on the ds2408 will indicate what ADC channel to read and if lower or upper 6 bits. The remaining 6 IO's will receive 6 bits of the oversampled 12bit adc reading.
IO Channel 0 : High = Read ADC 1, Low = Read ADC 2
IO Channel 1 : High = read/output the 6 high bits Low = read/output 6 low bits
IO Channel 2-7 : Data Output
Transaction: DS2408 sets IO 0 to desired channel, DS2408 sets IO 1 to low, DS2408 captures 6 bits from IO 2-7, DS2408 set IO 1 high, DS2408 captures upper 6 bits from IO 2-7
I think this is a pretty easy program to write and I'm hoping to get this done under $40
Correction to the above, it should read "Use the DS2408's 8 io's to receive the 12bit data" not 10bit.