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.
- posted
7 years ago
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.
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
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.