Orcino
Joined: 07 Sep 2003 Posts: 56
|
|
Posted: Sun Aug 19, 2007 11:18 am |
|
|
Hi, my program is ok in V 4.017 but in 4.050 in function below, not work, i am using a 18F4525 and drive 24LC256.C
somebody can help ?
Thanks
Code: |
//*********************************************************
GRAVA um INT32 na EEPROM externa
//***********************************************************
void ee_write32(int16 base_address ,int32 data)
{
char i;
for(i=0; i<4; i++)
write_ext_eeprom(base_address+i,*(&data+i));
}
//***********************************************************
// LÊ um INT32 na EEPROM externa
//**********************************************************
int32 ee_read32(int16 base_address)
{
char i;
int32 data_read;
for(i=0; i<4; i++)
*(&data_read+i) = read_ext_eeprom(base_address+i);
return (data_read);
}
|
|
|