![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | Thread Tools | Display Modes |
| | (permalink) |
| New Member | I'm looking for a design document on implementing Emulated EEPROM , any links ,tutorials or sample code would be of great help. |
| | |
| | (permalink) | |
| Experienced Member | Quote:
http://en.wikipedia.org/wiki/EEPROM http://searchstorage.techtarget.com/...212130,00.html http://www.gemalto.com/techno/chipware/other/flash.html Maybe you want to emulate a particular EEPROM chip?
__________________ ========================= Futz's Microcontrollers & Robotics ========================= | |
| | |
| | (permalink) | |
| Experienced Member | Quote:
but generally what you need to do is enable i2c and for i2c interrupt setup something like this Code: // put some config for your pic
//...
// set this procedure as i2c interrupt
void i2c_interupt ()
{
BYTE inc, state;
state = i2c_isr_state();
if(state < 0x80){ // master sending data
inc = i2c_read();
if(state == 1) address = inc;
if(state == 2) buffer[address] = inc;
}
if(state == 0x80){ //master requesting data
i2c_write(buffer[address]);
}
}
void main(){
//enable i2c interrupt
while(1) {}
}
__________________ http://www.it4um.com | |
| | |
| | (permalink) | |
| Experienced Member | Quote:
__________________ I can still log in! Delete my account and all my post now. | |
| | |
| | (permalink) |
| New Member | Thanks for the help. |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Logic circuit for two cameras and one flash. | Hermit | Electronic Projects Design/Ideas/Reviews | 30 | 10th December 2007 03:25 AM |
| Flash and EEPROM. | lord loh. | General Electronics Chat | 8 | 27th August 2006 07:02 PM |
| How to reset SCR used for triggering camera flash | shootfirst | Electronic Projects Design/Ideas/Reviews | 20 | 28th September 2005 08:40 PM |
| Flash & EEPROM | Electrix | General Electronics Chat | 8 | 17th September 2005 02:00 AM |
| FLASH and EEPROM | bogdanfirst | Micro Controllers | 3 | 21st March 2003 05:40 PM |