Guven Demir wrote: > > merry xmas all, > > i have a problem with 16f84, 24c04 and i2c. when i send device id with > read request, i get the acknowledge bit, but when i send the same device > id with write request, i can not get the acknowledge. i have 24's scl > and sda connected to rb(6) and rb(7). 24's enable inputs are all grounded. > i tried the mode pin with vcc, ground, resistor to vcc, resistor to ground > and floating. thanks in advance. I haven't gone through the code, but keep in mind that the 24c04 needs a few milliseconds to complete a write. To write a byte, you have to check if the previous write was successfull, by checking the acknowledge. If the 24c04 doesn't ACK, it is still busy writing. Keep on trying until it acknowledges the write command. -- Friendly Regards /"\ \ / Tjaart van der Walt X ASCII RIBBON CAMPAIGN mailto:tjaart@wasp.co.za / \ AGAINST HTML MAIL |--------------------------------------------------| | WASP International | |R&D Engineer : GSM peripheral services development| |--------------------------------------------------| |SMS mailto: tjaart@sms.wasp.co.za (160 chars max)| | http://www.wasp.co.za/~tjaart/index.html | |Voice: +27-(0)11-622-8686 Fax: +27-(0)11-622-8973| | WGS-84 : 26¡10.52'S 28¡06.19'E | |--------------------------------------------------|