Hello again
having troubles with I2C.....
YES 4k7 PULLUP resistors are in place on the I2C lines SCL and SDA.
I am using the 24LC256 EEPROM from Techsupplies.
I had it working on a 20X2 a while ago, but took me several hours to get working.
Now I have spent several hours trying to get this working on brand new 18M2s but no luck. Have had the 18M2 working in the breadboad for a week and have tried a second 18M2 and same problem, so rules out the chip.
Running on 4v (3x AA Batteries) which is both inside the 18M2 and the EEPROMs voltage ratings.
All EEPROM addresses are held low and the WP is also held low.
code below:
The sertxd (and tried with a debug) both bring up the variable value of 255.
I am probably missing some stupid fundamental... Can any body spot anything wrong here?
having troubles with I2C.....
YES 4k7 PULLUP resistors are in place on the I2C lines SCL and SDA.
I am using the 24LC256 EEPROM from Techsupplies.
I had it working on a 20X2 a while ago, but took me several hours to get working.
Now I have spent several hours trying to get this working on brand new 18M2s but no luck. Have had the 18M2 working in the breadboad for a week and have tried a second 18M2 and same problem, so rules out the chip.
Running on 4v (3x AA Batteries) which is both inside the 18M2 and the EEPROMs voltage ratings.
All EEPROM addresses are held low and the WP is also held low.
code below:
Code:
#no_data
HI2CSETUP I2CMASTER, %10100000, I2CFAST, I2CWORD
main:
DO
HI2COUT 1234, ("HELLO")
pause 11
HI2CIN 1234, (b0,b1,b2,b3,b4)
sertxd ("",b0,b1,b2,b3,b4,CR,LF)
LOOP
I am probably missing some stupid fundamental... Can any body spot anything wrong here?