English
Language : 

AT89S4D12 Datasheet, PDF (1/13 Pages) ATMEL Corporation – 8-Bit Microcontroller with 132K Bytes Flash Data Memory
AT89S4D12
Features
• Compatible with MCS-51™ Products
• 128K Bytes of In-System Reprogrammable Flash data memory and 4K Bytes of
Downloadable Flash Program Memory
– Endurance: 1,000 Write/Erase Cycles per Sector
– Data Retention: 10 Years
• Sector Programming: 128 Bytes/Sector
• Single 3.3V ± 10% Supply
• On-Chip 12 MHz oscillator
• Two-Level Program Memory Lock
• 256-Bytes Internal RAM
• 5 Programmable I/O Lines
• Serial Peripheral Interface (SPI) Channel
• Serial Program Downloading
• Dual Data Pointer Registers
Description
The AT89S4D12 is a low-voltage, highly integrated CMOS 8-bit microcomputer with
4K bytes of downloadable Flash program memory and 128K bytes of in-system repro-
grammable Flash data memory. The device is manufactured using Atmel’s high den-
sity Flash memory technology and is compatible with the industry-standard MCS-51™
instruction set.
The 128K bytes of on-chip Flash data memory are accessed as two 64K byte blocks.
Bit 0 at SFR location 96H is used to select the active block. The MOVX instruction is
used to read and write the data memory. Both the program and data memory arrays
can be programmed by an external programmer.
The downloadable Flash can be changed one page (128 bytes) at a time and is
accessible through the SPI serial peripheral interface port. Holding RESET active
forces the SPI bus into a slave input mode and allows the program memory to be writ-
ten-from or read-to unless Lock Bit 2 has been activated.
The functional operations of the 128K bytes Flash data memory are equivalent to
those on the AT29LV010A 1M Bit Flash memory device.
8-Bit
Microcontroller
with
132K Bytes
Flash Data
Memory
AT89S4D12
Pin Configurations
SOIC Top View
PLCC Top View
GND 1
TEST1 2
RESET 3
SDI/P1.1 4
SDO/P1.0 5
TEST2 6
NC 7
NC 8
NC 9
NC 10
NC 11
NC 12
NC 13
NC 14
28 VCC
27 P1.2/DTR
26 P1.3/SCK
25 P1.4/DSR
24 NC
23 NC
22 NC
21 NC
20 NC
19 NC
18 NC
17 NC
16 NC
15 NC
P1.0/SDO 5
TEST2 6
NC 7
NC 8
NC 9
NC 10
NC 11
NC 12
NC 13
29 P1.4/DSR
28 NC
27 NC
26 NC
25 NC
24 NC
23 NC
22 NC
21 NC
0921A-A–12/97
4-281