[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
void wr_eeprom(uint index,uchar value);
_wr_eeprom:
push DPH
push DPL
mov DPH,R6
mov DPL,R7
wree1:
mov a,EECON
jb ACC.0,wree1
mov c,EA
clr EA
mov a,r5
mov EECON,#02h
movx @DPTR,a
dec EECON
mov EETIM,#3Ch
mov EECON,#50h
mov EECON,#0A0h
pop DPL
pop DPH
mov EA,c
ret
E-mail: info@telesys.ru