Loading PDF...
Pages: 13
AT89S4D12 4-281 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. 0921A-A–12/97 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12 SOIC Top View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 GND TEST1 RESET SDI/P1.1 SDO/P1.0 TEST2 NC NC NC NC NC NC NC NC VCC P1.2/DTR P1.3/SCK P1.4/DSR NC NC NC NC NC NC NC NC NC NC PLCC Top View 5 6 7 8 9 10 11 12 13 29 28 27 26 25 24 23 22 21 P1.0/SDO TEST2 NC NC NC NC NC NC NC P1.4/DSR NC NC NC NC NC NC NC NC 4321 323130 14151617181920 NCNCNCNCNCNCNC P1.1/SDIRESETTEST1GNDVCCP1.2/DTRP1.3/SCK Pin Configurations