Author | Stef Mientki, Copyright (c) 2002..2006, all rights reserved. |
Adapted-by | Sebastien Lelong, Rob Hamerling. |
Compiler | >=2.4i |
Read from or write to EEPROM/data a byte, word or double word. Available procedures: * data_eeprom_read(, ) * data_eeprom_write( , ) * data_eeprom_read_word( , ) * data_eeprom_write_word( , ) * data_eeprom_read_dword( , ) * data_eeprom_write_dword( , ) Available functions: * = data_eeprom( ) * = data_eeprom_word( ) * = data_eeprom_dword( ) In all cases is a position relative to the beginning of EEPROM/data memory, thus starts at 0. Examples of use: * Read a byte of EEPROM at offset 7 into x: var byte x data_eeprom_read(7, x) * Read a word from EEPROM at offset 4 into y: var word y y = data_eeprom_word(4) * Write a byte to EEPROM at offset 18: data_eeprom_write(18, 0b1111_0000)
- Write-protect bits in configuration memory may prohibit writing. - Writing to locations outside the available memory range may have unexpected effects! - Summary of changes + Changed byte-offset to word-offset for larger EEPROMs with 18Fs + Offset and flags settings for read and write in separate procedure. + Moved check for write completed ahead of read and write, for performance (ahead of read needed for read back of same offset). + added 'pragma inline' to several procedures + some other code optimizations + added support for PICs with deviating register names, like 'EEDAT' or EEDATL in stead of 'EEDATA' and EEADRL in stead of EEADR.
No dependency found
data_eeprom_read_word(word in offset, word out data)
data_eeprom_read_dword(word in offset, dword out data)
data_eeprom_write_word(word in offset, word in data)
data_eeprom_write_dword(word in offset, dword in data)
data_eeprom_write(word in offset, byte in data)
data_eeprom_read(word in offset, byte out data)
data_eeprom(word in offset) return byte
data_eeprom_dword(word in offset) return dword
data_eeprom_word(word in offset) return word
data_eeprom_read_word(word in offset, word out data)
Read word from data eeprom at given offset Result is stored in the passed in-argument
data_eeprom_read_dword(word in offset, dword out data)
Read a dword from data eeprom at given offset Result is stored in the passed in-argument
data_eeprom_write_word(word in offset, word in data)
Write word to data eeprom at given offset
data_eeprom_write_dword(word in offset, dword in data)
Write dword to data eeprom at given offset
data_eeprom_write(word in offset, byte in data)
Write byte to data EEPROM at given offset
data_eeprom_read(word in offset, byte out data)
Read byte from data EEPROM at given offset Result is stored in the passed in-argument
_prepare_eeprom_access(word in offset)
No documentation found
data_eeprom(word in offset) return byte
Read byte from data EEPROM at given offset and return result
data_eeprom_dword(word in offset) return dword
Read dword from data eeprom at given offset and return result
data_eeprom_word(word in offset) return word
Read word from data eeprom at given offset and return result
16f648a | 16f648a_data_eeprom.jal |
16f88 | 16f88_data_eeprom.jal |
16f88 | 16f88_remember_me.jal |
18f242 | 18f242_data_eeprom.jal |
18f2620 | 18f2620_data_eeprom.jal |