??? 04/04/07 07:04 Read: times |
#136558 - this is upon you to determine Responding to: ???'s previous message |
Asif Ali said:
Well sir i am using 12MHz xtal, so may i need NOPs ? This is upon you to determine. Have a look at the timing charts in your memory's datasheet. If you put simply two instructions both changing a signal's state after each other, e.g. CLR SDA CLR SCL, the delay between the two edges is given by the timing of CLR SDA instruction, which takes one instruction cycle, that's with a "classical" 12-clocker (which AT89C2051 is) at 12MHz exactly 1us. Again, don't forget proper pullups. With too high value of pullup resistors a longer I2C bus signal might not be charged up quickly enough. JW |