[an error occurred while processing this directive] [an error occurred while processing this directive]
Ответ: Писал только побайтовую запись, все работает (+)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Юрий 29 ноября 2001 г. 15:22
В ответ на: Траблы с записью в EEPROM T89C51RD2(+) отправлено Vit 29 ноября 2001 г. 12:05


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