| ??? 06/08/01 11:58 Read: times |
#12300 - RE: I2C interface for 24C16 + DS1307 |
Here is the ACK code again...
------------------------------------------------------------- I2CACKWAIT: __________SETB__I2CPORTSDA ; Set SDA as INPUT __________SETB__I2CPORTHCK ; HCK = 1 __________MOV___R0,#I2CTIMEWAIT ; = 30 __________MOV___R1,#0 ACKLOOP:__JNB___I2CPORTSDA,ACKOK0 ; Skip if SDA = 1 __________DJNZ__R1,ACKLOOP __________DJNZ__R0,ACKLOOP __________CLR___I2CPORTHCK ; HCK = 0 __________MOV__A,#1 ; NOK __________RET ACKOK0:___CLR___I2CPORTHCK ; HCK = 0 __________MOV___A,#0 ; OK __________RET ------------------------------------------------------------- |
| Topic | Author | Date |
| I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| serching ADuC824 applications | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: I2C interface for 24C16 + DS1307 | 01/01/70 00:00 | |
| RE: serching ADuC824 applications | 01/01/70 00:00 | |
RE: serching ADuC824 applications | 01/01/70 00:00 |



