ATTiny ADC and TWI

Looking at the ATTiny datasheet...why oh why do they put one of the ADC channels on the SCL pin? So it seems if you want to use all four ADC channels, it's not possible to connect the uC to an i2c bus.

Reply to
bitrex
Loading thread data ...

The thing has 8 pins, of which 6 are for I/O.

If you need 4 pins for A/D, you can use the remaining two for i2c, by bit-banging the bus in software.

--

-TV
Reply to
Tauno Voipio

Indeed, it's true that if one uses four AD channels it's impossible to use a three wire interface on an 8 pin uP, which is why it's unclear to me why they put one of the AD channels on a pin that you would use for hardware TWI.

Reply to
bitrex

I2c has two wires (+ground, which is one of the 8-6 pins).

--

-TV
Reply to
Tauno Voipio

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.