What is the quickest way to make the data in AT24C01 reset to 0xFF? I write 0xFFto every byte, but that take a long time. Is there any simpler method?
In the datasheet of AT24C01: MEMORY RESET: After an interruption in protocol, power loss or system reset, any 2- wire part can be reset by following these steps:
- Clock up to 9 cycles.
- Look for SDA high in each cycle while SCL is high.
- Create a start condition.
I write a program just like below, but it does not work. Is it wrong? Thank you for you help! Code List:
SCL EQU P3.1 SDA EQU P3.0
ORG 00H AJMP START
ORG 30H START: MOV B,#09H CYCLE: CLR SCL SETB SDA SETB SCL DJNZ B,CYCLE CLR SDA
AJMP START END