sirius
Joined: 27 Jun 2009 Posts: 16 Location: Bulgaria
|
Buffered internal eeprom writes |
Posted: Sat Jun 27, 2009 4:54 pm |
|
|
Is there any way to write to the internal eeprom /18F6520/ and not to stall the MCU for 4-5ms? I mean, not to use "write_eeprom()" function. Imagine that you have to write a bunch of bytes at the same time, what happens then? The MCU is "taking a nap" for a looong period of time /100 bytes = 400-500ms/, which period could be too long for supervising some processes. Is there any built-in function or library that can handle this problem? Or I have to do it myself - using FIFO buffer and scheduling eeprom writes upon Write Operation Interrupt Flag Bit - EEIF. I've done this before, in asm, works just fine, the only concern is to load address and data, then the FIFO-buffer routine takes care of everything. The waste of time is minor. Thanks! |
|