ADUC812BSZ Analog Devices Inc, ADUC812BSZ Datasheet - Page 20

IC ADC 12BIT MULTICH MCU 52-MQFP

ADUC812BSZ

Manufacturer Part Number
ADUC812BSZ
Description
IC ADC 12BIT MULTICH MCU 52-MQFP
Manufacturer
Analog Devices Inc
Series
MicroConverter® ADuC8xxr
Datasheet

Specifications of ADUC812BSZ

Core Size
8-Bit
Program Memory Size
8KB (8K x 8)
Core Processor
8052
Speed
16MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
PSM, Temp Sensor, WDT
Number Of I /o
34
Program Memory Type
FLASH
Eeprom Size
640 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x12b, D/A 2x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
52-MQFP, 52-PQFP
Controller Family/series
(8051) 8052
No. Of I/o's
32
Eeprom Memory Size
8KB
Ram Memory Size
256Byte
Cpu Speed
1.3MIPS
No. Of Timers
3
Package
52MQFP
Device Core
8052
Family Name
ADuC8xx
Maximum Speed
16 MHz
Operating Supply Voltage
3.3|5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
32
Interface Type
I2C/SPI/TWI/UART
On-chip Adc
8-chx12-bit
On-chip Dac
2-chx12-bit
Number Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC812BSZ
Manufacturer:
ADI
Quantity:
2 400
Part Number:
ADUC812BSZ
Manufacturer:
AD
Quantity:
3
Part Number:
ADUC812BSZ
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC812BSZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Company:
Part Number:
ADUC812BSZ
Quantity:
2 500
Part Number:
ADUC812BSZ-REEL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
ADuC812
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, pro-
gram, and erase cycles as detailed in Table VII.
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:
Erase Full Array (640 Bytes) – 20 ms
Erase Single Page (4 Bytes)
Program Page (4 Bytes)
Read Page (4 Bytes)
Flash/EE erase and program timing is derived from the master
clock. When using a master clock frequency of 11.0592 MHz, it
is not necessary to write to the ETIM registers at all. However,
when operating at other master clock frequencies (f
must change the values of ETIM1 and ETIM2 to avoid degrad-
ing data Flash/EE endurance and retention. ETIM1 and ETIM2
form a 16-bit word, ETIM2 being the high byte and ETIM1 the
low byte. The value of this 16-bit word must be set as follows to
ensure optimum data Flash/EE endurance and retention.
ETIM3 should always remain at its default value of 201 dec/C9 hex.
Table VII. ECON—Flash/EE Memory Control Register
Command Modes
ETIM2, ETIM1 = 100 µs × f
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.
– 20 ms
– 250 µs
– Within Single Instruction Cycle
CLK
CLK
), you
–20–
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 array will involve setting up the
page address to be accessed in the EADRL SFR, configuring 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 that initiates one of the six
modes shown in Table VII. 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 ADuC812 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 instruction
will not be executed until the Flash/EE operation is complete
(250 µs or 20 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 pseudo-
idle 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 nonetheless
good programming practice to include an erase-all routine as
part of any configuration/setup code running on the ADuC812.
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 existing data being lost.
This example, coded in 8051 assembly, would appear as:
MOV
MOV
MOV
MOV
MOV
EADRL, #03H
ECON, #01H
EDATA2, #0F3H
ECON, #05H
ECON, #02H
; Erase all Command
; 20 ms Duration
; Set Page Address Pointer
; Read Page
; Write New Byte
; Erase Page
; Write Page (Program
Flash/EE)
REV. E

Related parts for ADUC812BSZ