EVAL-ADUC836QS AD [Analog Devices], EVAL-ADUC836QS Datasheet - Page 32

no-image

EVAL-ADUC836QS

Manufacturer Part Number
EVAL-ADUC836QS
Description
MicroConverter, Dual 16-Bit ADCs with Embedded 62 kB Flash MCU
Manufacturer
AD [Analog Devices]
Datasheet
Using the Flash/EE Data Memory
The 4 Kbytes of Flash/EE data memory are confi gured as
1024 pag es, each of four bytes. As with the other ADuC836
pe riph er als, the interface to this memory space is via a group of
reg is ters mapped in the SFR space. A group of four data regis-
ters (EDATA1–A4) is used to hold the four bytes of data at each
page. The page is addressed via the two registers EADRH and
EADRL. Finally, ECON is an 8-bit control register that may be
written with one of nine Flash/EE mem o ry access commands to
trigger various read, write, erase, and verify functions.
A block diagram of the SFR interface to the Flash/EE data
mem o ry array is shown in Figure 20.
ECON—Flash/EE Memory Control SFR
Programming of either the Flash/EE data memory or the Flash/EE
program memory is done through the Flash/EE Memory Con trol
SFR (ECON). This SFR allows the user to read, write, erase, or
verify the 4 Kbytes of Flash/EE data mem o ry or the 56 Kbytes of
Flash/EE program memory.
ECON Value
01H
READ
02H
WRITE
03H
04H
VERIFY
05H
ERASE PAGE
06H
ERASE ALL
81H
READBYTE
82H
WRITEBYTE
0FH
EXULOAD
F0H
ULOAD
ADuC836
Command Description
(Normal Mode) (Power-On Default)
Results in four bytes in the Flash/EE data mem o ry,
addressed by the page address EADRH/L, being read
into EDATA 1 to 4.
Results in four bytes in EDATA1–A4 being writ ten to the Results in bytes 0–255 of internal XRAM being writ ten
Flash/EE data memory, at the page address given by
EADRH/L (0
Note: The four bytes in the page being addressed must
be pre-erased.
Reserved Command
Verifi es if the data in EDATA1–4 is contained in the
page address given by EADRH/L. A subsequent read
of the ECON SFR will result in a 0 being read if the
verifi cation is valid, or a nonzero value being read
to indicate an invalid ver i fi ca tion.
Results in the erase of the 4-bytes page of Flash/EE
data memory addressed by the page address EADRH/L
Results in the erase of entire four Kbytes of Flash/EE
data memory.
Results in the byte in the Flash/EE data memory,
addressed by the byte address EADRH/L, being read
into EDATA1. (0
Results in the byte in EDATA1 being written into
Flash/EE data memory, at the byte address EADRH/L.
Leaves the ECON instructions to operate on the
Flash/EE data memory.
Enters ULOAD mode, directing subsequent ECON
instructions to operate on the Flash/EE program memory.
EADRH/L < 0400H)
EADRH/L
Table XIV. ECON—Flash/EE Memory Commands
0FFFH).
–32–
Figure 20. Flash/EE Data Memory Control and Con fi g u ra tion
ARE GIVEN IN
ADDRESSES
BRACKETS
BYTE
3FFH
3FEH
03H
02H
01H
00H
Command Description
(ULOAD Mode)
Not Implemented. Use the MOVC instruction.
to the 256 bytes of Flash/EE program memory at the
page address given by EADRH. (0
Note: The 256 bytes in the page being addressed must
be pre-erased.
Reserved Command
Not Implemented. Use the MOVC and MOVX
instructions to verify the WRITE in software.
Results in the 64-byte page of Flash/EE program
memory, addressed by the byte address EADRH/L
being erased. EADRL can equal any of 64 locations
within the page. A new page starts whenever EADRL
is equal to 00H, 40H, 80H, or C0H.
Results in the erase of the entire 56 Kbytes of ULOAD
Flash/EE program memory.
Not Implemented. Use the MOVC command.
Results in the byte in EDATA1 being written into
Flash/EE program memory at the byte address
EADRH/L (0
Enters Normal mode, directing subsequent ECON
instructions to operate on the Flash/EE data memory.
Leaves the ECON instructions to operate on the Flash/EE
program memory.
(0FFCH)
(0FF8H)
(0008H)
(0004H)
(0000H)
BYTE 1
BYTE 1
(000CH)
BYTE 1
BYTE 1
BYTE 1
BYTE 1
EADRH/L
(0FFDH)
(0FF9H)
(000DH)
(0009H)
(0005H)
(0001H)
BYTE 2
BYTE 2
BYTE 2
BYTE 2
BYTE 2
BYTE 2
(000EH)
(000AH)
(0FFEH)
(0FFAH)
(0006H)
(0002H)
BYTE 3
BYTE 3
BYTE 3
BYTE 3
BYTE 3
BYTE 3
DFFFH).
EADRH < E0H)
(0FFFH)
(0FFBH)
(000BH)
BYTE 4
BYTE 4
(000FH)
BYTE 4
BYTE 4
(0007H)
(0003H)
BYTE 4
BYTE 4
REV. 0

Related parts for EVAL-ADUC836QS