[an error occurred while processing this directive]
|
The next code examples show assembly and C functions for reading the EEPROM. The examples assume that interrupts are controlled so that no interrupts will occur during execution of these functions.
Assembly Code Example EEPROM_read:
sbic EECR,EEWE
rjmp EEPROM_read
out EEARH, r18
out EEARL, r17
sbi EECR,EERE
in r16,EEDR
ret
E-mail: info@telesys.ru