operator6wp
Newbie level 4
HI, I have one problem in VSMproteus....
I used At89c2051 and 24c04a for simulation I2C and PFC8583 and I can't read I2C data byte from eeprom ... is steel 0 value ... but in log view I2C is data ok read....
I connect SCL-P3.0 and SDA-P3.1....
I2C_read:
SETB SDA
MOV b,#8
I2C_R: CALL I2C_wait ;(nop's sub)
SETB SCL
MOV C,SDA
CLR SCL
RLC A
DJNZ b,I2C_R
RET
in sda is not change bits.... how to read... whats wrong.... HELP!!!!
but, when I disconnect Clock pcf8583 from I2C bus , eeprom simulation is work ok... what up....
I used At89c2051 and 24c04a for simulation I2C and PFC8583 and I can't read I2C data byte from eeprom ... is steel 0 value ... but in log view I2C is data ok read....
I connect SCL-P3.0 and SDA-P3.1....
I2C_read:
SETB SDA
MOV b,#8
I2C_R: CALL I2C_wait ;(nop's sub)
SETB SCL
MOV C,SDA
CLR SCL
RLC A
DJNZ b,I2C_R
RET
in sda is not change bits.... how to read... whats wrong.... HELP!!!!
but, when I disconnect Clock pcf8583 from I2C bus , eeprom simulation is work ok... what up....