ADUC824 Analog Devices, ADUC824 Datasheet - Page 40

no-image

ADUC824

Manufacturer Part Number
ADUC824
Description
Precision Analog Microcontroller: 1MIPS 8052 MCU + 8kB Flash + 16/24-Bit ADC + 12-Bit DAC
Manufacturer
Analog Devices
Datasheet

Specifications of ADUC824

Mcu Core
8052
Mcu Speed (mips)
1
Sram (bytes)
256Bytes
Gpio Pins
34
Adc # Channels
4

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC824BSZ
Manufacturer:
INTEL
Quantity:
19
Part Number:
ADUC824BSZ
Manufacturer:
ADI
Quantity:
329
Part Number:
ADUC824BSZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC824BSZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
ADUC824BSZ-REEL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
ADuC824
ECON—Flash/EE Memory Control SFR
This SFR acts as a command interpreter and may be written with
one of five command modes to enable various read, program and
erase cycles as detailed in Table XIII.
Command
Byte
01H
02H
03H
04H
05H
06H
07H to FFH
Flash/EE Memory Timing
The typical program/erase times for the Flash/EE Data Memory are:
Using the Flash/EE Memory Interface
As with all Flash/EE memory architectures, the array can be pro-
grammed in-system at a byte level, although it must be erased
first; the erasure being performed in page blocks (4-byte pages
in this case).
A typical access to the Flash/EE Data array will involve setting
up the page address to be accessed in the EADRL SFR, config-
uring the EDATA1–4 with data to be programmed to the array
(the EDATA SFRs will not be written for read accesses) and
finally, writing the ECON command word which initiates one
of the six modes shown in Table XIII.
Erase Full Array (640 Bytes) – 2 ms
Erase Single Page (4 Bytes) – 2 ms
Program Page (4 Bytes) – 250 µs
Read Page (4 Bytes) – Within Single Instruction Cycle
Table XIII. ECON–Flash/EE Memory Control Register
Command Modes
Command Mode
READ COMMAND
Results in four bytes being read into EDATA1–4
from memory page address contained in EADRL.
PROGRAM COMMAND
Results in four bytes (EDATA1–4) being written
to memory page address in EADRL. This write
command assumes the designated “write” page has
been pre-erased.
RESERVED FOR INTERNAL USE
03H should not be written to the ECON SFR.
VERIFY COMMAND
Allows the user to verify if data in EDATA1–4 is
contained in page address designated by EADRL.
A subsequent read of the ECON SFR will result
in a “zero” being read if the verification is valid;
a nonzero value will be read to indicate an invalid
verification.
ERASE COMMAND
Results in an erase of the 4-byte page designated
in EADRL.
ERASE-ALL COMMAND
Results in erase of the full Flash/EE Data memory
160-page (640 bytes) array.
RESERVED COMMANDS
Commands reserved for future use.
It should be noted that a given mode of operation is initiated as
soon as the command word is written to the ECON SFR. The
core microcontroller operation on the ADuC824 is idled until the
requested Program/Read or Erase mode is completed.
In practice, this means that even though the Flash/EE memory
mode of operation is typically initiated with a two-machine cycle
MOV instruction (to write to the ECON SFR), the next instruc-
tion will not be executed until the Flash/EE operation is complete
(250 µs or 2 ms later). This means that the core will not respond
to Interrupt requests until the Flash/EE operation is complete,
although the core peripheral functions like Counter/Timers will
continue to count and time as configured throughout this period.
Erase-All
Although the 640-byte User Flash/EE array is shipped from the
factory pre-erased, i.e., Byte locations set to FFH, it is nonethe-
less good programming practice to include an erase-all routine as
part of any configuration/setup code running on the ADuC824.
An “ERASE-ALL” command consists of writing “06H” to the
ECON SFR, which initiates an erase of all 640 byte locations in
the Flash/EE array. This command coded in 8051 assembly would
appear as:
MOV ECON, #06H
Program a Byte
In general terms, a byte in the Flash/EE array can only be pro-
grammed if it has previously been erased. To be more specific,
a byte can only be programmed if it already holds the value FFH.
Because of the Flash/EE architecture, this erasure must happen
at a page level; therefore, a minimum of four bytes (1 page) will
be erased when an erase command is initiated.
A more specific example of the Program-Byte process is shown
below. In this example the user writes F3H into the second
byte on Page 03H of the Flash/EE Data Memory space while
preserving the other three bytes already in this page. As the user
is only required to modify one of the page bytes, the full page must
be first read so that this page can then be erased without the exist-
ing data being lost.
This example, coded in 8051 assembly, would appear as:
MOV EADRL,#03H
MOV ECON,#01H
MOV EDATA2,#0F3H ; Write New Byte
MOV ECON,#05H
MOV ECON,#03H
; Set Page Address Pointer
; Read Page
; Erase Page
; Write Page (Program Flash/EE)
; Erase all Command
; 2 ms Duration

Related parts for ADUC824