Hi, i'm italian and i'm a new user of this forum.
I'm a problem in interfacing a 16F628 and a 24LC02 eeprom.
I use the attached routine but it don't work!! I wired the SCL and SDA pins with the RB0 and RB1 pin of the pic (SDA with the pull-up 10k resistor) and in the routine you ca see my defines of pins. When i lanch the pogram the routine:
char I2C_Send(char Address,char *Data,char Num);
(with address = 0, data = pointer to char, num = 1)
it returns 1 but the eeprom is still empty!!
Anyone can help me?!?!?!
thank you.
(sorry for my bad english!! )
I'm a problem in interfacing a 16F628 and a 24LC02 eeprom.
I use the attached routine but it don't work!! I wired the SCL and SDA pins with the RB0 and RB1 pin of the pic (SDA with the pull-up 10k resistor) and in the routine you ca see my defines of pins. When i lanch the pogram the routine:
char I2C_Send(char Address,char *Data,char Num);
(with address = 0, data = pointer to char, num = 1)
it returns 1 but the eeprom is still empty!!
Anyone can help me?!?!?!
thank you.
(sorry for my bad english!! )