///////////////////////////////////////////////////////////////////////////
//// 24xx1025.C ////
//// Driver para memoria serial EEPROM de 1Mbit ////
//// ////
//// CHIP PINs: 1 | A0 | Chip select ////
//// ========= 2 | A1 | Chip select ////
//// 3 | A2 | Conectar a Vcc ////
//// 4 | Vss | ////
//// 5 | Vcc | ////
//// 6 | WP | Vcc -> write protected ////
//// 7 | SCL | ////
//// 8 | SDA | ////
//// ////
//// init_ext_eeprom(); ////
//// ////
//// write_ext_eeprom(a, d); Escribe el byte d en la direccion a. ////
//// ////
//// d = read_ext_eeprom(a); Lee el byte d desde la direccion a. ////
//// ////
//// write_ext_eeprom_page(CS,address,len); ////
//// ////
//// read_ext_eeprom_page(CS,address,len); ////
//// ////
//// escribe/lee una pagina de len (1..128) bytes comenzando en la ////
//// direccion address del bloque CS (0..7) desde/hacia el buffer ////
//// page_data. ////
//// CS= B,A1,A0 ////
//// block select ____| |__|____ chip select pins ////
//// ////
//// write_check_ext_eeprom_page(CS,address,len); ////
//// ////
//// El programa ppal. debe definir EEPROM_SDA y EEPROM_SCL ////
//// de lo contrario se cargan los valores por defecto... ////
///////////////////////////////////////////////////////////////////////////
//// This source code is free. by Menta (C) Copyright 2007 ////
///////////////////////////////////////////////////////////////////////////