Electronic component search and free download site.
Transistors,MosFET ,Diode,Integrated circuits

T89C51RD2-DDFC-L View Datasheet(PDF) - Atmel Corporation

Part Name
Description
Manufacturer
T89C51RD2-DDFC-L
Atmel
Atmel Corporation Atmel
T89C51RD2-DDFC-L Datasheet PDF : 86 Pages
First Prev 41 42 43 44 45 46 47 48 49 50 Next Last
T89C51RD2
Example : .....
; DPTR = EEPROM data pointer, A = Data to write
Wait : MOV A,EECON
ANL A,#01h
JNZ Wait
MOV EETIM,#3Ch
; 12MHz*5 = 3Ch
MOV EECON,#02h
; EEE=1 EEPROM mapped
MOVX @DPTR,A
; Write data to EEPROM
MOV EECON,#50h or 52h ; Write Sequence
MOV EECON,#A0h or A2h
....
7.4. Read Data
The following procedure is used to read the data store in the EEPROM memory:
Map the program space (Set bit EEE of EECON register)
Load DPTR with the address to read
Execute a MOVX A, @DPTR
Example :
...
MOV EECON,#02h
MOVX A,@DPTR
...
; DPTR = EEPROM data pointer
; EEE=1 EEPROM mapped
; Read data from EEPROM
; A = Data
7.5. Registers
Table 25. EECON Register
EECON (S:0D2h)
EEPROM Control Register
7
6
5
4
3
EEPL3
EEPL2
EEPL1
EEPL0
-
2
1
-
EEE
0
EEBUSY
Bit Number
7-4
3
2
1
Bit Mnemonic
Description
EEPL3-0
-
-
Programming Launch command bits
Write 5Xh followed by AXh to EECON to launch the programming.
Not implemented, reserved for future use.a
Not implemented, reserved for future use.b
Enable EEPROM Space bit
EEE
Set to map the EEPROM space during MOVX instructions (Write in the column latches)
Clear to map the data space during MOVX.
Programming Busy flag
0
EEBUSY
Set by hardware when programming is in progress.
Cleared by hardware when programming is done.
Can not be set or cleared by software.
a. User software should not write 1s to reserved bits. These bits may be used in future 8051 family products to invoke new features. In
that case, the reset or inactive value of the new bit will be 0, and its active value will be 1. The value read from a reserved bit is
indeterminate.
b. User software should not write 1s to reserved bits. These bits may be used in future 8051 family products to invoke new features. In
that case, the reset or inactive value of the new bit will be 0, and its active value will be 1. The value read from a reserved bit is
indeterminate.
Reset Value= XXXX XX00b
48
Rev. F - 15 February, 2001
Direct download click here

 

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]