das steht in der Bascom help:

By default Bascom will use software routines when you use I2C statements. This because when the first AVR chips were introduced, there was no TWI yet.

So you can use I2C on every AVR chip. Some newer AVR chips have build in hardware support for I2C. This is called the TWI interface. (Two Wire Interface).
Read more about I2C in the hardware section.

To force Bascom to use the TWI, you need to insert the following statement into your code:
$LIB "I2C_TWI.LBX"

You also need to choose the correct SCL and SDA pins with the CONFIG SCL and CONFIG SDA statements.

The TWI will save code but the disadvantage is that you can only use the fixed SCL and SDA pins.



wie gesagt damit klappt die kommunikation, aber so wie das in all den Threads und in der Literatur beschrieben ist nicht.


Matthias