Ports are set to digital, analog and comparators turned off. 4.7K resistors in place, 24C32 chip is brand new and authentic.Code:SDA var PORTA.1 SCL var PORTA.2 T1 var byte T1=15 I2CAddress var word 'I2C address I2CDevice var byte 'I2C device add i2CDevice=$A0 I2CAddress=8 I2CWrite SDA,SCL,I2CDevice,I2CAddress,127 pause 100 i2cread SDA,SCL,I2CDevice,I2CAddress,T1 LCDOUT $FE,$c0, "value ", dEC T1 pause 1000 stop
Only VDD/VSS and SDA/SCL pins are used, others are left floating, according to datasheet.
The interesting thing is, that i2cread returns nothing - I mean, I added T1=15 just for test, so that 15 is displayed, instead of 127
whole i2croutine doing nothing?
Bookmarks