89 e 58 RD 2
89 e 58 RD 2
89 e 58 RD 2
Data Sheet
FEATURES:
8-bit 8051-Compatible Microcontroller (MCU) with Embedded SuperFlash Memory Fully Software Compatible Development Toolset Compatible Pin-For-Pin Package Compatible SST89E5xRD2 Operation 0 to 40 MHz at 5V SST89V5xRD2 Operation 0 to 33 MHz at 3V 1 KByte Internal RAM Dual Block SuperFlash EEPROM 8/16/32 KByte primary block + 8 KByte secondary block (128-Byte sector size for both blocks) Individual Block Security Lock with SoftLock Concurrent Operation during In-Application Programming (IAP) Memory Overlay for Interrupt Support during IAP Support External Address Range up to 64 KByte of Program and Data Memory Three High-Current Drive Ports (16 mA each) Three 16-bit Timers/Counters Full-Duplex, Enhanced UART Framing Error Detection Automatic Address Recognition Ten Interrupt Sources at 4 Priority Levels Four External Interrupt Inputs Programmable Watchdog Timer (WDT) Programmable Counter Array (PCA) Four 8-bit I/O Ports (32 I/O Pins) and One 4-bit Port Second DPTR register Low EMI Mode (Inhibit ALE) SPI Serial Interface Standard 12 Clocks per cycle, the device has an option to double the speed to 6 clocks per cycle. TTL- and CMOS-Compatible Logic Levels Brown-out Detection Low Power Modes Power-down Mode with External Interrupt Wake-up Idle Mode Temperature Ranges: Commercial (0C to +70C) Industrial (-40C to +85C) Packages Available 40-contact WQFN (Port 4 feature not available) 44-lead PLCC 40-pin PDIP (Port 4 feature not available) 44-lead TQFP All non-Pb (lead-free) devices are RoHS compliant
PRODUCT DESCRIPTION
The SST89E5xRD2/RD and SST89V5xRD2/RD are members of the FlashFlex51 family of 8-bit microcontroller products designed and manufactured with SSTs patented and proprietary SuperFlash CMOS semiconductor process technology. The split-gate cell design and thick-oxide tunneling injector offer significant cost and reliability benefits for SSTs customers. The devices use the 8051 instruction set and are pin-for-pin compatible with standard 8051 microcontroller devices. The devices come with 16/24/40 KByte of on-chip flash EEPROM program memory which is partitioned into 2 independent program memory blocks. The primary Block 0 occupies 8/16/32 KByte of internal program memory space and the secondary Block 1 occupies 8 KByte of internal program memory space. The 8-KByte secondary block can be mapped to the lowest location of the 8/16/32 KByte address space; it can also be hidden from the program counter and used as an independent EEPROM-like data memory. In addition to the 16/24/40 KByte of EEPROM program memory on-chip, the devices can address up to 64 KByte of external program memory. In addition to 1024 x8 bits of on-chip RAM, up to 64 KByte of external RAM can be addressed. The flash memory blocks can be programmed via a standard 87C5x OTP EPROM programmer fitted with a special adapter and the firmware for SSTs devices. During poweron reset, the devices can be configured as either a slave to an external host for source code storage or a master to an external host for an in-application programming (IAP) operation. The devices are designed to be programmed in-system and in-application on the printed circuit board for maximum flexibility. The devices are pre-programmed with an example of the bootstrap loader in the memory, demonstrating the initial user program code loading or subsequent user code updating via the IAP operation. The sample bootstrap loader is available for the users reference and convenience only; SST does not guarantee its functionality or usefulness. Chip-Erase or Block-Erase operations will erase the pre-programmed sample code.
The SST logo, SuperFlash, and FlashFlex are registered trademarks of Silicon Storage Technology, Inc. These specifications are subject to change without notice.
TABLE OF CONTENTS
FEATURES: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 PRODUCT DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 TABLE OF CONTENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 LIST OF FIGURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 LIST OF TABLES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.0 FUNCTIONAL BLOCKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.0 PIN ASSIGNMENTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.0 MEMORY ORGANIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.1 Program Flash Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.2 Program Memory Block Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3 Data RAM Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.4 Expanded Data RAM Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.5 Dual Data Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.6 Special Function Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.0 FLASH MEMORY PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.1 Product Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.2 In-Application Programming Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.0 TIMERS/COUNTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.1 Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.2 Timer Set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.3 Programmable Clock-Out. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 6.0 SERIAL I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 6.1 Full-Duplex, Enhanced UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 6.2 Serial Peripheral Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 7.0 WATCHDOG TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 8.0 PROGRAMMABLE COUNTER ARRAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 8.1 PCA Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 8.2 PCA Timer/Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 8.3 Compare/Capture Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 9.0 SECURITY LOCK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 9.1 Hard Lock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2006 Silicon Storage Technology, Inc. S71255-05-000 5/06
LIST OF FIGURES
FIGURE 1-1: Functional Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 FIGURE 2-1: Pin Assignments for 40-contact WQFN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 FIGURE 2-2: Pin Assignments for 40-pin PDIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 FIGURE 2-3: Pin Assignments for 44-lead TQFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 FIGURE 2-4: Pin Assignments for 44-lead PLCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 FIGURE 3-1: Program Memory Organization for 8 KByte SST89x52RDx . . . . . . . . . . . . . . . . . . . . . . . . . . 11 FIGURE 3-2: Program Memory Organization for 16 KByte SST89x54RDx . . . . . . . . . . . . . . . . . . . . . . . . . 12 FIGURE 3-3: Program Memory Organization for 32 KByte SST89x58RDx . . . . . . . . . . . . . . . . . . . . . . . . . 12 FIGURE 3-4: Internal and External Data Memory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 FIGURE 3-5: Dual Data Pointer Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 FIGURE 4-1: Chip-Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 FIGURE 4-2: Block-Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 FIGURE 4-3: Sector-Erase. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2006 Silicon Storage Technology, Inc. S71255-05-000 5/06
S71255-05-000
5/06
LIST OF TABLES
TABLE 2-1: Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 TABLE 3-1: SFCF Values for Program Memory Block Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 TABLE 3-2: SFCF Values Under Different Reset Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 TABLE 3-3: External Data Memory RD#, WR# with EXTRAM bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 TABLE 3-4: FlashFlex51 SFR Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 TABLE 3-5: CPU related SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 TABLE 3-6: Flash Memory Programming SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 TABLE 3-7: Watchdog Timer SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 TABLE 3-8: Timer/Counters SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 TABLE 3-9: Interface SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 TABLE 3-10: PCA SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 TABLE 4-1: Product Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 TABLE 4-2: IAP Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 TABLE 5-1: Timer/Counter 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 TABLE 5-2: Timer/Counter 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 TABLE 5-3: Timer/Counter 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 TABLE 8-1: PCA Timer/Counter Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 TABLE 8-2: PCA Timer/Counter Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 TABLE 8-3: CMOD Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 TABLE 8-4: PCA High and Low Register Compare/Capture Modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 TABLE 8-5: PCA Module Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 TABLE 8-6: PCA Module Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 TABLE 8-7: Pulse Width Modulator Frequencies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 TABLE 9-1: Security Lock Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 TABLE 9-2: Security Lock Access Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 TABLE 11-1: Interrupt Polling Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 TABLE 12-1: Power Saving Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 TABLE 13-1: Recommended Values for C1 and C2 by Crystal Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 TABLE 13-2: Clock Doubling Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 TABLE 14-1: Operating Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 TABLE 14-2: Reliability Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TABLE 14-3: AC Conditions of Test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TABLE 14-4: Recommended System Power-up Timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TABLE 14-5: Pin Impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 TABLE 14-6: DC Electrical Characteristics for SST89E5xRD2/RD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 TABLE 14-7: DC Electrical Characteristics for SST89V5xRD2/RD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 TABLE 14-8: AC Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 TABLE 14-9: External Clock Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 TABLE 14-10: Serial Port Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 TABLE 14-11: Flash Memory Programming/Verification Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 TABLE 16-1: Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
2006 Silicon Storage Technology, Inc. S71255-05-000 5/06
Interrupt Control
10 Interrupts
Watchdog Timer
RAM 1K x8 8 I/O Port 0 8 Security Lock I/O Port 1 8 I/O Port 2 I/O 8 I/O Port 3 I/O 4 I/O Port 4 I/O I/O I/O
Timer 0 (16-bit)
Timer 1 (16-bit)
Timer 2 (16-bit)
SPI
1255 B1.1
FIGURE
S71255-05-000
5/06
P1.3 (CEX0)
P0.0 (AD0)
P0.1 (AD1)
P0.2 (AD2)
(CEX2 / MOSI) P1.5 (CEX3 / MISO) P1.6 (CEX4 / SCK) P1.7 RST (RXD) P3.0 (TXD) P3.1 (INT0#) P3.2 (INT1#) P3.3 (T0) P3.4 (T1) P3.5
40
P0.3 (AD3)
P1.2 (ECI)
P1.0 (T2)
VDD
Top View
(contacts facing down)
(WR#) P3.6
(RD#) P3.7
(A10) P2.2
(A11) P2.3
(A12) P2.4
XTAL2
XTAL1
VSS
(A8) P2.0
(A9) P2.1
FIGURE
S71255-05-000
5/06
(T2) P1.0 (T2 EX) P1.1 (ECI) P1.2 (CEX0) P1.3 (CEX1 / SS#) P1.4 (CEX2 / MOSI) P1.5 (CEX3 / MISO) P1.6 (CEX4 / SCK) P1.7 RST (RXD) P3.0 (TXD) P3.1 (INT0#) P3.2 (INT1#) P3.3 (T0) P3.4 (T1) P3.5 (WR#) P3.6 (RD#) P3.7 XTAL2 XTAL1 VSS
1 2 3 4 5 6 7 8
40 39 38 37 36 35 34
VDD P0.1 (AD1) P0.2 (AD2) P0.3 (AD3) P0.4 (AD4) P0.5 (AD5) P0.6 (AD6) P0.7 (AD7) EA# ALE/PROG# PSEN# P2.7 (A15) P2.6 (A14) P2.5 (A13) P2.4 (A12) P2.3 (A11)
XTAL2 XTAL1 (WR#) P3.6 VSS (A8) P2.0 (A9) P2.1 (A10) P2.2 (A11) P2.3 (RD#) P3.7 (A12) P2.4 P4.0 (CEX2 / MOSI) P1.5 (CEX3 / MISO) P1.6 (CEX4 / SCK) P1.7 RST (RXD) P3.0 INT2#/P4.3 (TXD) P3.1 (INT0#) P3.2 (INT1#) P3.3 (T0) P3.4 (T1) P3.5 1 2 3 4 5 6 7 8 9 10 P1.4 (SS# / CEX1)
P0.0 (AD0)
P1.3 (CEX0)
P4.2/INT3#
P0.0 (AD0)
P0.1 (AD1)
P0.2 (AD2)
44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 P0.4 (AD4) P0.5 (AD5) P0.6 (AD6) P0.7 (AD7) EA# P4.1 ALE/PROG# PSEN# P2.7 (A15) P2.6 (A14) P2.5 (A13)
11 23 12 13 14 15 16 17 18 19 20 21 22
P0.3 (AD3)
1255 44-tqfp TQJ P2.0
P1.2 (ECI)
P1.0 (T2)
FIGURE
FIGURE
P1.3 (CEX0)
P4.2/INT3#
P0.0 (AD0)
P0.1 (AD1)
P0.2 (AD2)
6 (CEX2 / MOSI) P1.5 (CEX3 / MISO) P1.6 (CEX4 / SCK) P1.7 RST (RXD) P3.0 INT2#/P4.3 (TXD) P3.1 (INT0#) P3.2 (INT1#) P3.3 (T0) P3.4 (T1) P3.5 7 8 9 10 11 12 13 14 15 16
2 1 44 43 42 41 40 39 38 37 36 P0.4 (AD4) P0.5 (AD5) P0.6 (AD6) P0.7 (AD7) EA# P4.1 ALE/PROG# PSEN# P2.7 (A15) P2.6 (A14) P2.5 (A13)
17 29 18 19 20 21 22 23 24 25 26 27 28
(WR#) P3.6 (RD#) P3.7 XTAL2 XTAL1 VSS P4.0 (A8) P2.0 (A9) P2.1 (A10) P2.2 (A11) P2.3 (A12) P2.4
P0.3 (AD3)
P1.2 (ECI)
P1.0 (T2)
VDD
35 34 33 32 31 30
FIGURE
VDD
S71255-05-000
5/06
P1[7:0]
I/O I I I/O
P1[4]
I/O
P1[5]
I/O
P1[6]
I/O
P1[7]
I/O
P2[7:0]
P3[7:0]
I O I I
RST
EA#
ALE/PROG#
I/O
P4[3:0]5
P4[0] P4[1] P4[2] / INT3# P4[3] / INT2# XTAL1 XTAL2 VDD VSS
1. I = Input; O = Output 2. It is not necessary to receive a 12V programming supply voltage during flash programming. 3.ALE loading issue: When ALE pin experiences higher loading (>30pf) during the reset, the MCU may accidentally enter into modes other than normal working mode. The solution is to add a pull-up resistor of 3-50 K to VDD, e.g. for ALE pin. 4. For 6 clock mode, ALE is emitted at 1/3 of crystal frequency. 5. Port 4 is not present on the PDIP package.
S71255-05-000
5/06
10
EA# = 0
FFFFH FFFFH E000H DFFFH
EA# = 1 SFCF[1:0] = 00
8 KByte Block 1 FFFFH E000H DFFFH
EA# = 1 SFCF[1:0] = 01
8 KByte Block 1
External 64 KByte
Not Accessible
Not Accessible
Not Accessible
8 KByte Block 1
8 KByte Block 0
8 KByte Block 0
1255 F01.1
FIGURE
S71255-05-000
5/06
11
EA# = 0
FFFFH FFFFH E000H DFFFH
EA# = 1 SFCF[1:0] = 00
8 KByte Block 1 FFFFH E000H DFFFH
EA# = 1 SFCF[1:0] = 01
8 KByte Block 1
Not Accessible
Not Accessible
FIGURE
EA# = 0
FFFFH FFFFH E000H DFFFH
EA# = 1 SFCF[1:0] = 00
8 KByte Block 1 FFFFH E000H DFFFH
EA# = 1 SFCF[1:0] = 01
8 KByte Block 1
External 64 KByte
8000H 7FFFH
8000H 7FFFH
8000H 7FFFH
24 KByte Block 0 32 KByte Block 0 2000H 1FFFH 0000H 0000H 32 KByte Block 0
FIGURE
S71255-05-000
5/06
12
SFCF[1:0]
3.2.1 Reset Configuration of Program Memory Block Switching Program memory block switching is initialized after reset according to the state of the Start-up Configuration bit SC0 and/or SC1. The SC0 and SC1 bits are programmed via an external host mode command or an IAP Mode command. See Table 4-2. Once out of reset, the SFCF[0] bit can be changed dynamically by the program for desired effects. Changing SFCF[0] will not change the SC0 bit. Caution must be taken when dynamically changing the SFCF[0] bit. Since this will cause different physical memory to be mapped to the logical program address space. The user must avoid executing block switching instructions within the address range 0000H to 1FFFH. TABLE 3-2: SFCF Values Under Different Reset Conditions
State of SFCF[1:0] after: Power-on or External Reset 00 (default) 01 10 11 WDT Reset or Brown-out Reset x0 x1 10 11
Software Reset 10 11 10 11
T3-2.0 1255
S71255-05-000
5/06
13
ADDR < 0300H RD# / WR# not asserted RD# / WR# asserted
1. Access limited to ERAM address within 0 to 0FFH; cannot access 100H to 02FFH.
S71255-05-000
5/06
14
2FFH
FFH
(Indirect Addressing)
FFH
80H 7FH
Upper 128 Bytes Internal RAM Lower 128 Bytes Internal RAM
80H
00H
FFFFH
(Indirect Addressing)
FFFFH
FIGURE
15
AUXR1 / bit0
DPS DPTR1 DPTR0 DPH 83H DPL 82H
FIGURE
S71255-05-000
5/06
16
Symbol Description ACC1 B1 PSW1 SP DPL DPH IE1 IEA1 IP1 IPH IP11 IP1H PCON AUXR AUXR1 XICON2 Accumulator B Register Program Status Word Stack Pointer Data Pointer Low Data Pointer High Interrupt Enable Interrupt Enable A Interrupt Priority Reg Interrupt Priority Reg High Interrupt Priority Reg A Interrupt Priority Reg A High Power Control Auxiliary Reg Auxiliary Reg 1 External Interrupt Control
SP[7:0] DPL[7:0] DPH[7:0] ES PS PSH POF IT3 ET1 EBO PT1 PT1H PBO PBOH GF1 GF2 0
TABLE
Symbol Description SFCF SFCM SFAL SFAH SFDT SFST SuperFlash Configuration SuperFlash Command SuperFlash Address Low SuperFlash Address High SuperFlash Data SuperFlash Status
SuperFlash Low Order Byte Address Register - A7 to A0 (SFAL) SuperFlash High Order Byte Address Register - A15 to A8 (SFAH) SuperFlash Data Register SB3_i EDC_i FLASH_BUSY
S71255-05-000
5/06
17
TABLE
Symbol TMOD TCON1 TH0 TL0 TH1 TL1
LSB
T2CON1 Timer / Counter 2 Control T2MOD2 Timer2 Mode Control TH2 TL2 Timer 2 MSB Timer 2 LSB
S71255-05-000
5/06
18
Symbol Description SBUF SCON1 Serial Data Buffer Serial Port Control
SADDR Slave Address SADEN Slave Address Mask SPCR SPSR SPDR P01 P11 P21 P31 P42 SPI Control Register SPI Status Register SPI Data Register Port 0 Port 1 Port 2 Port 3 Port 4
S71255-05-000
5/06
19
Direct Address MSB F9H E9H D8H D9H FAH EAH FBH EBH FCH ECH FDH EDH FEH EEH DAH DBH DCH DDH DEH CF CIDL
Bit Address, Symbol, or Alternative Port Function LSB CH[7:0] CL[7:0] CR WDTE CCF4 CCF3 CCF2 CPS1 CCF1 CPS0 CCF0 ECF
RESET Value 00H 00H 00x00000b 00xxx000b 00H 00H 00H 00H 00H 00H 00H 00H 00H 00H
CCAP0H PCA Module 0 CCAP0L Compare/Capture Registers CCAP1H PCA Module 1 CCAP1L Compare/Capture Registers CCAP2H PCA Module 2 CCAP2L Compare/Capture Registers CCAP3H PCA Module 3 CCAP3L Compare/Capture Registers CCAP4H PCA Module 4 CCAP4L Compare/Capture Registers CCAPM0 PCA CCAPM1 Compare/Capture Module Mode CCAPM2 Registers CCAPM3 CCAPM4
1. Bit Addressable SFRs
CCAP0H[7:0] CCAP0L[7:0] CCAP1H[7:0] CCAP1L[7:0] CCAP2H[7:0] CCAP2L[7:0] CCAP3H[7:0] CCAP3L[7:0] CCAP4H[7:0] CCAP4L[7:0]
ECOM0 CAPP0 CAPN0 MAT0 TOG0 PWM0 ECCF0 x0000000b ECOM1 CAPP1 CAPN1 MAT1 TOG1 PWM1 ECCF1 x0000000b ECOM2 CAPP2 CAPN2 MAT2 TOG2 PWM2 ECCF2 x0000000b ECOM3 CAPP3 CAPN3 MAT3 TOG3 PWM3 ECCF3 x0000000b ECOM4 CAPP4 CAPN4 MAT4 TOG4 PWM4 ECCF4 x0000000b
T3-10.0 1255
S71255-05-000
5/06
20
Symbol IAPEN
Function Enable IAP operation 0: IAP commands are disabled 1: IAP commands are enabled Software Reset See Section 10.2, Software Reset Program memory block switching bit See Figures 3-1 through 3-3 and Table 3-2
SWR BSEL
Symbol FIE
Function Flash Interrupt Enable. 0: INT1# is not reassigned. 1: INT1# is re-assigned to signal IAP operation completion. External INT1# interrupts are ignored. Flash operation command 000_0001b Chip-Erase 000_1011b Sector-Erase 000_1101b Block-Erase 000_1100b Byte-Verify1 000_1110b Byte-Program 000_1111b Prog-SB1 000_0011b Prog-SB2 000_0101b Prog-SB3 000_1001b Prog-SC0 000_1001b Prog-SC1 000_1000bEnable-Clock-Double All other combinations are not implemented, and reserved for future use.
1. Byte-Verify has a single machine cycle latency and will not generate any INT1# interrupt regardless of FIE.
FCM[6:0]
Symbol SFAL
Function Mailbox register for interfacing with flash memory block. (Low order address register).
Symbol SFAH
2006 Silicon Storage Technology, Inc.
Function Mailbox register for interfacing with flash memory block. (High order address register).
S71255-05-000 5/06
21
Symbol SFDT
Function Mailbox register for interfacing with flash memory block. (Data register).
1 -
0 -
Function Security Bit 1 status (inverse of SB1 bit) Security Bit 2 status (inverse of SB2 bit) Security Bit 3 status (inverse of SB3 bit) Please refer to Table 9-1 for security lock options. Double Clock Status 0: 12 clocks per machine cycle 1: 6 clocks per machine cycle
FLASH_BUSY Flash operation completion polling bit. 0: Device has fully completed the last IAP command. 1: Device is busy with flash operation.
S71255-05-000
5/06
22
Symbol EA
Function Global Interrupt Enable. 0 = Disable 1 = Enable PCA Interrupt Enable. Timer 2 Interrupt Enable. Serial Interrupt Enable. Timer 1 Interrupt Enable. External 1 Interrupt Enable. Timer 0 Interrupt Enable. External 0 Interrupt Enable.
6 -
5 -
4 -
3 EBO
2 -
1 -
0 -
Symbol EBO
Function Brown-out Interrupt Enable. 1 = Enable the interrupt 0 = Disable the interrupt
S71255-05-000
5/06
23
Function PCA interrupt priority bit Timer 2 interrupt priority bit Serial Port interrupt priority bit Timer 1 interrupt priority bit External interrupt 1 priority bit Timer 0 interrupt priority bit External interrupt 0 priority bit
Symbol PPCH PT2H PSH PT1H PX1H PT0H PX0H Interrupt Priority 1 (IP1)
Location F8H 7 1
Function PCA interrupt priority bit high Timer 2 interrupt priority bit high Serial Port interrupt priority bit high Timer 1 interrupt priority bit high External interrupt 1 priority bit high Timer 0 interrupt priority bit high External interrupt 0 priority bit high
6 -
5 -
4 1
3 PBO
2 PX3
1 PX2
0 1
Function Brown-out interrupt priority bit External Interrupt 2 priority bit External Interrupt 3 priority bit
Function Brown-out Interrupt priority bit high External Interrupt 2 priority bit high External Interrupt 3 priority bit high
S71255-05-000
5/06
24
Symbol EXTRAM
Function Internal/External RAM access 0: Internal Expanded RAM access within range of 00H to 2FFH using MOVX @Ri / @DPTR. Beyond 300H, the MCU always accesses external data memory. For details, refer to Section 3.4, Expanded Data RAM Addressing . 1: External data memory access. Disable/Enable ALE 0: ALE is emitted at a constant rate of 1/3 the oscillator frequency in 6 clock mode, 1/6 fOSC in 12 clock mode. 1: ALE is active only during a MOVX or MOVC instruction.
AO
Function General purpose user-defined flag. DPTR registers select bit. 0: DPTR0 is selected. 1: DPTR1 is selected.
Symbol WDOUT
Function Watchdog output enable. 0: Watchdog reset will not be exported on Reset pin. 1: Watchdog reset if enabled by WDRE, will assert Reset pin for 32 clocks. Watchdog timer reset enable. 0: Disable watchdog timer reset. 1: Enable watchdog timer reset. Watchdog timer reset flag. 0: External hardware reset or power-on reset clears the flag. Flag can also be cleared by writing a 1. Flag survives if chip reset happened because of watchdog timer overflow. 1: Hardware sets the flag on watchdog overflow. Watchdog timer refresh. 0: Hardware resets the bit when refresh is done. 1: Software sets the bit to force a watchdog timer refresh. Start watchdog timer. 0: Stop WDT. 1: Start WDT.
WDRE
WDTS
WDT
SWDT
S71255-05-000
5/06
25
Symbol WDTD
Function Initial/Reload value in Watchdog Timer. New value wont be effective until WDT is set.
6 CR
5 -
4 CCF4
3 CCF3
2 CCF2
1 CCF1
0 CCF0
Symbol CF
Function PCA Counter Overflow Flag Set by hardware when the counter rolls over. CF flags an interrupt if bit ECF in CMOD is set. CF may be set by either hardware or software, but can only cleared by software. PCA Counter Run control bit Set by software to turn the PCA counter on. Must be cleared by software to turn the PCA counter off. Not implemented, reserved for future use.
Note: User should not write 1s to reserved bits. The value read from a reserved bit is indeterminate.
CR
PCA Module 4 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software. PCA Module 3 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software. PCA Module 2 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software. PCA Module 1 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software. PCA Module 0 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software.
S71255-05-000
5/06
26
Symbol CIDL
Function Counter Idle Control: 0: Programs the PCA Counter to continue functioning during idle mode 1: Programs the PCA Counter to be gated off during idle Watchdog Timer Enable: 0: Disables Watchdog Timer function on PCA module 4 1: Enables Watchdog Timer function on PCA module 4 Not implemented, reserved for future use.
Note: User should not write 1s to reserved bits. The value read from a reserved bit is indeterminate.
WDTE
CPS1 CPS0
PCA Count Pulse Select bit 1 PCA Count Pulse Select bit 2
Selected PCA Input1 0 1 2 3
Internal clock, fOSC/6 in 6 clock mode (fOSC/12 in 12 clock mode) Internal clock, fOSC/2 in 6 clock mode (fOSC/4 in 12 clock mode) Timer 0 overflow External clock at ECI/P1.2 pin (max. rate = fOSC/4 in 6 clock mode, fOSC/8 in 12 clock mode) 1. fOSC = oscillator frequency
CPS1 CPS0 0 0 1 1 0 1 0 1
ECF
PCA Enable Counter Overflow interrupt: 0: Disables the CF bit in CCON 1: Enables CF bit in CCON to generate an interrupt
S71255-05-000
5/06
27
Symbol ECOMn
Enable Comparator 0: Disables the comparator function 1: Enables the comparator function Capture Positive 0: Disables positive edge capture on CEX[4:0] 1: Enables positive edge capture on CEX[4:0] Capture Negative 0: Disables negative edge capture on CEX[4:0] 1: Enables negative edge capture on CEX[4:0] Match: Set ECOM[4:0] and MAT[4:0] to implement the software timer mode 0: Disables software timer mode 1: A match of the PCA counter with this modules compare/capture register causes the CCFn bit in CCON to be set, flagging an interrupt. Toggle 0: Disables toggle function 1: A match of the PCA counter with this modules compare/capture register causes the the CEXn pin to toggle. Pulse Width Modulation mode 0: Disables PWM mode 1: Enables CEXn pin to be used as a pulse width modulated output Enable CCF Interrupt 0: Disables compare/capture flag CCF[4:0] in the CCON register to generate an interrupt request. 1: Enables compare/capture flag CCF[4:0] in the CCON register to generate an interrupt request.
CAPPn
CAPNn
MATn
TOGn
PWMn
ECCFn
S71255-05-000
5/06
28
Function If both SPIE and ES are set to one, SPI interrupts are enabled. SPI enable bit. 0: Disables SPI. 1: Enables SPI and connects SS#, MOSI, MISO, and SCK to pins P1.4, P1.5, P1.6, P1.7. Data Transmission Order. 0: MSB first in data transmission. 1: LSB first in data transmission. Master/Slave select. 0: Selects Slave mode. 1: Selects Master mode. Clock Polarity 0: SCK is low when idle (Active High). 1: SCK is high when idle (Active Low). Clock Phase control bit. The CPHA bit with the CPOL bit control the clock and data relationship between master and slave. See Figures 6-5 and 6-6. 0: Shift triggered on the leading edge of the clock. 1: Shift triggered on the trailing edge of the clock. SPI Clock Rate Select bits. These two bits control the SCK rate of the device configured as master. SPR1 and SPR0 have no effect on the slave. The relationship between SCK and the oscillator frequency, fOSC, is as follows:
SPR1 0 0 1 1 SPR0 0 1 0 1 SCK = fOSC divided by 4 16 64 128
DORD
MSTR
CPOL
CPHA
SPR1, SPR0
Symbol SPIF
Function SPI Interrupt Flag. Upon completion of data transfer, this bit is set to 1. If SPIE =1 and ES =1, an interrupt is then generated. This bit is cleared by software. Write Collision Flag. Set if the SPI data register is written to during data transfer. This bit is cleared by software.
WCOL
S71255-05-000
5/06
29
Function Double Baud rate bit. If SMOD1 = 1, Timer 1 is used to generate the baud rate, and the serial port is used in modes 1, 2, and 3. FE/SM0 Selection bit. 0: SCON[7] = SM0 1: SCON[7] = FE, Brown-out detection status bit, this bit will not be affected by any other reset. BOF should be cleared by software. Power-on reset will also clear the BOF bit. 0: No brown-out. 1: Brown-out occurred Power-on reset status bit, this bit will not be affected by any other reset. POF should be cleared by software. 0: No Power-on reset. 1: Power-on reset occurred General-purpose flag bit. General-purpose flag bit. Power-down bit, this bit is cleared by hardware after exiting from power-down mode. 0: Power-down mode is not activated. 1: Activates Power-down mode. Idle mode bit, this bit is cleared by hardware after exiting from idle mode. 0: Idle mode is not activated. 1: Activates idle mode.
BOF
POF
GF1 GF0 PD
IDL
S71255-05-000
5/06
30
Symbol FE
Function Set SMOD0 = 1 to access FE bit. 0: No framing error 1: Framing Error. Set by receiver when an invalid stop bit is detected. This bit needs to be cleared by software. SMOD0 = 0 to access SM0 bit. Serial Port Mode Bit 0 Serial Port Mode Bit 1
SM0 0 0 1 SM1 0 1 0 Mode 0 1 2 Description Shift Register 8-bit UART 9-bit UART Baud Rate1 fOSC/6 (6 clock mode) or fOSC/12 (12 clock mode) Variable fOSC/32 or fOSC/16 (6 clock mode) or fOSC/64 or fOSC/32 (12 clock mode) Variable
SM0 SM1
9-bit UART
SM2
Enables the Automatic Address Recognition feature in Modes 2 or 3. If SM2 = 1 then RI will not be set unless the received 9th data bit (RB8) is 1, indicating an address, and the received byte is a given or broadcast address. In Mode 1, if SM2 = 1 then RI will not be activated unless a valid stop bit was received. In Mode 0, SM2 should be 0. Enables serial reception. 0: to disable reception. 1: to enable reception. The 9th data bit that will be transmitted in Modes 2 and 3. Set or clear by software as desired. In Modes 2 and 3, the 9th data bit that was received. In Mode 1, if SM2 = 0, RB8 is the stop bit that was received. In Mode 0, RB8 is not used. Transmit interrupt flag. Set by hardware at the end of the 8th bit time in Mode 0, or at the beginning of the stop bit in the other modes, in any serial transmission, Must be cleared by software. Receive interrupt flag. Set by hardware at the end of the8th bit time in Mode 0, or halfway through the stop bit time in the other modes, in any serial reception (except see SM2). Must be cleared by software.
REN
TB8 RB8 TI
RI
S71255-05-000
5/06
31
Function Timer 2 overflow flag set by a Timer 2 overflow and must be cleared by software. TF2 will not be set when either RCLK or TCLK = 1. Timer 2 external flag set when either a capture or reload is caused by a negative transition on T2EX and EXEN2 = 1. When Timer 2 interrupt is enabled, EXF2 = 1 will cause the CPU to vector to the Timer 2 interrupt routine. EXF2 must be cleared by software. EXF2 does not cause an interrupt in up/down counter mode (DCEN = 1). Receive clock flag. When set, causes the serial port to use Timer 2 overflow pulses for its receive clock in modes 1 and 3. RCLK = 0 causes Timer 1 overflow to be used for the receive clock. Transmit clock flag. When set, causes the serial port to use Timer 2 overflow pulses for its transmit clock in modes 1 and 3. TCLK = 0 causes Timer 1 overflow to be used for the transmit clock. Timer 2 external enable flag. When set, allows a capture or reload to occur as a result of a negative transition on T2EX if Timer 2 is not being used to clock the serial port. EXEN2 = 0 causes Timer 2 to ignore events at T2EX. Start/stop control for Timer 2. A logic 1 starts the timer. Timer or counter select (Timer 2) 0: Internal timer (OSC/6 in 6 clock mode, OSC/12 in 12 clock mode) 1: External event counter (falling edge triggered) Capture/Reload flag. When set, captures will occur on negative transitions at T2EX if EXEN2 = 1. When cleared, auto-reloads will occur either with Timer 2 overflows or negative transitions at T2EX when EXEN2 = 1. When either RCLK = 1 or TCLK = 1, this bit is ignored and the timer is forced to auto-reload on Timer 2 overflow.
RCLK
TCLK
EXEN2
TR2 C/T2#
CP/RL2#
Timer 2 Output Enable bit. Down Count Enable bit. When set, this allows Timer 2 to be configured as an up/down counter.
S71255-05-000
5/06
32
Function Dont Care External Interrupt 2 Enable bit if set Interrupt Enable If IT2=1, IE2 is set/cleared automatically by hardware when interrupt is detected/ serviced. External Interrupt 2 is falling-edge/low-level triggered when this bit is cleared by software. External Interrupt 3 Enable bit if set Interrupt Enable If IT3=1, IE3 is set/cleared automatically by hardware when interrupt is detected/ serviced. External Interrupt3 is falling-edge/low-level triggered when this bit is cleared by software.
IT3
S71255-05-000
5/06
33
Data BFH
30H
S71255-05-000
5/06
34
OR
Set-Up MOV SFDT, #55H Polling scheme MOV SFCM, #0DH Polling scheme MOV SFCM, #01H Interrupt scheme MOV SFCM, #81H Interrupt scheme MOV SFCM, #8DH
FIGURE
4-2: Block-Erase
FIGURE
4-1: Chip-Erase
4.2.4.2 Block-Erase The Block-Erase command erases all bytes in one of the two memory blocks (Block 0 or Block 1). The selection of the memory block to be erased is determined by the (SFAH[7]) of the SuperFlash Address Register. For SST89x5xRD2/RD, if SFAH[7] = 0b, the primary flash memory Block 0 is selected. If SFAH[7:4] = EH, the secondary flash memory Block 1 is selected. The Block-Erase command sequence for SST89x5xRD2/RD is as follows:
4.2.4.3 Sector-Erase The Sector-Erase command erases all of the bytes in a sector. The sector size for the flash memory blocks is 128 Bytes. The selection of the sector to be erased is determined by the contents of SFAH and SFAL.
FIGURE
4-3: Sector-Erase
S71255-05-000
5/06
35
SFDT register contains data Move data to SFDT MOV SFDT, #data
1255 F12.0
FIGURE
Polling scheme MOV SFCM, #0EH Interrupt scheme MOV SFCM, #8EH
4-5: Byte-Verify
4.2.4.6 Prog-SB3, Prog-SB2, Prog-SB1 Prog-SB3, Prog-SB2, Prog-SB1 commands are used to program the security bits (see Table 9-1). Completion of any of these commands, the security options will be updated immediately. Security bits previously in un-programmed state can be programmed by these commands. Prog-SB3, Prog-SB2 and Prog-SB1 commands should only reside in Block 1 or external code memory.
FIGURE
4-4: Byte-Program
4.2.4.5 Byte-Verify The Byte-Verify command allows the user to verify that the device has correctly performed an Erase or Program command. Byte-Verify command returns the data byte in SFDT if the command is successful. The user is required to check that the previous flash operation has fully completed before issuing a Byte-Verify. Byte-Verify command execution time is short enough that there is no need to poll for command completion and no interrupt is generated.
OR
OR
FIGURE
S71255-05-000
5/06
36
4-8: Enable-Clock-Double
A command that uses the polling method to detect flash operation completion should poll on the FLASH_BUSY bit (SFST[2]). When FLASH_BUSY de-asserts (logic 0), the device is ready for the next operation. MOVC instruction may also be used for verification of the Programming and Erase operation of the flash memory. MOVC instruction will fail if it is directed at a flash block that is still busy. 4.2.6 Interrupt Termination If interrupt termination is selected, (SFCM[7] is set), then an interrupt (INT1) will be generated to indicate flash operation completion. Under this condition, the INT1 becomes an internal interrupt source. The INT1# pin can now be used as a general purpose port pin and it cannot be the source of External Interrupt 1 during in-application programming. In order to use an interrupt to signal flash operation termination. EX1 and EA bits of IE register must be set. The IT1 bit of TCON register must also be set for edge trigger detection.
FIGURE
4.2.4.8 Enable-Clock-Double Enable-Clock-Double command is used to make the MCU run at 6 clocks per machine cycle. The standard (default) is 12 clocks per machine cycle (i.e. clock double command disabled).
S71255-05-000
5/06
37
1. SFCF[6]=1 enables IAP commands; SFCF[6]=0 disables IAP commands. 2. Interrupt/Polling enable for flash operation completion SFCM[7] = 1: Interrupt enable for flash operation completion 0: polling enable for flash operation completion 3. Chip-Erase only functions in IAP mode when EA#=0 (external memory execution) and device is not in level 4 locking. 4. X can be VIL or VIH, but no other value. 5. AH = Address high order byte 6. AL = Address low order byte 7. DI = Data Input, DO = Data Output, all other values are in hex. 8. SFAH[7:5] = 111b selects Block 1, SFAH[7] = 0b selects Block 0 9. Instruction must be located in Block 1 or external code memory. Note: DISIAPL pin in PLCC or TQFP will also disable IAP commands if it is externally pulled low when reset.
TABLE
5-1: Timer/Counter 0
TMOD Mode 0 Function 13-bit Timer 16-bit Timer 8-bit Auto-Reload Two 8-bit Timers 13-bit Timer 16-bit Timer 8-bit Auto-Reload Two 8-bit Timers Internal Control1 00H 01H 02H 03H 04H 05H 06H 07H External Control2 08H 09H 0AH 0BH 0CH 0DH 0EH 0FH
T5-1.0 1255
Used as Timer
1 2 3 0
Used as Counter
1 2 3
1. The Timer is turned ON/OFF by setting/clearing bit TR0 in the software. 2. The Timer is turned ON/OFF by the 1 to 0 transition on INT0# (P3.2) when TR0 = 1 (hardware control).
S71255-05-000
5/06
38
1. The Timer is turned ON/OFF by setting/clearing bit TR1 in the software. 2. The Timer is turned ON/OFF by the 1 to 0 transition on INT1# (P3.3) when TR1 = 1 (hardware control).
TABLE
5-3: Timer/Counter 2
Internal Control1 00H 01H 34H External Control2 08H 09H 36H
n=
Mode 16-bit Auto-Reload 16-bit Capture Used as Timer Baud rate generator receive and transmit same baud rate Receive only Transmit only Used as Counter 16-bit Auto-Reload 16-bit Capture
Where (RCAP2H, RCAP2L) = the contents of RCAP2H and RCAP2L taken as a 16-bit unsigned integer. In the Clock-Out mode, Timer 2 roll-overs will not generate an interrupt. This is similar to when it is used as a baud-rate generator. It is possible to use Timer 2 as a baud-rate generator and a clock generator simultaneously. Note, however, that the baud-rate and the Clock-Out frequency will not be the same.
1. Capture/Reload occurs only on timer/counter overflow. 2. Capture/Reload occurs on timer/counter overflow and a 1 to 0 transition on T2EX (P1.1) pin except when Timer 2 is used in the baud rate generating mode.
S71255-05-000
5/06
39
SM0/FE
SM1
SM2
REN
TB8
RB8
TI
RI
SCON
(98H)
Set FE bit if stop bit is 0 (framing error) (SMOD0 = 1) SM0 to UART mode control (SMOD0 = 0) SMOD1 SMOD0 BOF POF GF1 GF0 PD IDL
PCON
(87H)
FIGURE
S71255-05-000
5/06
40
RXD
D0 Start bit
D1
D2
D3
D4
D5
D6
D7 Stop bit
Data byte
RI SMOD0=X FE SMOD0=1
1255 F17.0
FIGURE
RXD
D0 Start bit
D1
D2
D3
D4
D5
D6
D7
Data byte
FIGURE
S71255-05-000
5/06
41
= 1111 0XX1
6.1.2.1 Using the Given Address to Select Slaves Any bits masked off by a 0 from SADEN become a dont care bit for the given address. Any bit masked off by a 1, becomes ANDED with SADDR. The dont cares provide flexibility in the user-defined addresses to address more slaves when using the given address. Shown in the example above, Slave 1 has been given an address of 1111 0001 (SADDR). The SADEN byte has been used to mask off bits to a given address to allow more combinations of selecting Slave 1 and Slave 2. In this case for the given addresses, the last bit (LSB) of Slave 1 is a dont care and the last bit of Slave 2 is a 1. To communicate with Slave 1 and Slave 2, the master would need to send an address with the last bit equal to 1 (e.g. 1111 0001) since Slave 1s last bit is a dont care and Slave 2s last bit has to be a 1. To communicate with Slave 1 alone, the master would send an address with the last bit equal to 0 (e.g. 1111 0000), since Slave 2s last bit is a 1. See the table below for other possible combinations.
Select Slave 1 Only Slave 1 Given Address 1111 0X0X Possible Addresses 1111 0000 1111 0100
Select Slave 2 Only Slave 2 Given Address 1111 0XX1 Possible Addresses 1111 0111 1111 0011
Select Slaves 1 and 2 Slaves 1 and 2 Possible Addresses 1111 0001 1111 0101
= 1111 0X0X
S71255-05-000
5/06
42
The user could use the possible addresses above to select slave 3 only. Another combination could be to select slave 2 and 3 only as shown below.
Select Slaves 2 and 3 Only Slaves 2 and 3 Possible Addresses 1111 0011
6.2.2 SPI Description The serial peripheral interface (SPI) allows high-speed synchronous data transfer between the SST89E/V5xRDx and peripheral devices or between several SST89E/V5xRDx devices. Figure 6-4 shows the correspondence between master and slave SPI devices. The SCK pin is the clock output and input for the master and slave modes, respectively. The SPI clock generator will start following a write to the master devices SPI data register. The written data is then shifted out of the MOSI pin on the master device into the MOSI pin of the slave device. Following a complete transmission of one byte of data, the SPI clock generator is stopped and the SPIF flag is set. An SPI interrupt request will be generated if the SPI Interrupt Enable bit (SPIE) and the Serial Port Interrupt Enable bit (ES) are both set. An external master drives the Slave Select input pin, SS#/ P1[4], low to select the SPI module as a slave. If SS#/P1[4] has not been driven low, then the slave SPI unit is not active and the MOSI/P1[5] port can also be used as an input port pin. CPHA and CPOL control the phase and polarity of the SPI clock. Figures 6-5 and 6-6 show the four possible combinations of these two bits.
More than one slave may have the same SADDR address as well, and a given address could be used to modify the address so that it is unique. 6.1.2.2 Using the Broadcast Address to Select Slaves Using the broadcast address, the master can communicate with all the slaves at once. It is formed by performing a logical OR of SADDR and SADEN with 0s in the result treated as dont cares.
Slave 1 1111 0001 = SADDR +1111 1010 = SADEN 1111 1X11 = Broadcast
Dont cares allow for a wider range in defining the broadcast address, but in most cases, the broadcast address will be FFH. On reset, SADDR and SADEN are 0. This produces an given address of all dont cares as well as a broadcast address of all dont cares. This effectively disables Automatic Addressing mode and allows the microcontroller to function as a standard 8051, which does not make use of this feature.
MSB Master LSB 8-bit Shift Register
MISO MISO
MOSI MOSI
SCK SS#
SCK SS#
1255 F19.0
VDD VSS
FIGURE
43
SCK Cycle # (for reference) SCK (CPOL=0) SCK (CPOL=1) MOSI (from Master) MISO (from Slave) SS# (to Slave)
MSB MSB
6 6
5 5
4 4
3 3
2 2
1 1
LSB LSB
1255 F20.0
FIGURE
SCK Cycle # (for reference) SCK (CPOL=0) SCK (CPOL=1) MOSI (from Master) MISO (from Slave) SS# (to Slave)
MSB MSB
6 6
5 5
4 4
3 3
2 2
1 1
LSB LSB
1255 F21.0
FIGURE
S71255-05-000
5/06
44
CLK (XTAL1)
Counter
WDT Reset
Internal Reset
Ext. RST
WDTC
WDTD
1255 F22.0
FIGURE
S71255-05-000
5/06
45
TABLE
CPS1 0 0 1 1
16 Bits Each
Module 0 Module 1
16 Bits
PCA Timer/Counter
FIGURE
46
1. In Mode 2, the overflow interrupt for Timer 0 does not need to be enabled.
The four possible CMOD timer modes with and without the overflow interrupt enabled are shown below. This list assumes that PCA will be left running during idle mode. TABLE 8-3: CMOD Values
CMOD Value PCA Count Pulse Selected Internal clock, fOSC/12 Internal clock, fOSC/4 Timer 0 overflow External clock at P1.2 Without Interrupt Enabled 00H 02H 04H 06H With Interrupt Enabled 01H 03H 05H 07H
T8-3.0 1255
The CCON register is associated with all PCA timer functions. It contains run control bits and flags for the PCA timer (CF) and all modules. To run the PCA the CR bit (CCON.6) must be set by software. Clearing the bit, will turn off PCA. When the PCA counter overflows, the CF (CCON.7) will be set, and an interrupt will be generated if the ECF bit in the CMOD register is set. The CF bit can only be cleared by software. Each module has its own timer interrupt or capture interrupt flag (CCF0 for module 0, CCF4 for module 4, etc.). They are set when either a match or capture occurs. These flags can only be cleared by software. (See PCA Timer/Counter Control Register (CCON) on page 26.)
S71255-05-000
5/06
47
Bits CAPN (CCAPMn.4) and CAPP (CCAPMn.5) determine whether the capture input will be active on a positive edge or negative edge. The CAPN bit enables the negative edge that a capture input will be active on, and the CAPP bit enables the positive edge. When both bits are set, both edges will be enabled and a capture will occur for either transition. The last bit in the register ECOM (CCAPMn.6) when set, enables the comparator function. Table 8-5 shows the CCAPMn settings for the various PCA functions. There are two additional register associated with each of the PCA modules: CCAPnH and CCAPnL. They are registers that hold the 16-bit count value when a capture occurs or a compare occurs. When a module is used in PWM mode, these registers are used to control the duty cycle of the output. See Figure 8-1.
CCAP0H PCA Module 0 CCAP0L Compare/Capture Registers CCAP1H PCA Module 1 CCAP1L Compare/Capture Registers CCAP2H PCA Module 2 CCAP2L Compare/Capture Registers CCAP3H PCA Module 3 CCAP3L Compare/Capture Registers CCAP4H PCA Module 4 CCAP4L Compare/Capture Registers
S71255-05-000
5/06
48
0 0 0 0 1 1 1 1
0 1 0 1 0 0 0 0
0 0 1 1 0 0 0 0
0 0 0 0 1 1 0 1
User should not write 1s to reserved bits. The value read from a reserved bit is indeterminate. y = 0, 1, 2, 3, 4 A 0 disables toggle function. A 1 enables toggle function on CEX[4:0] pin. For PCA WDT mode, also set the WDTE bit in the CMOD register to enable the reset output signal.
TABLE
0 0 0 1 1 1 1
1 0 1 0 0 0 0
0 1 1 0 0 0 0
0 0 0 1 1 0 1
User should not write 1s to reserved bits. The value read from a reserved bit is indeterminate. y = 0, 1, 2, 3, 4 No PCA interrupt is needed to generate the PWM. A 0 disables toggle function. A 1 enables toggle function on CEX[4:0] pin. Enabling an interrupt for the Watchdog Timer would defeat the purpose of the Watchdog Timer. For PCA WDT mode, also set the WDTE bit in the CMOD register to enable the reset output signal.
S71255-05-000
5/06
49
CCON
CF
CR
CCF4
CCF3
CCF2
CCF1
CCF0
CEXn
Capture
CCAPnH
CCAPnL
CCAPMn
n=0 to 4
TOGn 0
PWMn ECCFn 0
1255 F24.0
FIGURE
S71255-05-000
5/06
50
CR
CCF4
CCF3
CCF2
CCF1
CCF0
CCON
PCA Interrupt
CCAPnL
16-bit Comparator
Match
CH
CL
PCA Timer/Counter
MATn
TOGn 0
PWMn ECCFn 0
1255 F25.0
CCAPMn
n=0 to 4
FIGURE
S71255-05-000
5/06
51
CR
CCF4
CCF3
CCF2
CCF1
CCF0
CCON
PCA Interrupt
CCAPnL
16-bit Comparator
Match
Toggle CH CL CEXn
PCA Timer/Counter
MATn
TOGn
PWMn ECCFn 0
CCAPMn
n=0 to 4
1255 F26.0
FIGURE
S71255-05-000
5/06
52
CCAPnH
CCAPnL
Overflow
CL PCA Timer/Counter
MATn 0
TOGn 0
PWMn ECCFn 0
CCAPMn
n=0 to 4
1255 F27.0
FIGURE TABLE
PCA Timer Mode 1/12 Oscillator Frequency 1/4 Oscillator Frequency Timer 0 Overflow: 8-bit 16-bit 8-bit Auto-Reload External Input (Max)
S71255-05-000
5/06
53
This routine should not be part of an interrupt service routine. If the program counter goes astray and gets stuck in an infinite loop, interrupts will still be serviced and the watchdog will keep getting reset. Thus, the purpose of the watchdog would be defeated. Instead, call this subroutine from the main program of the PCA timer.
CPS1 CPS0 ECF
WDTE
CMOD
CCAP4L
Module 4
16-bit Comparator
Match
Reset
CH
CL
PCA Timer/Counter
MATn 1
TOGn X
PWMn ECCFn 0 X
CCAPM4
1255 F28.0
FIGURE
54
9.2 SoftLock
SoftLock allows flash contents to be altered under a secure environment. This lock option allows the user to update program code in the soft locked memory block through inapplication programming mode under a predetermined secure environment. For example, if Block 1 (8K) memory block is locked (hard locked or soft locked), and Block 0 memory block is soft locked, code residing in Block 1 can program Block 0. The following IAP mode commands
UUU/NN
Level 1 Level 2
PUU/SS
UPU/SS
UUP/LS
Level 3
UPP/LL PPU/LS PUP/LL UPP/LL
PPP/LL
Level 4
1255 F29.0
FIGURE
Note:
P = Programmed (Bit logic state = 0), U = Unprogrammed (Bit logic state = 1), N = Not Locked, L = Hard locked, S = Soft locked
S71255-05-000
5/06
55
U P U
P U P
P P U
P U P
P U P
U P P
1. P = Programmed (Bit logic state = 0), U = Unprogrammed (Bit logic state = 1). 2. SFST[7:5] = Security Lock Status Bits (SB1_i, SB2_i, SB3_i)
S71255-05-000
5/06
56
1. Location of MOVC or IAP instruction 2. Target address is the location of the byte being read 3. External host Byte-Verify access does not depend on a source address.
2006 Silicon Storage Technology, Inc. S71255-05-000 5/06
57
10.0 RESET
A system reset initializes the MCU and begins program execution at program memory location 0000H. The reset input for the device is the RST pin. In order to reset the device, a logic level high must be applied to the RST pin for at least two machine cycles (24 clocks), after the oscillator becomes stable. ALE, PSEN# are weakly pulled high during reset. During reset, ALE and PSEN# output a high level in order to perform a proper reset. This level must not be affected by external element. A system reset will not affect the 1 KByte of on-chip RAM while the device is running, however, the contents of the on-chip RAM during power up are indeterminate. Following reset, all Special Function Registers (SFR) return to their reset values outlined in Tables 3-5 to 3-9.
VDD
+
10F
VDD
SST89E/V5xRDx
XTAL1
C1
1255 F30.1
FIGURE
S71255-05-000
5/06
58
S71255-05-000
5/06
59
IP/IPH/IPA/IPAH REGISTERS
BOF
TF0
TF1
ECF
CF
CCFn
ECCFn
RI TI SPIF SPIE
TF2 EXF2
INDIVIDUAL ENABLES
GLOBAL DISABLE
FIGURE
60
Power-down Mode
CLK is stopped. On-chip SRAM and SFR data is maintained. ALE and PSEN# signals at a LOW level during power -down. External Interrupts are only active for level sensitive interrupts, if enabled.
S71255-05-000
5/06
61
13.0 SYSTEM CLOCK AND CLOCK OPTIONS 13.1 Clock Input Options and Recommended Capacitor Values for Oscillator
Shown in Figure 13-1 are the input and output of an internal inverting amplifier (XTAL1, XTAL2), which can be configured for use as an on-chip oscillator. When driving the device from an external clock source, XTAL2 should be left disconnected and XTAL1 should be driven. At start-up, the external oscillator may encounter a higher capacitive load at XTAL1 due to interaction between the amplifier and its feedback capacitance. However, the capacitance will not exceed 15 pF once the external signal meets the VIL and VIH specifications. Crystal manufacturer, supply voltage, and other factors may cause circuit performance to differ from one application to another. C1 and C2 should be adjusted appropriately for each design. Table 13-1, shows the typical values for C1 and C2 vs. crystal type for various frequencies TABLE 13-1:Recommended Values for C1 and C2 by Crystal Type
Crystal Quartz Ceramic C1 = C2 20-30pF 40-50pF
T13-1.0 1255
More specific information about on-chip oscillator design can be found in the FlashFlex51 Oscillator Circuit Design Considerations application note.
XTAL1
VSS
1255 F32.0
SST89E5xRD2/RD SST89V5xRD2/RD
12 12
40 33
6 6
20 16
T13-2.0 1255
S71255-05-000
5/06
62
Unit
C C
V V MHz MHz
S71255-05-000
5/06
63
Test Method JEDEC Standard A117 JEDEC Standard A103 JEDEC Standard 78
T14-2.0 1255
ILTH1
1. This parameter is measured only for initial qualification and after a design or process change that could affect this parameter.
Units s s
T14-4.0 1255
TPU-WRITE1
1. This parameter is measured only for initial qualification and after a design or process change that could affect this parameter
TABLE 14-5: Pin Impedance (VDD=3.3V, TA=25 C, f=1 Mhz, other pins open)
Parameter CI/O
1
Maximum 15 pF 12 pF 20 nH
T14-5.0 1255
CIN1 LPIN2
1. This parameter is measured only for initial qualification and after a design or process change that could affect this parameter. 2. Refer to PCI spec.
S71255-05-000
5/06
64
Max 0.2VDD - 0.1 VDD + 0.5 VDD + 0.5 1.0 0.3 0.45 1.0 0.3 0.45
Units V V V V V V V V V V V V V V
VDD - 0.3 VDD - 0.7 VDD - 1.5 VDD - 0.3 VDD - 0.7 3.85 4.15 -75 -650 10 40 225 15
V A A A K pF
VIN = 0.4V VIN = 2V 0.45 < VIN < VDD-0.3 @ 1 MHz, 25C
88 50 42 80 90
mA mA mA A A
T14-6.2 1255
S71255-05-000
5/06
65
S71255-05-000
5/06
66
Max 0.7 VDD + 0.5 VDD + 0.5 1.0 0.3 0.45 1.0 0.3 0.45
Units V V V V V V V V V V V V V V V A A A K pF
47 30
mA mA
1. Under steady state (non-transient) conditions, IOL must be externally limited as follows: Maximum IOL per port pin: 15mA Maximum IOL per 8-bit port: 26mA Maximum IOL total for all outputs: 71mA If IOL exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test conditions. 2. Capacitive loading on Ports 0 and 2 may cause spurious noise to be superimposed on the VOLs of ALE and Ports 1 and 3. The noise due to external bus capacitance discharging into the Port 0 and 2 pins when the pins make 1-to-0 transitions during bus operations. In the worst cases (capacitive loading > 100pF), the noise pulse on the ALE pin may exceed 0.8V. In such cases, it may be desirable to qualify ALE with a Schmitt Trigger, or use an address latch with a Schmitt Trigger STROBE input. 3. Load capacitance for Port 0, ALE and PSEN#= 100pF, load capacitance for all other outputs = 80pF.
S71255-05-000
5/06
67
S71255-05-000
5/06
68
30 25 20 IDD (mA) 15 10 5 0 5 Typical Active IDD Typical Idle IDD 10 15 20 25 Internal Clock Frequency (MHz) 30 35
1255 F33.0
FIGURE
50 Maximum Active IDD 40 IDD (mA) 30 20 10 0 5 10 15 20 25 Internal Clock Frequency (MHz) Typical Active IDD Typical Idle IDD 30 35 40
1255 F34.0
FIGURE
S71255-05-000
5/06
69
1/TCLCL 1/2TCLCL TLHLL TAVLL TLLAX TLLIV TLLPL TPLPH TPLIV TPXIX TPXIZ TPXAV TAVIV TPLAZ TRLRH TWLWH TRLDV TRHDX TRHDZ TLLDV TAVDV TLLWL TAVWL
x1 Mode Oscillator Frequency x2 Mode Oscillator Frequency ALE Pulse Width Address Valid to ALE Low Address Hold After ALE Low ALE Low to Valid Instr In ALE Low to PSEN# Low PSEN# Pulse Width PSEN# Low to Valid Instr In Input Instr Hold After PSEN# Input Instr Float After PSEN# PSEN# to Address valid Address to Valid Instr In PSEN# Low to Address Float RD# Pulse Width Write Pulse Width (WE#) RD# Low to Valid Data In Data Hold After RD# Data Float After RD# ALE Low to Valid Data In Address to Valid Data In ALE Low to RD# or WR# Low Address to RD# or WR# Low
S71255-05-000
5/06
70
Data Hold After WR# Data Valid to WR# High Data Valid to WR# High to Low Transition
RD# Low to Address Float RD# to WR# High to ALE High
T14-8.0 1255
Explanation of Symbols Each timing symbol has 5 characters. The first character is always a T (stands for time). The other characters, depending on their positions, stand for the name of a signal or the logical status of that signal. The following is a list of all the characters and what they stand for. A: C: D: H: I: L: P: Address Clock Input data Logic level HIGH Instruction (program memory contents) Logic level LOW or ALE PSEN# Q: R: T: V: W: X: Z: Output data RD# signal Time Valid WR# signal No longer a valid logic level High Impedance (Float)
For example: TAVLL = Time from Address Valid to ALE Low TLLPL = Time from ALE Low to PSEN# Low
S71255-05-000
5/06
71
TLHLL
ALE
TAVLL TLLPL TPLAZ TLLAX TLLIV TPLIV TPXAV TPXIZ TPXIX INSTR IN A0 - A7 TPLPH
PSEN#
PORT 0
A0 - A7 TAVIV
PORT 2
A8 - A15
A8 - A15
1255 F35.0
FIGURE
TLHLL
ALE
TWHLH
PSEN#
RD#
TAVLL
TRHDZ TRHDX
PORT 0
DATA IN
INSTR IN
PORT 2
FIGURE
S71255-05-000
5/06
72
TLHLL
ALE
TWHLH
PSEN#
TLLWL TWLWH
WR#
TAVLL
PORT 0
DATA OUT
INSTR IN
PORT 2
FIGURE
VDD - 0.5
0.45 V
FIGURE
S71255-05-000
5/06
73
INSTRUCTION ALE
1
TXHDV VALID VALID
2
TXHDX VALID
7
SET TI
VALID
VALID
VALID
VALID
VALID
SET R I
1255 F39.0
FIGURE
VIHT
VHT VLT
1255 F40.0
VILT
AC Inputs during testing are driven at VIHT (VDD -0.5V) for Logic "1" and VILT (0.45V) for a Logic "0". Measurement reference points for inputs and outputs are at VHT (0.2VDD + 0.9) and VLT (0.2VDD - 0.1)
Note: VHT- VHIGH Test VLT- VLOW Test VIHT-VINPUT HIGH Test VILT- VINPUT LOW Test
For timing purposes, a port pin is no longer floating when a 100 mV change from load voltage occurs, and begins to float when a 100 mV change from the loaded VOH/VOL level occurs. IOL/IOH = 20mA.
FIGURE
FIGURE
S71255-05-000
5/06
74
TO TESTER
TO DUT CL
1255 F42.0
VDD VDD VDD RST P0 EA# RST IDD VDD VDD P0 EA#
FIGURE 14-13: IDD Test Condition, Power-down Mode TABLE 14-11: Flash Memory Programming/ Verification Parameters1
Parameter2
VDD
Units ms ms ms s s
T14-11.0 1255
Chip-Erase Time Block-Erase Time Sector-Erase Time Byte-Program Time3 Re-map or Security bit Program Time
1. For IAP operations, the program execution overhead must be added to the above timing parameters. 2. Program and Erase times will scale inversely proportional to programming clock frequency. 3. Each byte must be erased before programming.
S71255-05-000
5/06
75
1. Environmental suffix E denotes non-Pb solder. SST non-Pb solder devices are RoHS Compliant. 2. Environmental suffix F denotes non-Pb/non-SN solder. SST non-Pb/non-Sn solder devices are RoHS Compliant.
S71255-05-000
5/06
76
S71255-05-000
5/06
77
S71255-05-000
5/06
78
C L
1 Pin #1 Identifier
.065 .075 2.020 2.070 12 4 places
.220 Max.
.063 .090
.045 .055
.015 .022
.100 BSC
.100 .200
0 15
Note:
1. Complies with JEDEC publication 95 MS-011 AC dimensions (except as noted), although some dimensions may be more stringent. = JEDEC min is .115; SST min is less stringent 2. All linear dimensions are in inches (min/max). 40-pdip-PI-7 3. Dimensions do not include mold flash. Maximum allowable mold flash is .010 inches.
FIGURE
16-1: 40-pin Plastic Dual In-line Pins (PDIP) SST Package Code: PI
TOP VIEW
Optional Pin #1 Identifier .042 .048 .685 .695 .646 .656
1 44
SIDE VIEW
.147 .158 .025 R. .045
BOTTOM VIEW
.100 .112
Note:
1. Complies with JEDEC publication 95 MS-018 AC dimensions (except as noted), although some dimensions may be more stringent. = JEDEC min is .650; SST min is less stringent 2. All linear dimensions are in inches (min/max). 3. Dimensions do not include mold flash. Maximum allowable mold flash is .008 inches. 4. Coplanarity: 4 mils.
FIGURE
16-2: 44-lead Plastic Lead Chip Carrier (PLCC) SST Package Code: NJ
S71255-05-000 5/06
79
Pin #1 Identifier
44
34
33
11
23
12
22
.09 .20 .95 1.05 .05 .15 .45 .75 1.00 ref
44-tqfp-TQJ-7
0- 7
Note:
1. Complies with JEDEC publication 95 MS-026 ACB dimensions, although some dimensions may be more stringent. 2. All linear dimensions are in millimeters (min/max). 3. Coplanarity: 0.1 (0.05) mm. 4. Package body dimensions do not include mold flash. Maximum allowable mold flash is .25mm.
1mm
FIGURE
16-3: 44-lead Thin Quad Flat Pack (TQFP) SST Package Code: TQJ
TOP VIEW
SIDE VIEW
0.2
BOTTOM VIEW
See notes 2 and 3 Pin #1
Pin #1
0.05 Max
0.45 0.35
Note: 1. Complies with JEDEC JEP95 MO-220I, variant WJJD-5 except external paddle nominal dimensions. 1mm 2. From the bottom view, the pin #1 indicator may be either a 45-degree chamfer or a half-circle notch. 3. The external paddle is electrically connected to the die back-side and possibly to certain VSS leads. 40-wqfn-6x6-QI-1 This paddle should be soldered to the PC board; it is suggested to connect this paddle to the VSS of the unit. Connection of this paddle to any other voltage potential will result in shorts and/or electrical malfunction of the device. 4. Untoleranced dimensions are nominal target dimensions. 5. All linear dimensions are in millimeters (max/min).
FIGURE
16-4: 40-contact Very-very-thin Quad Flat No-lead (WQFN) SST Package Code: QI
S71255-05-000 5/06
80
Initial Release
Changed MPNs of SST89E/V5xRD2 PDIP devices to SST89E/V5xRD Removed SST89E/V516RD2 devices and associated MPNs Removed all industrial temperature PDIP devices and associated MPNs Clarified Surface Mount Temperatures in Absolute Maximum Stress Ratings on page 63 Changes in Tables 14-6 and 14-7: Removed the minimum VDD=2V for IDD Power-down (also Figure 14-13) Removed the 12 MHz values for IDD Corrected MPN breakdown definition for 2 to read Port 4 present Corrected the SPI control Register definition for CPHA on page 29 Added SST89E/V5xRD industrial temperature PDIP devices and associated MPNs Added RoHS compliance information on page 1 and in the Product Ordering Information on page 76 Corrected the solder temperature profile under Absolute Maximum Stress Ratings on page 63 Removed references to External Host Mode programming Made changes to add WQFN package Revised Figure 3-1 on page 11. Changed 7HHH to 1HHH. Revised Figure 3-1 on page 11. Changed 8000H to 2000H. Changed document status from Preliminary Specification to Data Sheet.
02
Mar 2005
03 04 05
Silicon Storage Technology, Inc. 1171 Sonora Court Sunnyvale, CA 94086 Telephone 408-735-9110 Fax 408-735-9036 www.SuperFlash.com or www.sst.com
2006 Silicon Storage Technology, Inc. S71255-05-000 5/06
81