operator6wp
Newbie level 4
pcf8583 + at892051
HI, I have one problem in VSMproteus....
I used At89c2051 and 24c04a for simulation I2C and I can't read I2C data byte ... 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!!!!
HI, I have one problem in VSMproteus....
I used At89c2051 and 24c04a for simulation I2C and I can't read I2C data byte ... 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!!!!