Sudhp
Member level 4
- Joined
- Oct 11, 2013
- Messages
- 69
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Location
- India
- Activity points
- 528
hi experts....
I m working on a project which have a 24c16 EEPROM....
My programming for this is given-
The size of EEPROM is 2 k byte....
But when I save 4 more variables ......it is not storing them....
why is this happening....?
Is the space of EEPROM is completely full......?
if not then why it is not storing further variables.....
My way of storing the variables is right or something else????/
I m working on a project which have a 24c16 EEPROM....
My programming for this is given-
Code:
void save()
{start();
send_byte(0xA0);
aknowledge();
send_byte(0x00);
aknowledge();
send_byte(arm_hr);aknowledge();
send_byte(arm_min);aknowledge();
send_byte(dis_hr);aknowledge();
send_byte(dis_min);aknowledge();
send_byte(htr_time);aknowledge();
send_byte(ent_time);aknowledge();
send_byte(ext_time);aknowledge();
send_byte(zone_key[1]);aknowledge();
send_byte(zone_key[2]);aknowledge();
send_byte(zone_key[3]);aknowledge();
send_byte(zone_key[4]);aknowledge();
send_byte(zone_key[5]);aknowledge();
send_byte(zone_key[6]);aknowledge();
send_byte(zone_key[7]);aknowledge();
send_byte(zone_key[8]);aknowledge();
stop();
}
void Read()
{start();
send_byte(0xA0);
aknowledge();
send_byte(0x00);
aknowledge();
start();
send_byte(0xA1);
aknowledge();
arm_hr=read_byte();aknowledge();
arm_min=read_byte();aknowledge();
dis_hr=read_byte();aknowledge();
dis_min=read_byte();aknowledge();
htr_time=read_byte();aknowledge();
ent_time=read_byte();aknowledge();
ext_time=read_byte();aknowledge();
zone_key[1]=read_byte();aknowledge();
zone_key[2]=read_byte();aknowledge();
zone_key[3]=read_byte();aknowledge();
zone_key[4]=read_byte();aknowledge();
zone_key[5]=read_byte();aknowledge();
zone_key[6]=read_byte();aknowledge();
zone_key[7]=read_byte();aknowledge();
zone_key[8]=read_byte();aknowledge();
stop();
}
The size of EEPROM is 2 k byte....
But when I save 4 more variables ......it is not storing them....
why is this happening....?
Is the space of EEPROM is completely full......?
if not then why it is not storing further variables.....
My way of storing the variables is right or something else????/
Last edited by a moderator: