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.
ATTiny ADC and TWI
May 27, 2016
3 Replies
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
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.
I2c has two wires (+ground, which is one of the 8-6 pins).
-TV
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required