0% found this document useful (0 votes)
78 views91 pages

89E516RD2 SiliconStorageTechnology PDF

Uploaded by

Komsan Rodkaew
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views91 pages

89E516RD2 SiliconStorageTechnology PDF

Uploaded by

Komsan Rodkaew
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 91

FlashFlex51 MCU

SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2


SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
SST89E/V516 / 58 / 54 / 52RD2 FlashFlex51 MCU Preliminary Specifications
FEATURES:
• 8-bit 8051-Compatible Microcontroller (MCU) • Ten Interrupt Sources at 4 Priority Levels
with Embedded SuperFlash Memory – Four External Interrupt Inputs
– Fully Software Compatible • Programmable Watchdog Timer (WDT)
– Development Toolset Compatible
– Pin-For-Pin Package Compatible • Programmable Counter Array (PCA)
• Four 8-bit I/O Ports (32 I/O Pins) and
• SST89E5xxRD2 Operation
One 4-bit Port
– 0 to 40 MHz at 5V
• Second DPTR register
• SST89V5xxRD2 Operation
• Low EMI Mode (Inhibit ALE)
– 0 to 33 MHz at 3V
• SPI Serial Interface
• 1 KByte Internal RAM
• Standard 12 Clocks per cycle, the device has an
• Dual Block SuperFlash EEPROM option to double the speed to 6 clocks per cycle.
– 8/16/32/64 KByte primary block + • TTL- and CMOS-Compatible Logic Levels
8 KByte secondary block
• Brown-out Detection
(128-Byte sector size for both blocks)
– Individual Block Security Lock with SoftLock • Low Power Modes
– Concurrent Operation during – Power-down Mode with External Interrupt Wake-up
In-Application Programming (IAP) – Idle Mode
– Memory Overlay for Interrupt Support during IAP • Temperature Ranges:
• Support External Address Range up to 64 – Commercial (0°C to +70°C)
KByte of Program and Data Memory – Industrial (-40°C to +85°C)
• Three High-Current Drive Ports (16 mA each) • Packages Available
• Three 16-bit Timers/Counters – 44-lead PLCC
• Full-Duplex, Enhanced UART – 40-pin PDIP (Port 4 feature not available)
– Framing Error Detection – 44-lead TQFP
– Automatic Address Recognition

PRODUCT DESCRIPTION
The SST89E5xxRD2 and SST89V5xxRD2 are members In addition to the 16/24/40/72 KByte of EEPROM program
of the FlashFlex51 family of 8-bit microcontroller products memory on-chip, the devices can address up to 64 KByte
designed and manufactured with SST’s patented and pro- of external program memory. In addition to 1024 x8 bits of
prietary SuperFlash CMOS semiconductor process tech- on-chip RAM, up to 64 KByte of external RAM can be
nology. The split-gate cell design and thick-oxide tunneling addressed.
injector offer significant cost and reliability benefits for SST’s
The flash memory blocks can be programmed via a stan-
customers. The devices use the 8051 instruction set and
dard 87C5x OTP EPROM programmer fitted with a special
are pin-for-pin compatible with standard 8051 microcontrol-
adapter and the firmware for SST’s devices. During power-
ler devices.
on reset, the devices can be configured as either a slave to
The devices come with 16/24/40/72 KByte of on-chip flash an external host for source code storage or a master to an
EEPROM program memory which is partitioned into 2 external host for an in-application programming (IAP) oper-
independent program memory blocks. The primary Block 0 ation. The devices are designed to be programmed in-sys-
occupies 8/16/32/64 KByte of internal program memory tem and in-application on the printed circuit board for
space and the secondary Block 1 occupies 8 KByte of maximum flexibility. The devices are pre-programmed with
internal program memory space. an example of the bootstrap loader in the memory, demon-
strating the initial user program code loading or subsequent
The 8-KByte secondary block can be mapped to the lowest
user code updating via the IAP operation. The sample
location of the 8/16/32/64 KByte address space; it can also
bootstrap loader is available for the user’s reference and
be hidden from the program counter and used as an inde-
convenience only; SST does not guarantee its functionality
pendent EEPROM-like data memory.
or usefulness. Chip-Erase or Block-Erase operations will
erase the pre-programmed sample code.

©2004 Silicon Storage Technology, Inc. The SST logo, SuperFlash, and FlashFlex are registered trademarks of Silicon Storage Technology, Inc.
S71255-00-000 3/04 These specifications are subject to change without notice.
1
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TABLE OF CONTENTS

PRODUCT DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

LIST OF FIGURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

LIST OF TABLES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

1.0 FUNCTIONAL BLOCKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.0 PIN ASSIGNMENTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8


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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.4 Expanded Data RAM Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5 Dual Data Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.6 Special Function Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.0 FLASH MEMORY PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35


4.1 External Host Programming Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.2 In-Application Programming Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

5.0 TIMERS/COUNTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5.1 Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5.2 Timer Set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5.3 Programmable Clock-Out. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

6.0 SERIAL I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45


6.1 Full-Duplex, Enhanced UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.2 Serial Peripheral Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

7.0 WATCHDOG TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

8.0 PROGRAMMABLE COUNTER ARRAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51


8.1 PCA Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.2 PCA Timer/Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.3 Compare/Capture Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


2
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
9.0 SECURITY LOCK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.1 Hard Lock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.2 SoftLock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.3 Security Lock Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.4 Read Operation Under Lock Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

10.0 RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
10.1 Power-on Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
10.2 Software Reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
10.3 Brown-out Detection Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

11.0 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
11.1 Interrupt Priority and Polling Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

12.0 POWER-SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66


12.1 Idle Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
12.2 Power-down Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

13.0 SYSTEM CLOCK AND CLOCK OPTIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67


13.1 Clock Input Options and Recommended Capacitor Values for Oscillator . . . . . . . . . . . . . . . . . . . . . . 67
13.2 Clock Doubling Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

14.0 ELECTRICAL SPECIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68


14.1 DC Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
14.2 AC Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
14.3 Flash Memory Programming Timing Diagrams with External Host Mode . . . . . . . . . . . . . . . . . . . . . . 82

15.0 PRODUCT ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

16.0 PACKAGING DIAGRAMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


3
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

LIST OF FIGURES
FIGURE 2-1: Pin Assignments for 40-pin PDIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
FIGURE 2-2: Pin Assignments for 44-lead TQFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
FIGURE 2-3: Pin Assignments for 44-lead PLCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
FIGURE 3-1: Program Memory Organization for 8 KByte SST89E/V52RD2. . . . . . . . . . . . . . . . . . . . . . . . 11
FIGURE 3-2: Program Memory Organization for 16 KByte SST89E/V54RD2. . . . . . . . . . . . . . . . . . . . . . . 12
FIGURE 3-3: Program Memory Organization for 32 KByte SST89E/V58RD2. . . . . . . . . . . . . . . . . . . . . . . 12
FIGURE 3-4: Program Memory Organization for 64 KByte SST89E/V516RD2. . . . . . . . . . . . . . . . . . . . . . 13
FIGURE 3-5: Internal and External Data Memory Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
FIGURE 3-6: Dual Data Pointer Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
FIGURE 4-1: I/O Pin Assignments for External Host Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
FIGURE 6-1: Framing Error Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
FIGURE 6-2: UART Timings in Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
FIGURE 6-3: UART Timings in Modes 2 and 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
FIGURE 6-4: SPI Master-slave Interconnection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
FIGURE 6-5: SPI Transfer Format with CPHA = 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
FIGURE 6-6: SPI Transfer Format with CPHA = 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
FIGURE 7-1: Block Diagram of Programmable Watchdog Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
FIGURE 8-1: PCA Timer/Counter and Compare/Capture Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
FIGURE 8-2: PCA Capture Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
FIGURE 8-3: PCA Compare Mode (Software Timer). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
FIGURE 8-4: PCA High Speed Output Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
FIGURE 8-5: PCA Pulse Width Modulator Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
FIGURE 8-6: PCA Watchdog Timer (Module 4 only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
FIGURE 9-1: Security Lock Levels. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
FIGURE 10-1: Power-on Reset Circuit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
FIGURE 11-1: Interrupt Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
FIGURE 13-1: Oscillator Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
FIGURE 14-1: IDD vs. Frequency for 3V SST89V5xxRD2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
FIGURE 14-2: IDD vs. Frequency for 5V SST89E5xxRD2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
FIGURE 14-3: External Program Memory Read Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
FIGURE 14-4: External Data Memory Read Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
FIGURE 14-5: External Data Memory Write Cycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
FIGURE 14-6: External Clock Drive Waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
FIGURE 14-7: Shift Register Mode Timing Waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
FIGURE 14-8: AC Testing Input/Output Test Waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
FIGURE 14-9: Float Waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
FIGURE 14-10: A Test Load Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
FIGURE 14-11: IDD Test Condition, Active Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
FIGURE 14-12: IDD Test Condition, Idle Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
FIGURE 14-13: IDD Test Condition, Power-down Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
FIGURE 14-14: Read-ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


4
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
FIGURE 14-15: Select-Block1 / Select-Block0 (For SST89E/V516RD2 only) . . . . . . . . . . . . . . . . . . . . . . . 82
FIGURE 14-16: Chip-Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
FIGURE 14-17: Block-Erase for SST89E/V516RD2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
FIGURE 14-18: Block-Erase for SST89E/V5xRD2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
FIGURE 14-19: Sector-Erase. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
FIGURE 14-20: Byte-Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
FIGURE 14-21: Prog-SB1 / Prog-SB2 / Prog-SB3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
FIGURE 14-22: Prog-SC0 / Prog-SC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
FIGURE 14-23: Byte-Verify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

LIST OF TABLES
TABLE 2-1: Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
TABLE 3-1: SFCF Values for Program Memory Block Switching for SST89E/V516RD2 . . . . . . . . . . . . . 13
TABLE 3-2: SFCF Values for Program Memory Block Switching for SST89E/V5xRD2 . . . . . . . . . . . . . . 13
TABLE 3-3: SFCF Values Under Different Reset Conditions (SST89E/V5xRD2) . . . . . . . . . . . . . . . . . . . 14
TABLE 3-4: SFCF Values Under Different Reset Conditions (SST89E/V516RD2) . . . . . . . . . . . . . . . . . . 14
TABLE 3-5: External Data Memory RD#, WR# with EXTRAM bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
TABLE 3-6: FlashFlex51 SFR Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
TABLE 3-7: CPU related SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
TABLE 3-8: Flash Memory Programming SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
TABLE 3-9: Watchdog Timer SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
TABLE 3-10: Timer/Counters SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
TABLE 3-11: Interface SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
TABLE 3-12: PCA SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
TABLE 4-1: External Host Mode Commands for SST89E/V5xRD2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
TABLE 4-2: External Host Mode Commands for SST89E/V516RD2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
TABLE 4-3: Product Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
TABLE 4-4: Additional Read Commands in External Host Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
TABLE 4-5: IAP Address Resolution for SST89E/V516RD2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
TABLE 4-6: IAP Commands for SST89E/V516RD2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
TABLE 4-7: IAP Commands for SST89E/V5xRD2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
TABLE 5-1: Timer/Counter 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
TABLE 5-2: Timer/Counter 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
TABLE 5-3: Timer/Counter 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
TABLE 8-1: PCA Timer/Counter Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
TABLE 8-2: PCA Timer/Counter Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
TABLE 8-3: CMOD Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
TABLE 8-4: PCA High and Low Register Compare/Capture Modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
TABLE 8-5: PCA Module Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
TABLE 8-6: PCA Module Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
TABLE 8-7: Pulse Width Modulator Frequencies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


5
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 9-1: Security Lock Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
TABLE 9-2: Security Lock Access Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
TABLE 11-1: Interrupt Polling Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
TABLE 12-1: Power Saving Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
TABLE 13-1: Recommended Values for C1 and C2 by Crystal Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
TABLE 13-2: Clock Doubling Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
TABLE 14-1: Operating Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
TABLE 14-2: Reliability Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
TABLE 14-3: AC Conditions of Test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
TABLE 14-4: Recommended System Power-up Timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
TABLE 14-5: Pin Impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
TABLE 14-6: DC Electrical Characteristics for SST89E5xxRD2: VDD = 4.5-5.5V . . . . . . . . . . . . . . . . . . . 70
TABLE 14-7: DC Electrical Characteristics for SST89V5xxRD2: VDD = 2.7-3.6V . . . . . . . . . . . . . . . . . . . 72
TABLE 14-8: AC Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
TABLE 14-9: External Clock Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
TABLE 14-10: Serial Port Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
TABLE 14-11: External Mode Flash Memory Programming/Verification Parameters . . . . . . . . . . . . . . . . 81
TABLE 16-1: Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


6
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

1.0 FUNCTIONAL BLOCKS

FUNCTIONAL BLOCK DIAGRAM

8051
CPU Core

ALU,
ACC,
B-Register,
Instruction Register,
Program Counter,
Timing and Control
Interrupt
Oscillator 10 Interrupts
Control

Watchdog Timer Flash Control Unit

SuperFlash
EEPROM RAM
Primary 1K x8
Block
8K/16K/32K/64K x8
8
I/O Port 0 I/O
Secondary
Block 8
Security
8K x8 I/O Port 1 I/O
Lock
8
I/O Port 2 I/O

Timer 0 (16-bit) 8
I/O Port 3 I/O

Timer 1 (16-bit) 4
I/O Port 4 I/O

Timer 2 (16-bit) SPI

PCA
Enhanced
UART

1255 B1.0

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


7
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

2.0 PIN ASSIGNMENTS

(T2) P1.0 1 40 VDD


(T2 EX) P1.1 2 39 P0.0 (AD0)

P1.4 (SS# / CEX1)


(ECI) P1.2 3 38 P0.1 (AD1)

P1.1 (T2 EX)


P1.3 (CEX0)

P4.2/INT3#

P0.0 (AD0)
P0.1 (AD1)
P0.2 (AD2)
P0.3 (AD3)
P1.2 (ECI)
37 P0.2 (AD2)

P1.0 (T2)
(CEX0) P1.3 4
36 P0.3 (AD3)

VDD
(CEX1 / SS#) P1.4 5
(CEX2 / MOSI) P1.5 6 35 P0.4 (AD4)
(CEX3 / MISO) P1.6 7 34 P0.5 (AD5) 44 43 42 41 40 39 38 37 36 35 34
40-pin PDIP
(CEX2 / MOSI) P1.5 1 33 P0.4 (AD4)
(CEX4 / SCK) P1.7 8 Top View 33 P0.6 (AD6)
(CEX3 / MISO) P1.6 2 32 P0.5 (AD5)
RST 9 32 P0.7 (AD7)
(CEX4 / SCK) P1.7 3 31 P0.6 (AD6)
(RXD) P3.0 10 31 EA# RST 4 30 P0.7 (AD7)
(TXD) P3.1 11 30 ALE/PROG# (RXD) P3.0 5 29 EA#
INT2#/P4.3
44-lead TQFP
(INT0#) P3.2 12 29 PSEN# 6 28 P4.1
(TXD) P3.1 7
Top View 27 ALE/PROG#
(INT1#) P3.3 13 28 P2.7 (A15)
(INT0#) P3.2 8 26 PSEN#
(T0) P3.4 14 27 P2.6 (A14) (INT1#) P3.3 9 25 P2.7 (A15)
(T1) P3.5 15 26 P2.5 (A13) (T0) P3.4 10 24 P2.6 (A14)
25 P2.4 (A12) (T1) P3.5 11 23 P2.5 (A13)
(WR#) P3.6 16 12 13 14 15 16 17 18 19 20 21 22
(RD#) P3.7 17 24 P2.3 (A11)
23 P2.2 (A10)

(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
XTAL2 18
22 P2.1 (A9) 1255 44-tqfp TQJ P2.0
XTAL1 19
VSS 20 21 P2.0 (A8)

1255 40-pdip PI P1.0

FIGURE 2-1: PIN ASSIGNMENTS FOR 40-PIN PDIP FIGURE 2-2: PIN ASSIGNMENTS FOR 44-LEAD TQFP
P1.4 (SS# / CEX1)

P1.1 (T2 EX)


P1.3 (CEX0)

P4.2/INT3#

P0.0 (AD0)
P0.1 (AD1)
P0.2 (AD2)
P0.3 (AD3)
P1.2 (ECI)

P1.0 (T2)

VDD

6 5 4 3 2 1 44 43 42 41 40
(CEX2 / MOSI) P1.5 7 39 P0.4 (AD4)
(CEX3 / MISO) P1.6 8 38 P0.5 (AD5)
(CEX4 / SCK) P1.7 9 37 P0.6 (AD6)
RST 10 36 P0.7 (AD7)
(RXD) P3.0 11 44-lead PLCC 35 EA#
INT2#/P4.3 12 Top View 34 P4.1
(TXD) P3.1 13 33 ALE/PROG#
(INT0#) P3.2 14 32 PSEN#
(INT1#) P3.3 15 31 P2.7 (A15)
(T0) P3.4 16 30 P2.6 (A14)
(T1) P3.5 17 29 P2.5 (A13)
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

1255 44-plcc NJ P3.0

FIGURE 2-3: PIN ASSIGNMENTS FOR 44-LEAD PLCC

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


8
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

2.1 Pin Descriptions

TABLE 2-1: PIN DESCRIPTIONS (1 OF 2)


Symbol Type1 Name and Functions
P0[7:0] I/O Port 0: Port 0 is an 8-bit open drain bi-directional I/O port. As an output port each pin can
sink several LS TTL inputs. Port 0 pins float that have ‘1’s written to them, and in this state
can be used as high-impedance inputs. Port 0 is also the multiplexed low-order address and
data bus during accesses to external memory. In this application, it uses strong internal pull-
ups when transitioning to VOH. Port 0 also receives the code bytes during the external host
mode programming, and outputs the code bytes during the external host mode verification.
External pull-ups are required during program verification.
P1[7:0] I/O with internal Port 1: Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 1 output buff-
pull-ups ers can drive LS TTL inputs. Port 1 pins are pulled high by the internal pull-ups when “1”s
are written to them and can be used as inputs in this state. As inputs, Port 1 pins that are
externally pulled low will source current because of the internal pull-ups. P1[5, 6, 7] have
high current drive of 16 mA. Port 1 also receives the low-order address bytes during the
external host mode programming and verification.
P1[0] I/O T2: External count input to Timer/Counter 2 or Clock-out from Timer/Counter 2
P1[1] I T2EX: Timer/Counter 2 capture/reload trigger and direction control
P1[2] I ECI: PCA Timer/Counter External Input:
This signal is the external clock input for the PCA timer/counter.
P1[3] I/O CEX0: Compare/Capture Module External I/O
Each compare/capture module connects to a Port 1 pin for external I/O. When not used by
the PCA, this pin can handle standard I/O.
P1[4] I/O SS#: Master Input or Slave Output for SPI.
OR
CEX1: Compare/Capture Module External I/O
P1[5] I/O MOSI: Master Output line, Slave Input line for SPI
OR
CEX2: Compare/Capture Module External I/O
P1[6] I/O MISO: Master Input line, Slave Output line for SPI
OR
CEX3: Compare/Capture Module External I/O
P1[7] I/O SCK: Master clock output, slave clock input line for SPI
OR
CEX4: Compare/Capture Module External I/O
P2[7:0] I/O with internal Port 2: Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. Port 2 pins are pulled
pull-up high by the internal pull-ups when “1”s are written to them and can be used as inputs in this
state. As inputs, Port 2 pins that are externally pulled low will source current because of the
internal pull-ups. Port 2 sends the high-order address byte during fetches from external Pro-
gram memory and during accesses to external Data Memory that use 16-bit address
(MOVX@DPTR). In this application, it uses strong internal pull-ups when transitioning to
VOH. Port 2 also receives some control signals and a partial of high-order address bits dur-
ing the external host mode programming and verification.
P3[7:0] I/O with internal Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3 output buff-
pull-up ers can drive LS TTL inputs. Port 3 pins are pulled high by the internal pull-ups when “1”s
are written to them and can be used as inputs in this state. As inputs, Port 3 pins that are
externally pulled low will source current because of the internal pull-ups. Port 3 also
receives some control signals and a partial of high-order address bits during the external
host mode programming and verification.
P3[0] I RXD: Universal Asynchronous Receiver/Transmitter (UART) - Receive input
P3[1] O TXD: UART - Transmit output
P3[2] I INT0#: External Interrupt 0 Input

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


9
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 2-1: PIN DESCRIPTIONS (CONTINUED) (2 OF 2)
Symbol Type1 Name and Functions
P3[3] I INT1#: External Interrupt 1 Input
P3[4] I T0: External count input to Timer/Counter 0
P3[5] I T1: External count input to Timer/Counter 1
P3[6] O WR#: External Data Memory Write strobe
P3[7] O RD#: External Data Memory Read strobe
PSEN# I/O Program Store Enable: PSEN# is the Read strobe to External Program Store. When the
device is executing from Internal Program Memory, PSEN# is inactive (VOH). When the
device is executing code from External Program Memory, PSEN# is activated twice each
machine cycle, except when access to External Data Memory while one PSEN# activation
is skipped in each machine cycle. A forced high-to-low input transition on the PSEN# pin
while the RST input is continually held high for more than ten machine cycles will cause the
device to enter External Host mode for programming.
RST I Reset: While the oscillator is running, a high logic state on this pin for two machine cycles
will reset the device. After a reset, if the PSEN# pin is driven by a high-to-low input transition
while the RST input pin is held high, the device will enter the External Host mode, otherwise
the device will enter the Normal operation mode.
EA# I External Access Enable: EA# must be driven to VIL in order to enable the device to fetch
code from the External Program Memory. EA# must be driven to VIH for internal program
execution. However, Security lock level 4 will disable EA#, and program execution is only
possible from internal program memory. The EA# pin can tolerate a high voltage2 of 12V.
ALE/PROG# I/O Address Latch Enable: ALE is the output signal for latching the low byte of the address
during an access to external memory. This pin is also the programming pulse input
(PROG#) for flash programming. Normally the ALE3 is emitted at a constant rate of 1/6 the
crystal frequency4 and can be used for external timing and clocking. One ALE pulse is
skipped during each access to external data memory. However, if AO is set to 1, ALE is dis-
abled.
P4[3:0]5 I/O with internal Port 4: Port 4 is an 4-bit bi-directional I/O port with internal pull-ups. The port 4 output buff-
pull-ups ers can drive LS TTL inputs. Port 4 pins are pulled high by the internal pull-ups when ‘1’s are
written to them and can be used as inputs in this state. As inputs, port 4 pins that are exter-
nally pulled low will source current because of the internal pull-ups.
P4[0] I/O Bit 0 of port 4
P4[1] I/O Bit 1 of port 4
P4[2] / INT3# I/O Bit 2 of port 4 / INT3# External interrupt 3 input
P4[3] / INT2# I/O Bit 3 of port 4 / INT2# External interrupt 2 input
XTAL1 I Crystal 1: Input to the inverting oscillator amplifier and input to the internal clock generator
circuits.
XTAL2 O Crystal 2: Output from the inverting oscillator amplifier
VDD I Power Supply
VSS I Ground
T2-1.0 1255
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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


10
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

3.0 MEMORY ORGANIZATION


The device has separate address spaces for program and bank selection. Please refer to Figures 3-1 through 3-4 for
data memory. the program memory configuration. Program bank selec-
tion is described in the next section.
3.1 Program Flash Memory The 8K/16K/32K/64K x8 primary SuperFlash block is orga-
There are two internal flash memory blocks in the device. nized as 64/128/256/512 sectors, each sector consists of
The primary flash memory block (Block 0) has 8/16/32/64 128 Bytes.
KByte. The secondary flash memory block (Block 1) has 8 The 8K x8 secondary SuperFlash block is organized as 64
KByte. Since the total program address space is limited to sectors, each sector consists also of 128 Bytes.
64 KByte, the SFCF[1:0] bit are used to control program
For both blocks, the 7 least significant program address bits
select the byte within the sector. The remainder of the pro-
gram address bits select the sector within the block.

EA# = 1 EA# = 1 EA# = 1


EA# = 0 SFCF[1:0] = 00 SFCF[1:0] = 01 SFCF[1:0] = 10, 11
FFFFH FFFFH FFFFH FFFFH
8 KByte 8 KByte
Block 1 Block 1
E000H E000H
DFFFH DFFFH

Not
Accessible
External Not Not
64 KByte Accessible Accessible

2000H 8000H 8000H


1FFFH 7FFFH 7FFFH
8 KByte 8 KByte 8 KByte
Block 1 Block 0 Block 0
0000H 0000H 0000H 0000H
1255 F01.0

FIGURE 3-1: PROGRAM MEMORY ORGANIZATION FOR 8 KBYTE SST89E/V52RD2

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


11
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

EA# = 1 EA# = 1 EA# = 1


EA# = 0 SFCF[1:0] = 00 SFCF[1:0] = 01 SFCF[1:0] = 10, 11
FFFFH FFFFH FFFFH FFFFH
8 KByte 8 KByte
Block 1 Block 1
E000H E000H
DFFFH DFFFH

Not
Accessible
Not Not
Accessible Accessible
External
64 KByte

8000H 8000H 8000H


7FFFH 7FFFH 7FFFH
8 KByte
Block 0
2000H 16 KByte 16 KByte
1FFFH Block 0 Block 0
8 KByte
Block 1
0000H 0000H 0000H 0000H
1255 F02.0

FIGURE 3-2: PROGRAM MEMORY ORGANIZATION FOR 16 KBYTE SST89E/V54RD2

EA# = 1 EA# = 1 EA# = 1


EA# = 0 SFCF[1:0] = 00 SFCF[1:0] = 01 SFCF[1:0] = 10, 11
FFFFH FFFFH FFFFH FFFFH
8 KByte 8 KByte
Block 1 Block 1
E000H E000H
DFFFH DFFFH

External
32 KByte
External External
24 KByte 24 KByte

External 8000H 8000H 8000H


64 KByte 7FFFH 7FFFH 7FFFH

24 KByte
Block 0
32 KByte 32 KByte
Block 0 Block 0

2000H
1FFFH
8 KByte
Block 1
0000H 0000H 0000H 0000H
1255 F03.0

FIGURE 3-3: PROGRAM MEMORY ORGANIZATION FOR 32 KBYTE SST89E/V58RD2

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


12
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

EA# = 1 EA# = 1
EA# = 0 SFCF[1:0] = 00 SFCF[1:0] = 01, 10, 11
FFFFH FFFFH FFFFH

56 KByte
Block 0
External 64 KByte
64 KByte Block 0

2000H

1FFFH
8 KByte
Block 1
0000H 0000H 0000H
1255 F04.0

FIGURE 3-4: PROGRAM MEMORY ORGANIZATION FOR 64 KBYTE SST89E/V516RD2

3.2 Program Memory Block Switching


The program memory block switching feature of the device allows either Block 1 or the lowest 8 KByte of Block 0 to be
used for the lowest 8 KByte of the program address space. SFCF[1:0] controls program memory block switching.

TABLE 3-1: SFCF VALUES FOR PROGRAM MEMORY BLOCK SWITCHING FOR SST89E/V516RD2
SFCF[1:0] Program Memory Block Switching
01, 10, 11 Block 1 is not visible to the program counter (PC).
Block 1 is reachable only via in-application programming from 0000H - 1FFFH.
00 Block 1 is overlaid onto the low 8K of the program address space; occupying address locations 0000H - 1FFFH.
When the PC falls within 0000H - 1FFFH, the instruction will be fetched from Block 1 instead of Block 0.
Outside of 0000H - 1FFFH, Block 0 is used. Locations 0000H - 1FFFH of Block 0 are reachable through
in-application programming.
T3-1.0 1255

TABLE 3-2: SFCF VALUES FOR PROGRAM MEMORY BLOCK SWITCHING FOR SST89E/V5XRD2
SFCF[1:0] Program Memory Block Switching
10, 11 Block 1 is not visible to the PC;
Block 1 is reachable only via in-application programming from E000H - FFFFH.
01 Both Block 0 and Block 1 are visible to the PC.
Block 0 is occupied from 0000H - 7FFFH. Block 1 is occupied from E000H - FFFFH.
00 Block 1 is overlaid onto the low 8K of the program address space; occupying address locations 0000H - 1FFFH.
When the PC falls within 0000H - 1FFFH, the instruction will be fetched from Block 1 instead of Block 0.
Outside of 0000H - 1FFFH, Block 0 is used. Locations 0000H - 1FFFH of Block 0 are reachable through
in-application programming.
T3-2.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


13
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
3.2.1 Reset Configuration of Program Memory 3.4 Expanded Data RAM Addressing
Block Switching
The SST89E/V554A both have the capability of 1K of
Program memory block switching is initialized after reset RAM. See Figure 3-5.
according to the state of the Start-up Configuration bit SC0
and/or SC1. The SC0 and SC1 bits are programmed via The device has four sections of internal data memory:
an external host mode command or an IAP Mode com- 1. The lower 128 Bytes of RAM (00H to 7FH) are
mand. See Table 4-1, Table 4-6, and Table 4-7. directly and indirectly addressable.
Once out of reset, the SFCF[0] bit can be changed dynam- 2. The higher 128 Bytes of RAM (80H to FFH) are
ically by the program for desired effects. Changing SFCF[0] indirectly addressable.
will not change the SC0 bit.
3. The special function registers (80H to FFH) are
Caution must be taken when dynamically changing the directly addressable only.
SFCF[0] bit. Since this will cause different physical memory
to be mapped to the logical program address space. The 4. The expanded RAM of 768 Bytes (00H to 2FFH) is
user must avoid executing block switching instructions indirectly addressable by the move external
within the address range 0000H to 1FFFH. instruction (MOVX) and clearing the EXTRAM bit.
(See “Auxiliary Register (AUXR)” in Section 3.6,
“Special Function Registers”)
TABLE 3-3: SFCF VALUES UNDER DIFFERENT
RESET CONDITIONS (SST89E/V5XRD2) Since the upper 128 bytes occupy the same addresses as
State of SFCF[1:0] after: the SFRs, the RAM must be accessed indirectly. The RAM
and SFRs space are physically separate even though they
Power-on WDT Reset
have the same addresses.
or or
External Brown-out Software When instructions access addresses in the upper 128
SC11 SC01 Reset Reset Reset bytes (above 7FH), the MCU determines whether to
U (1) U (1) 00 x0 10 access the SFRs or RAM by the type of instruction given. If
(default) it is indirect, then RAM is accessed. If it is direct, then an
U (1) P (0) 01 x1 11 SFR is accessed. See the examples below.
P (0) U (1) 10 10 10 Indirect Access:
P (0) P (0) 11 11 11
MOV @R0, #data ; R0 contains 90H
T3-3.0 1255
1. P = Programmed (Bit logic state = 0),
U = Unprogrammed (Bit logic state = 1) Register R0 points to 90H which is located in the upper
address range. Data in “#data” is written to RAM location
TABLE 3-4: SFCF VALUES UNDER DIFFERENT 90H rather than port 1.
RESET CONDITIONS (SST89E/V516RD2) Direct Access:
State of SFCF[1:0] after: MOV 90H, #data ; write data to P1
Power-on WDT Reset
or or Data in “#data” is written to port 1. Instructions that write
External Brown-out Software directly to the address write to the SFRs.
SC01 Reset Reset Reset
To access the expanded RAM, the EXTRAM bit must be
U (1) 00 x0 10 cleared and MOVX instructions must be used. The extra
(default)
768 bytes of memory is physically located on the chip and
P (0) 01 x1 11 logically occupies the first 768 bytes of external memory
T3-4.0 1255
1. P = Programmed (Bit logic state = 0),
(addresses 000H to 2FFH).
U = Unprogrammed (Bit logic state = 1) When EXTRAM = 0, the expanded RAM is indirectly
addressed using the MOVX instruction in combination
3.3 Data RAM Memory with any of the registers R0, R1 of the selected bank or
The data RAM has 1024 bytes of internal memory. The DPTR. Accessing the expanded RAM does not affect
RAM can be addressed up to 64KB for external data ports P0, P3.6 (WR#), P3.7 (RD#), or P2. With
memory. EXTRAM = 0, the expanded RAM can be accessed as
in the following example.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


14
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Expanded RAM Access (Indirect Addressing only): address bits. This provides external paging capabilities.
Using MOVX @DPTR generates a 16-bit address. This
MOVX @DPTR, A ; DPTR contains 0A0H
allows external addressing up the 64K. Port 2 provides the
DPTR points to 0A0H and data in “A” is written to address high-order eight address bits (DPH), and Port 0 multiplexes
0A0H of the expanded RAM rather than external memory. the low order eight address bits (DPL) with data. Both
Access to external memory higher than 2FFH using the MOVX @Ri and MOVX @DPTR generates the necessary
MOVX instruction will access external memory (0300H to read and write signals (P3.6 - WR# and P3.7 - RD#) for
FFFFH) and will perform in the same way as the standard external memory use. Table 3-5 shows external data mem-
8051, with P0 and P2 as data/address bus, and P3.6 and ory RD#, WR# operation with EXTRAM bit.
P3.7 as write and read timing signals. The stack pointer (SP) can be located anywhere within the
When EXTRAM = 1, MOVX @Ri and MOVX @DPTR will 256 bytes of internal RAM (lower 128 bytes and upper 128
be similar to the standard 8051. Using MOVX @Ri pro- bytes). The stack pointer may not be located in any part of
vides an 8-bit address with multiplexed data on Port 0. the expanded RAM.
Other output port pins can be used to output higher order

TABLE 3-5: EXTERNAL DATA MEMORY RD#, WR# WITH EXTRAM BIT
MOVX @DPTR, A or MOVX A, @DPTR MOVX @Ri, A or MOVX A, @Ri
AUXR ADDR < 0300H ADDR >= 0300H ADDR = Any
EXTRAM = 0 RD# / WR# not asserted RD# / WR# asserted RD# / WR# not asserted1
EXTRAM = 1 RD# / WR# asserted RD# / WR# asserted RD# / WR# asserted
T3-5.0 1255
1. Access limited to ERAM address within 0 to 0FFH; cannot access 100H to 02FFH.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


15
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

2FFH

Expanded FFH FFH


(Indirect Addressing) (Direct Addressing)
RAM
768 Bytes
Special
Function
Registers
(SFRs)
Upper 128 Bytes
80H Internal RAM 80H
7FH Lower 128 Bytes
Internal RAM

(Indirect & Direct


(Indirect Addressing)
00H Addressing)
000H

FFFFH FFFFH
(Indirect Addressing) (Indirect Addressing)

External
External Data
Data Memory
Memory

0300H
2FFH
Expanded RAM
000H 0000H

EXTRAM = 0 EXTRAM = 1

1255 F05.0

FIGURE 3-5: INTERNAL AND EXTERNAL DATA MEMORY STRUCTURE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


16
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

3.5 Dual Data Pointers


The device has two 16-bit data pointers. The DPTR Select (DPS) bit in AUXR1 determines which of the two data
pointers is accessed. When DPS=0, DPTR0 is selected; when DPS=1, DPTR1 is selected. Quickly switching
between the two data pointers can be accomplished by a single INC instruction on AUXR1. (See Figure 3-6)

AUXR1 / bit0

DPS

DPTR1

DPTR0
DPS = 0 → DPTR0
DPS = 1 → DPTR1 DPH DPL
83H 82H

External Data Memory


1255 F06.0

FIGURE 3-6: DUAL DATA POINTER ORGANIZATION

3.6 Special Function Registers


Most of the unique features of the FlashFlex51 microcontroller family are controlled by bits in special function regis-
ters (SFRs) located in the SFR memory map shown in Table 3-6. Individual descriptions of each SFR are provided
and reset values indicated in Tables 3-7 to 3-11.

TABLE 3-6: FLASHFLEX51 SFR MEMORY MAP


8 BYTES
F8H IP11 CH CCAP0H CCAP1H CCAP2H CCAP3H CCAP4H FFH
F0H B1 IP1H F7H
E8H IEA1 CL CCAP0L CCAP1L CCAP2L CCAP3L CCAP4L EFH
E0H ACC1 E7H
D8H CCON1 CMOD CCAPM0 CCAPM1 CCAPM2 CCAPM3 CCAPM4 DFH
D0H PSW1 SPCR D7H
C8H T2CON1 T2MOD RCAP2L RCAP2H TL2 TH2 CFH
C0H WDTC1 C7H
B8H IP1 SADEN BFH
B0H P31 SFCF SFCM SFAL SFAH SFDT SFST IPH B7H
A8H IE1 SADDR SPSR XICON AFH
A0H P21 AUXR1 P4 A7H
98H SCON1 SBUF 9FH
90H P11 97H
88H TCON1 TMOD TL0 TL1 TH0 TH1 AUXR 8FH
80H P01 SP DPL DPH WDTD SPDR PCON 87H
T3-6.0 1255
1. Bit addressable SFRs

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


17
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 3-7: CPU RELATED SFRS

Direct Bit Address, Symbol, or Alternative Port Function Reset


Symbol Description Address MSB LSB Value
ACC1 Accumulator E0H ACC[7:0] 00H
B1 B Register F0H B[7:0] 00H
PSW1 Program Status D0H CY AC F0 RS1 RS0 OV F1 P 00H
Word
SP Stack Pointer 81H SP[7:0] 07H
DPL Data Pointer 82H DPL[7:0] 00H
Low
DPH Data Pointer 83H DPH[7:0] 00H
High
IE1 Interrupt Enable A8H EA EC ET2 ES ET1 EX1 ET0 EX0 00H
IEA1 Interrupt E8H - - - - EBO - - - xxxx0xxxb
Enable A
IP1 Interrupt Priority B8H - PPC PT2 PS PT1 PX1 PT0 PX0 x0000000b
Reg
IPH Interrupt Priority B7H - PPCH PT2H PSH PT1H PX1H PT0H PX0H x0000000b
Reg High
IP11 Interrupt Priority F8H - - - - PBO - - - xxxx0xxxb
Reg A
IP1H Interrupt Priority F7H - - - - PBOH - - - xxxx0xxxb
Reg A High
PCON Power Control 87H SMOD1 SMOD0 BOF POF GF1 GF0 PD IDL 00010000b
AUXR Auxiliary Reg 8EH - - - - - - EXTRAM AO xxxxxxx00b
AUXR1 Auxiliary Reg 1 A2H - - - - GF2 0 - DPS xxxx00x0b
XICON External AEH 0 EX3 IE3 IT3 0 EX2 IE2 IT2 00H
Interrupt Control
T3-7.0 1255
1. Bit Addressable SFRs

TABLE 3-8: FLASH MEMORY PROGRAMMING SFRS

Direct Bit Address, Symbol, or Alternative Port Function Reset


Symbol Description Address MSB LSB Value
SFCF SuperFlash B1H - IAPEN - - - - SWR BSEL x0xxxx00b
Configuration
SFCM SuperFlash B2H FIE FCM[6:0] 00H
Command
SFAL SuperFlash B3H SuperFlash Low Order Byte Address Register - A7 to A0 (SFAL) 00H
Address Low
SFAH SuperFlash B4H SuperFlash High Order Byte Address Register - A15 to A8 (SFAH) 00H
Address High
SFDT SuperFlash B5H SuperFlash Data Register 00H
Data
SFST SuperFlash B6H SB1_i SB2_i SB3_i - EDC_i FLASH_BUSY - - 000x00xxb
Status
T3-8.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


18
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 3-9: WATCHDOG TIMER SFRS

Direct Bit Address, Symbol, or Alternative Port Function Reset


Symbol Description Address MSB LSB Value
WDTC1 Watchdog Timer C0H - - - WDOUT WDRE WDTS WDT SWDT xxx00x00b
Control
WDTD Watchdog Timer 85H Watchdog Timer Data/Reload 00H
Data/Reload
T3-9.0 1255
1. Bit Addressable SFRs

TABLE 3-10: TIMER/COUNTERS SFRS

Direct Bit Address, Symbol, or Alternative Port Function Reset


Symbol Description Address MSB LSB Value
TMOD Timer/Counter 89H Timer 1 Timer 0 00H
Mode Control GATE C/T# M1 M0 GATE C/T# M1 M0
TCON1 Timer/Counter 88H TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 00H
Control
TH0 Timer 0 MSB 8CH TH0[7:0] 00H
TL0 Timer 0 LSB 8AH TL0[7:0] 00H
TH1 Timer 1 MSB 8DH TH1[7:0] 00H
TL1 Timer 1 LSB 8BH TL1[7:0] 00H
T2CON1 Timer / Counter 2 C8H TF2 EXF2 RCLK TCLK EXEN2 TR2 C/T2# CP/RL2# 00H
Control
T2MOD# Timer2 C9H - - - - - - T2OE DCEN xxxxxx00b
Mode Control
TH2 Timer 2 MSB CDH TH2[7:0] 00H
TL2 Timer 2 LSB CCH TL2[7:0] 00H
RCAP2H Timer 2 CBH RCAP2H[7:0] 00H
Capture MSB
RCAP2L Timer 2 CAH RCAP2L[7:0] 00H
Capture LSB
T3-10.0 1255
1. Bit Addressable SFRs

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


19
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 3-11: INTERFACE SFRS

Direct Bit Address, Symbol, or Alternative Port Function RESET


Symbol Description Address MSB LSB Value
SBUF Serial Data Buffer 99H SBUF[7:0] Indeterminate
SCON1 Serial Port Control 98H SM0/FE SM1 SM2 REN TB8 RB8 TI RI 00H
SADDR Slave Address A9H SADDR[7:0] 00H
SADEN Slave Address B9H SADEN[7:0] 00H
Mask
SPCR SPI Control D5H SPIE SPE DORD MSTR CPOL CPHA SPR1 SPR0 04H
Register
SPSR SPI Status AAH SPIF WCOL 00H
Register
SPDR SPI Data Register 86H SPDR[7:0] 00H
P01 Port 0 80H P0[7:0] FFH
P11 Port 1 90H - - - - - - T2EX T2 FFH
P21 Port 2 A0H P2[7:0] FFH
P31 Port 3 B0H RD# WR# T1 T0 INT1# INT0# TXD RXD FFH
P42 Port 4 A5H 1 1 1 1 P4.3 P4.2 P4.1 P4.0 FFH
T3-11.0 1255
1. Bit Addressable SFRs
2. P4 is similar to P1 and P3 ports

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


20
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 3-12: PCA SFRS
Direct Bit Address, Symbol, or Alternative Port Function RESET
Symbol Description Address MSB LSB Value
CH PCA Timer/Counter F9H CH[7:0] 00H
CL E9H CL[7:0] 00H
CCON1 PCA Timer/Counter D8H CF CR - CCF4 CCF3 CCF2 CCF1 CCF0 00x00000b
Control Register
CMOD PCA Timer/Counter D9H CIDL WDTE - - - CPS1 CPS0 ECF 00xxx000b
Mode Register
CCAP0H PCA Module 0 FAH CCAP0H[7:0] 00H
CCAP0L Compare/Capture EAH CCAP0L[7:0] 00H
Registers
CCAP1H PCA Module 1 FBH CCAP1H[7:0] 00H
CCAP1L Compare/Capture EBH CCAP1L[7:0] 00H
Registers
CCAP2H PCA Module 2 FCH CCAP2H[7:0] 00H
CCAP2L Compare/Capture ECH CCAP2L[7:0] 00H
Registers
CCAP3H PCA Module 3 FDH CCAP3H[7:0] 00H
CCAP3L Compare/Capture EDH CCAP3L[7:0] 00H
Registers
CCAP4H PCA Module 4 FEH CCAP4H[7:0] 00H
CCAP4L Compare/Capture EEH CCAP4L[7:0] 00H
Registers
CCAPM0 PCA DAH - ECOM0 CAPP0 CAPN0 MAT0 TOG0 PWM0 ECCF0 x0000000b
CCAPM1 Compare/Capture DBH - ECOM1 CAPP1 CAPN1 MAT1 TOG1 PWM1 ECCF1 x0000000b
Module Mode
CCAPM2 DCH - ECOM2 CAPP2 CAPN2 MAT2 TOG2 PWM2 ECCF2 x0000000b
Registers
CCAPM3 DDH - ECOM3 CAPP3 CAPN3 MAT3 TOG3 PWM3 ECCF3 x0000000b
CCAPM4 DEH - ECOM4 CAPP4 CAPN4 MAT4 TOG4 PWM4 ECCF4 x0000000b
T3-12.0 1255
1. Bit Addressable SFRs

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


21
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
SuperFlash Configuration Register (SFCF)
Location 7 6 5 4 3 2 1 0 Reset Value
B1H - IAPEN - - - - SWR BSEL x0xxxx00b

Symbol Function
IAPEN Enable IAP operation
0: IAP commands are disabled
1: IAP commands are enabled
SWR Software Reset
See Section 10.2, “Software Reset”
BSEL Program memory block switching bit
See Figures 3-1 through 3-4 and Tables 3-3 and 3-4

SuperFlash Command Register (SFCM)


Location 7 6 5 4 3 2 1 0 Reset Value
B2H FIE FCM6 FCM5 FCM4 FCM3 FCM2 FCM1 FCM0 00H

Symbol Function
FIE Flash Interrupt Enable.
0: INT1# is not reassigned.
1: INT1# is re-assigned to signal IAP operation completion.
External INT1# interrupts are ignored.
FCM[6:0] 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.

SuperFlash Address Registers (SFAL)


Location 7 6 5 4 3 2 1 0 Reset Value
B3H SuperFlash Low Order Byte Address Register 00H

Symbol Function
SFAL Mailbox register for interfacing with flash memory block. (Low order address register).

SuperFlash Address Registers (SFAH)


Location 7 6 5 4 3 2 1 0 Reset Value
B4H SuperFlash High Order Byte Address Register 00H

Symbol Function
SFAH Mailbox register for interfacing with flash memory block. (High order address register).

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


22
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
SuperFlash Data Register (SFDT)
Location 7 6 5 4 3 2 1 0 Reset Value
B5H SuperFlash Data Register 00H

Symbol Function
SFDT Mailbox register for interfacing with flash memory block. (Data register).

SuperFlash Status Register (SFST) (Read Only Register)


Location 7 6 5 4 3 2 1 0 Reset Value
B6H SB1_i SB2_i SB3_i - EDC_i FLASH_BUSY - - xxxxx0xxb

Symbol Function
SB1_i Security Bit 1 status (inverse of SB1 bit)
SB2_i Security Bit 2 status (inverse of SB2 bit)
SB3_i Security Bit 3 status (inverse of SB3 bit)
Please refer to Table 9-1 for security lock options.
EDC_i 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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


23
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Interrupt Enable (IE)
Location 7 6 5 4 3 2 1 0 Reset Value
A8H EA EC ET2 ES ET1 EX1 ET0 EX0 00H

Symbol Function
EA Global Interrupt Enable.
0 = Disable
1 = Enable
EC PCA Interrupt Enable.
ET2 Timer 2 Interrupt Enable.
ES Serial Interrupt Enable.
ET1 Timer 1 Interrupt Enable.
EX1 External 1 Interrupt Enable.
ET0 Timer 0 Interrupt Enable.
EX0 External 0 Interrupt Enable.

Interrupt Enable A (IEA)


Location 7 6 5 4 3 2 1 0 Reset Value
E8H - - - - EBO - - - xxxx0xxxb

Symbol Function
EBO Brown-out Interrupt Enable.
1 = Enable the interrupt
0 = Disable the interrupt

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


24
F r e e D a t
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Interrupt Priority (IP)
Location 7 6 5 4 3 2 1 0 Reset Value
B8H - PPC PT2 PS PT1 PX1 PT0 PX0 x0000000b

Symbol Function
PPC PCA interrupt priority bit
PT2 Timer 2 interrupt priority bit
PS Serial Port interrupt priority bit
PT1 Timer 1 interrupt priority bit
PX1 External interrupt 1 priority bit
PT0 Timer 0 interrupt priority bit
PX0 External interrupt 0 priority bit

Interrupt Priority High (IPH)


Location 7 6 5 4 3 2 1 0 Reset Value
B7H - PPCH PT2H PSH PT1H PX1H PT0H PX0H x0000000b

Symbol Function
PPCH PCA interrupt priority bit high
PT2H Timer 2 interrupt priority bit high
PSH Serial Port interrupt priority bit high
PT1H Timer 1 interrupt priority bit high
PX1H External interrupt 1 priority bit high
PT0H Timer 0 interrupt priority bit high
PX0H External interrupt 0 priority bit high

Interrupt Priority 1 (IP1)


Location 7 6 5 4 3 2 1 0 Reset Value
F8H 1 - - 1 PBO PX3 PX2 1 1xx10001b

Symbol Function
PBO Brown-out interrupt priority bit
PX2 External Interrupt 2 priority bit
PX3 External Interrupt 3 priority bit

Interrupt Priority 1 High (IP1H)


Location 7 6 5 4 3 2 1 0 Reset Value
F7H 1 - - 1 PBOH PX3H PX2H 1 1xx10001b

Symbol Function
PBOH Brown-out Interrupt priority bit high
PX2H External Interrupt 2 priority bit high
PX3H External Interrupt 3 priority bit high

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


25
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Auxiliary Register (AUXR)
Location 7 6 5 4 3 2 1 0 Reset Value
8EH - - - - - - EXTRAM AO xxxxxx00b

Symbol Function
EXTRAM 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.
AO 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.

Auxiliary Register 1 (AUXR1)


Location 7 6 5 4 3 2 1 0 Reset Value
A2H - - - - GF2 0 - DPS xxxx00x0b

Symbol Function
GF2 General purpose user-defined flag.
DPS DPTR registers select bit.
0: DPTR0 is selected.
1: DPTR1 is selected.

Watchdog Timer Control Register (WDTC)


Location 7 6 5 4 3 2 1 0 Reset Value
C0H - - - WDOUT WDRE WDTS WDT SWDT xxx00000b

Symbol Function
WDOUT 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.
WDRE Watchdog timer reset enable.
0: Disable watchdog timer reset.
1: Enable watchdog timer reset.
WDTS 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.
WDT Watchdog timer refresh.
0: Hardware resets the bit when refresh is done.
1: Software sets the bit to force a watchdog timer refresh.
SWDT Start watchdog timer.
0: Stop WDT.
1: Start WDT.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


26
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Watchdog Timer Data/Reload Register (WDTD)
Location 7 6 5 4 3 2 1 0 Reset Value
85H Watchdog Timer Data/Reload 00H

Symbol Function
WDTD Initial/Reload value in Watchdog Timer. New value won’t be effective until WDT is set.

PCA Timer/Counter Control Register1 (CCON)


Location 7 6 5 4 3 2 1 0 Reset Value
D8H CF CR - CCF4 CCF3 CCF2 CCF1 CCF0 00x00000b
1. Bit addressable

Symbol Function
CF 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.
CR 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 ‘1’s to reserved bits. The value read from a reserved bit is indeterminate.
CCF4 PCA Module 4 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
CCF3 PCA Module 3 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
CCF2 PCA Module 2 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
CCF1 PCA Module 1 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
CCF0 PCA Module 0 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


27
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

PCA Timer/Counter Mode Register1 (CMOD)


Location 7 6 5 4 3 2 1 0 Reset Value
D9H CIDL WDTE - - - CPS1 CPS0 ECF 00xxx000b
1. Not bit addressable

Symbol Function
CIDL 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
WDTE 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 ‘1’s to reserved bits. The value read from a reserved bit is indeterminate.
CPS1 PCA Count Pulse Select bit 1
CPS0 PCA Count Pulse Select bit 2

Selected
CPS1 CPS0 PCA Input1
0 0 0 Internal clock, fOSC/6 in 6 clock mode (fOSC/12 in 12 clock mode)
0 1 1 Internal clock, fOSC/2 in 6 clock mode (fOSC/4 in 12 clock mode)
1 0 2 Timer 0 overflow
1 1 3 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

ECF PCA Enable Counter Overflow interrupt:


0: Disables the CF bit in CCON
1: Enables CF bit in CCON to generate an interrupt

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


28
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

PCA Compare/Capture Module Mode Register1 (CCAPMn)


Location 7 6 5 4 3 2 1 0 Reset Value
DAH - ECOM0 CAPP0 CAPN0 MAT0 TOG0 PWM0 ECCF0 00xxx000b
DBH - ECOM1 CAPP1 CAPN1 MAT1 TOG1 PWM1 ECCF1 00xxx000b
DCH - ECOM2 CAPP2 CAPN2 MAT2 TOG2 PWM2 ECCF2 00xxx000b
DDH - ECOM3 CAPP3 CAPN3 MAT3 TOG3 PWM3 ECCF3 00xxx000b
DEH - ECOM4 CAPP4 CAPN4 MAT4 TOG4 PWM4 ECCF4 00xxx000b
1. Not bit addressable

Symbol Function
- Not implemented, reserved for future use.
Note: User should not write ‘1’s to reserved bits. The value read from a reserved bit is indeterminate.
ECOMn Enable Comparator
0: Disables the comparator function
1: Enables the comparator function
CAPPn Capture Positive
0: Disables positive edge capture on CEX[4:0]
1: Enables positive edge capture on CEX[4:0]
CAPNn Capture Negative
0: Disables negative edge capture on CEX[4:0]
1: Enables negative edge capture on CEX[4:0]
MATn 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 module’s compare/capture register causes the
CCFn bit in CCON to be set, flagging an interrupt.
TOGn Toggle
0: Disables toggle function
1: A match of the PCA counter with this module’s compare/capture register causes the
the CEXn pin to toggle.
PWMn Pulse Width Modulation mode
0: Disables PWM mode
1: Enables CEXn pin to be used as a pulse width modulated output
ECCFn 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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


29
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
SPI Control Register (SPCR)
Location 7 6 5 4 3 2 1 0 Reset Value
D5H SPIE SPE DORD MSTR CPOL CPHA SPR1 SPR0 00H

Symbol Function
SPIE If both SPIE and ES are set to one, SPI interrupts are enabled.
SPE 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.
DORD Data Transmission Order.
0: MSB first in data transmission.
1: LSB first in data transmission.
MSTR Master/Slave select.
0: Selects Slave mode.
1: Selects Master mode.
CPOL Clock Polarity
0: SCK is low when idle (Active High).
1: SCK is high when idle (Active Low).
CPHA Clock Phase control bit.
0: Shift triggered on the leading edge of the clock.
1: Shift triggered on the trailing edge of the clock.
SPR1, SPR0 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 SPR0 SCK = fOSC divided by


0 0 4
0 1 16
1 0 64
1 1 128

SPI Status Register (SPSR)


Location 7 6 5 4 3 2 1 0 Reset Value
AAH SPIF WCOL - - - - - - 00xxxxxxb

Symbol Function
SPIF 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.
WCOL Write Collision Flag.
Set if the SPI data register is written to during data transfer.
This bit is cleared by software.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


30
F r e e D a t
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
SPI Data Register (SPDR)
Location 7 6 5 4 3 2 1 0 Reset Value
86H SPDR[7:0] 00H

Power Control Register (PCON)


Location 7 6 5 4 3 2 1 0 Reset Value
87H SMOD1 SMOD0 BOF POF GF1 GF0 PD IDL 00010000b

Symbol Function
SMOD1 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.
SMOD0 FE/SM0 Selection bit.
0: SCON[7] = SM0
1: SCON[7] = FE,
BOF 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
POF 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
GF1 General-purpose flag bit.
GF0 General-purpose flag bit.
PD 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.
IDL Idle mode bit, this bit is cleared by hardware after exiting from idle mode.
0: Idle mode is not activated.
1: Activates idle mode.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


31
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Serial Port Control Register (SCON)
Location 7 6 5 4 3 2 1 0 Reset Value
98H SM0/FE SM1 SM2 REN TB8 RB8 TI RI 00000000b

Symbol Function
FE 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.
SM0 SMOD0 = 0 to access SM0 bit.
Serial Port Mode Bit 0
SM1 Serial Port Mode Bit 1

SM0 SM1 Mode Description Baud Rate1


0 0 0 Shift Register fOSC/6 (6 clock mode) or
fOSC/12 (12 clock mode)
0 1 1 8-bit UART Variable
1 0 2 9-bit UART fOSC/32 or fOSC/16 (6 clock mode)
or
fOSC/64 or fOSC/32 (12 clock mode)
1 1 3 9-bit UART Variable
1. fOSC = oscillator frequency

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.
REN Enables serial reception.
0: to disable reception.
1: to enable reception.
TB8 The 9th data bit that will be transmitted in Modes 2 and 3. Set or clear by software as
desired.
RB8 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.
TI 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.
RI 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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


32
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Timer/Counter 2 Control Register (T2CON)
Location 7 6 5 4 3 2 1 0 Reset Value
C8H TF2 EXF2 RCLK TCLK EXEN2 TR2 C/T2# CP/RL2# 00H

Symbol Function
TF2 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.
EXF2 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).
RCLK 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.
TCLK 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.
EXEN2 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.
TR2 Start/stop control for Timer 2. A logic 1 starts the timer.
C/T2# 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)
CP/RL2# 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.

Timer/Counter 2 Mode Control (T2MOD)


Location 7 6 5 4 3 2 1 0 Reset Value
C9H - - - - - - T2OE DCEN xxxxxx00b

Symbol Function
- Not implemented, reserved for future use.
Note: User should not write ‘1’s to reserved bits. The value read from a reserved bit is indeterminate.
T2OE Timer 2 Output Enable bit.
DCEN Down Count Enable bit. When set, this allows Timer 2 to be configured as an up/down
counter.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


33
F r e e D a t
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
External Interrupt Control (XICON)
Location 7 6 5 4 3 2 1 0 Reset Value
AEH 0 EX3 IE3 IT3 0 EX2 IE2 IT2 00H

Symbol Function
EX2 External Interrupt 2
Enable bit if set
IE2 Interrupt Enable
If IT2=1, IE2 is set/cleared automatically by hardware when interrupt is detected/
serviced.
IT2 External Interrupt 2 is falling-edge/low-level triggered when this bit is cleared by
software.
EX3 External Interrupt 3
Enable bit if set
IE3 Interrupt Enable
If IT3=1, IE3 is set/cleared automatically by hardware when interrupt is detected/
serviced.
IT3 External Interrupt3 is falling-edge/low-level triggered when this bit is cleared by
software.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


34
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

4.0 FLASH MEMORY PROGRAMMING


The device internal flash memory can be programmed or logic high to a logic low while RST input is being held con-
erased using the following two methods: tinuously high. The device will stay in external host mode
as long as RST = 1 and PSEN# = 0.
• External Host Programming mode
• In-Application Programming (IAP) mode A Read-ID operation is necessary to “arm” the device in
external host mode, and no other external host mode com-
4.1 External Host Programming Mode mands can be enabled until a Read-ID is performed. In
external host mode, the internal flash memory blocks are
External host programming mode allows the user to pro- accessed through the re-assigned I/O port pins (see Figure
gram the flash memory directly without using the CPU. 4-1 for details) by an external host, such as a MCU program-
External host mode is entered by forcing PSEN# from a mer, a PCB tester or a PC-controlled development board.

TABLE 4-1: EXTERNAL HOST MODE COMMANDS FOR SST89E/V5XRD2


PROG#/ P3[5:4]
Operation RST PSEN# ALE EA# P3[7] P3[6] P2[7] P2[6] P0[7:0] P2[5:0] P1[7:0]
Read-ID VIH1 VIL VIH VIH VIL VIL VIL VIL DO AH AL
Chip-Erase VIH1 VIL ⇓1 VIH VIL VIL VIL VIH X X X
Block-Erase VIH1 VIL ⇓ VIH VIH VIH VIL VIH X A[15:13] X
Sector-Erase VIH1 VIL ⇓ VIH VIH VIL VIH VIH X AH AL
Byte-Program VIH1 VIL ⇓ VIH VIH VIH VIH VIL DI AH AL
Byte-Verify (Read) VIH1 VIL VIH VIH VIH VIH VIL VIL DO AH AL
Prog-SC0 VIH1 VIL ⇓ VIH VIH VIL VIL VIH X 5AH X
Prog-SC1 VIH1 VIL ⇓ VIH VIH VIL VIL VIH X AAH X
Prog-SB1 VIH1 VIL ⇓ VIH VIH VIH VIH VIH X X X
Prog-SB2 VIH1 VIL ⇓ VIH VIL VIL VIH VIH X X X
Prog-SB3 VIH1 VIL ⇓ VIH VIL VIH VIL VIH X X X
Enable-Clock-Double VIH1 VIL ⇓ VIH VIH VIL VIL VIL X 55H X
T4-1.0 1255
1. Symbol ⇓ signifies a negative pulse and the command is asserted during the low state of PROG#/ALE input.
All other combinations of the above input pins are invalid and may result in unexpected behaviors.
Note: VIL = Input Low Voltage; VIH = Input High Voltage; VIH1 = Input High Voltage (XTAL, RST); X = Don’t care; AL = Address low order byte;
AH = Address high order byte; DI = Data Input; DO = Data Output; A[15:13] = 0xxb for Block 0 and A[15:13] = 111b for Block 1

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


35
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 4-2: EXTERNAL HOST MODE COMMANDS FOR SST89E/V516RD2
PROG#/ P3[5:4]
Operation RST PSEN# ALE EA# P3[7] P3[6] P2[7] P2[6] P0[7:0] P2[5:0] P1[7:0]
Read-ID VIH1 VIL VIH VIH VIL VIL VIL VIL DO AH AL
Chip-Erase VIH1 VIL ⇓1 VIH VIL VIL VIL VIH X X X
Block-Erase VIH1 VIL ⇓ VIH VIH VIH VIL VIH X X X
Sector-Erase VIH1 VIL ⇓ VIH VIH VIL VIH VIH X AH AL
Byte-Program VIH1 VIL ⇓ VIH VIH VIH VIH VIL DI AH AL
Byte-Verify (Read) VIH1 VIL VIH VIH VIH VIH VIL VIL DO AH AL
Select-Block0 VIH1 VIL ⇓ VIH VIH VIL VIL VIH X 55H X
Select-Block1 VIH1 VIL ⇓ VIH VIH VIL VIL VIH X A5H X
Prog-SC0 VIH1 VIL ⇓ VIH VIH VIL VIL VIH X 5AH X
Prog-SB1 VIH1 VIL ⇓ VIH VIH VIH VIH VIH X X X
Prog-SB2 VIH1 VIL ⇓ VIH VIL VIL VIH VIH X X X
Prog-SB3 VIH1 VIL ⇓ VIH VIL VIH VIL VIH X X X
Enable-Clock-Double VIH1 VIL ⇓ VIH VIH VIL VIL VIL X 55H X
T4-2.0 1255
1. Symbol ⇓ signifies a negative pulse and the command is asserted during the low state of PROG#/ALE input. All other combinations
of the above input pins are invalid and may result in unexpected behaviors.
Note: VIL = Input Low Voltage; VIH = Input High Voltage; VIH1 = Input High Voltage (XTAL, RST); X = Don’t care; AL = Address low order byte;
AH = Address high order byte; DI = Data Input; DO = Data Output

VSS VDD RST

0 Input/
Port 0
Output
6 Data
7 Bus
0
0 1
1 2 Address Bus
2 3 A13-A8
Port 2
4
Ready/Busy# 3
Port 3 5
Address Bus A14 4
6 Flash
A15-A14 A15 5
7 Control Signals
Flash 6
0
Control Signals 7 Port 1
Address Bus
6 A7-A0
7

EA# ALE / PSEN#


PROG#
1255 F07.0

FIGURE 4-1: I/O PIN ASSIGNMENTS FOR EXTERNAL HOST MODE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


36
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
4.1.1 Product Identification Program commands, which are synchronized internally.
The Read-ID command accesses the Signature Bytes that The Read commands are asynchronous reads, indepen-
identify the device and the manufacturer as SST. External dent of the PROG# signal level.
programmers primarily use these Signature Bytes in the A detailed description of the external host mode com-
selection of programming algorithms. The Read-ID com- mands follows.
mand is selected by the command code of 0H on P3[7:6]
and P2[7:6]. See Figure 14-14 for timing waveforms. The Select-Block0 command enables Block 0 to be pro-
grammed in external host mode. Once this command is
executed, all subsequent external host Commands will be
TABLE 4-3: PRODUCT IDENTIFICATION
directed at Block 0. See Figure 14-15 for timing waveforms.
Address Data
The Select-Block1 command enables Block 1 (8 KByte
Manufacturer’s ID 30H BFH
Block) to be programmed. Once this command is exe-
Device ID cuted, all subsequent external host Commands that are
SST89E52RD2 31H 9CH directed to the address range below 2000H will be directed
SST89V52RD2 31H 9DH at Block 1. The Select-Block1 command only affects the
SST89E54RD2 31H 9EH lowest 8 KByte of the program address space. For
SST89V54RD2 31H 9FH addresses greater than or equal to 2000H, Block 0 is
accessed by default. Upon entering external host mode,
SST89E58RD2 31H 9BH
Block 1 is selected by default.
SST89V58RD2 31H 9AH
SST89E516RD2 31H 92H The Chip-Erase, Block-Erase, and Sector-Erase com-
mands are used for erasing all or part of the memory array.
SST89V516RD2 31H 93H
Erased data bytes in the memory array will be erased to
T4-3.0 1255
FFH. Memory locations that are to be programmed must
4.1.2 Arming Command be in the erased state prior to programming.
An arming command sequence must take place before The Chip-Erase command erases all bytes in both memory
any external host mode sequence command is recognized blocks, regardless of any previous Select-Block0 or Select-
by the device. This prevents accidental triggering of exter- Block1 commands. Chip-Erase ignores the Security Lock
nal host mode commands due to noise or programmer status and will erase the Security Lock, returning the device
error. The arming command is as follows: to its Unlocked state. The Chip-Erase command will also
erase the SC0 bit. Upon completion of the Chip-Erase
1. PSEN# goes low while RST is high. This will get
command, Block 1 will be the selected block. See Figure
the machine in external host mode, re-configuring
14-16 for timing waveforms.
the pins, and turning on the on-chip oscillator.
The Block-Erase command erases all bytes in the selected
2. A Read-ID command is issued, and after 1 ms the
memory blocks. This command will not be executed if the
external host mode commands can be issued.
security lock is enabled. The selection of the memory block
After the above sequence, all other external host mode to be erased is determined by the prior execution Select-
commands are enabled. Before the Read-ID command is Block0 or Select-Block1 command. See Figure 14-18 for
received, all other external host mode commands received the timing waveforms.
are ignored.
The Sector-Erase command erases all of the bytes in a
sector. The sector size for the flash memory is 128 Bytes.
4.1.3 External Host Mode Commands
This command will not be executed if the Security lock is
The external host mode commands are Read-ID, Chip- enabled. See Figure 14-19 for timing waveforms.
Erase, Block-Erase, Sector-Erase, Byte-Program, Byte-
The Byte-Program command is used for programming new
Verify, Prog-SB1, Prog-SB2, Prog-SB3, Prog-SC0, Prog-
data into the memory array. Programming will not take
SC1, Select-Block0, Select-Block1. See Table 4-1 for all
place if any security locks are enabled. See Figure 14-20
signal logic assignments, Figure 4-1 for I/O pin assign-
for timing waveforms.
ments, and Table 14-11 for the timing parameters. The criti-
cal timing for all Erase and Program commands is The Byte-Verify command allows the user to verify that the
generated by an on-chip flash memory controller. The high- device correctly performed an Erase or Program com-
to-low transition of the PROG# signal initiates the Erase or mand. This command will be disabled if any security locks
are enabled. See Figure 14-23 for timing waveforms.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


37
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
The Prog-SB1, Prog-SB2, Prog-SB3 commands program 4.1.6 Instructions to Perform External Host Mode
the security bits, the functions of these bits are described in Commands
the Security Lock section and also in Table 9-1. Once pro- To program data into the memory array, apply power
grammed, these bits can only be erased through a Chip- supply voltage (VDD) to VDD and RST pins, and per-
Erase command. See Figure 14-21 for timing waveforms. form the following steps:
Prog-SC0 command programs SC0 bit, which determines 1. Maintain RST high and set PSEN# from logic high
the state of SFCF[0] out of reset. Once programmed, SC0 to low, in sequence according to the appropriate
can only be restored to an erased state via a Chip-Erase timing diagram.
command. See Figure 14-22 for timing waveforms.
2. Raise EA# High (VIH).
Prog-SC1 command programs SC1 bit, which determines
the state of SFCF[1] out of reset. Once programmed, SC1 3. Issue Read-ID command to enable the external
can only be restored to an erased state via a Chip-Erase host mode.
command. See Figure 14-22 for timing waveforms. 4. Verify that the memory blocks or sectors for pro-
gramming is in the erased state, FFH. If they are
4.1.4 External Host Mode Clock Source not erased, then erase them using the appropriate
In external host mode, an internal oscillator will provide Erase command.
clocking for the device, and the oscillator is unaffected by
5. Select the memory location using the address
the clock doubler logic. The on-chip oscillator will be turned
lines (P3[5:4], P2[5:0], P1[7:0]).
on as the device enters external host mode; i.e. when
PSEN# goes low while RST is high. During external host 6. Present the data in on P0[7:0].
mode, the CPU core is held in reset. Upon exit from exter-
7. Pulse ALE/PROG#, observing minimum pulse
nal host mode, the internal oscillator is turned off.
width.
4.1.5 Flash Operation Status Detection Via External 8. Wait for low to high transition on Ready/Busy#
Host Handshake (P3[3]).
The device provides two methods for an external host to 9. Repeat steps 5 - 8 until programming is finished.
detect the completion of a flash memory operation to opti-
mize the Program or Erase time. The end of a flash mem- 10. Verify the flash memory contents.
ory operation cycle can be detected by:
4.1.7 Additional Read Commands in External Host
1. monitoring the Ready/Busy# bit at P3[3]; Mode
2. monitoring the Data# Polling bit at P0[3]. The procedure to issue additional read commands, shown
in Table 4-4 below, is the same as the read ID command
4.1.5.1 Ready/Busy# (P3[3]) format, only the address is changed. Here is a short list of
The progress of the flash memory programming can be useful features:
monitored by the Ready/Busy# output signal. P3[3] is
• Read the status of the security bits
driven low, some time after ALE/PROG# goes low during a
(SB1_i, SB2_i, SB3_i).
flash memory operation to indicate the Busy# status of the
Flash Control Unit (FCU). P3[3] is driven high when the • Read the configuration bits (SC0_i, SC1_i) status.
flash programming operation is completed to indicate the • Read the clock mode (EDC_i) status.
ready status. Note: Commands shown in Table 4-4 are not the
ARMING type.
4.1.5.2 Data# Polling (P0[3])
During a Program operation, any attempts to read (Byte-
Verify), while the device is busy, will receive the comple-
ment of the data of the last byte loaded (logic low, i.e. “0” for
an Erase) on P0[3] with the rest of the bits “0”. During a
Program operation, the Byte-Verify command is reading
the data of the last byte loaded, not the data at the address
specified.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


38
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 4-4: ADDITIONAL READ COMMANDS IN EXTERNAL HOST MODE
Address Data
60H X X X SC1_i SC0_i SB1_i SB2_i SB3_i
61H X X X X X X EDC_i X
T4-4.0 1255
X = Don’t care

4.2 In-Application Programming Mode 4.2.2 Memory Bank Selection for In-Application
Programming Mode
The device offers either 16/24/40/72 KByte of in-application
programmable flash memory. During in-application pro- With the addressing range limited to 16 bit, only 64 KByte
gramming, the CPU of the microcontroller enters IAP of program address space is “visible” at any one time. As
mode. The two blocks of flash memory allow the CPU to shown in Table 4-5, the bank selection (the configuration of
execute user code from one block, while the other is being EA# and SFCF[1:0]), allows Block 1 memory to be overlaid
erased or reprogrammed concurrently. The CPU may also on the lowest 8 KByte of Block 0 memory, making Block 1
fetch code from an external memory while all internal flash reachable. The same concept is employed to allow both
is being reprogrammed. The mailbox registers (SFST, Block 0 and Block 1 flash to be accessible to IAP opera-
SFCM, SFAL, SFAH, SFDT and SFCF) located in the spe- tions. Code from a block that is not visible may not be used
cial function register (SFR), control and monitor the as a source to program another address. However, a block
device’s erase and program process. that is not “visible” may be programmed by code from the
other block through mailbox registers.
Table 4-6 and Table 4-7 outline the commands and their
associated mailbox register settings. The device allows IAP code in one block of memory to pro-
gram the other block of memory, but may not program any
4.2.1 In-Application Programming Mode Clock location in the same block. If an IAP operation originates
Source physically from Block 0, the target of this operation is implic-
itly defined to be in Block 1. If the IAP operation originates
During IAP mode, both the CPU core and the flash control-
physically from Block 1, then the target address is implicitly
ler unit are driven off the external clock. However, an inter-
defined to be in Block 0. If the IAP operation originates from
nal oscillator will provide timing references for Program and
external program space, then, the target will depend on the
Erase operations. The internal oscillator is only turned on
address and the state of bank selection.
when required, and is turned off as soon as the flash oper-
ation is completed.
4.2.3 IAP Enable Bit
The IAP enable bit, SFCF[6], enables in-application pro-
gramming mode. Until this bit is set, all flash programming
IAP commands will be ignored.

TABLE 4-5: IAP ADDRESS RESOLUTION FOR SST89E/V516RD2


EA# SFCF[1:0] Address of IAP Inst. Target Address Block Being Programmed
1 00 >= 2000H (Block 0) >= 2000H (Block 0) None1
1 00 >= 2000H (Block 0) < 2000H (Block 1) Block 1
1 00 < 2000H (Block 1) Any (Block 0) Block 0
1 01, 10, 11 Any (Block 0) >= 2000H (Block 0) None1
1 01, 10, 11 Any (Block 0) < 2000H (Block 1) Block 1
0 00 From external >= 2000H (Block 0) Block 0
0 00 From external < 2000H (Block 1) Block 1
0 01, 10, 11 From external Any (Block 0) Block 0
T4-5.0 1255
1. No operation is performed because code from one block may not program the same originating block

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


39
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
4.2.4 In-Application Programming Mode
Commands
IAP Enable
All of the following commands can only be initiated in the ORL SFCF, #40H
IAP mode. In all situations, writing the control byte to the
SFCM register will initiate all of the operations. All com-
mands will not be enabled if the security locks are enabled Erase Block 0 Erase Block 1
MOV SFAH, #00H OR MOV SFAH, #F0H
on the selected memory block.
The Program command is for programming new data into
the memory array. The portion of the memory array to be
programmed should be in the erased state, FFH. If the Set-Up
MOV SFDT, #55H
memory is not erased, it should first be erased with an
appropriate Erase command. Warning: Do not attempt to
write (program or erase) to a block that the code is cur-
rently fetching from. This will cause unpredictable pro-
Polling scheme Interrupt scheme
gram behavior and may corrupt program data. MOV SFCM, #0DH MOV SFCM, #8DH

4.2.4.1 Chip-Erase
The Chip-Erase command erases all bytes in both memory
SFST[2] indicates INT1 interrupt
blocks. This command is only allowed when EA#=0 (exter- operation completion indicates completion
nal memory execution). Additionally this command is not
permitted when the device is in level 4 locking. In all other 1255 F09.0

instances, this command ignores the Security Lock status


and will erase the security lock bits and re-map bits. 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
IAP Enable Bytes. The selection of the sector to be erased is deter-
ORL SFCF, #40H mined by the contents of SFAH and SFAL.

Set-Up
IAP Enable
MOV SFDT, #55H
ORL SFCF, #40H

Program sector address


Polling scheme Interrupt scheme MOV SFAH, #sector_addressH
MOV SFCM, #01H MOV SFCM, #81H MOV SFAL, #sector_addressL

SFST[2] indicates INT1 interrupt


operation completion indicates completion
Polling scheme Interrupt scheme
1255 F08.0
MOV SFCM, #0BH MOV SFCM, #8BH

4.2.4.2 Block-Erase
SFST[2] indicates INT1 interrupt
The Block-Erase command erases all bytes in one of the operation completion indicates completion
two memory blocks (Block 0 or Block 1). The selection of
the memory block to be erased is determined by the 1255 F10.0
(SFAH[7]) of the SuperFlash Address Register. For
SST89x516RD2, refer to Table 4-5. For SST89x5xRD2, 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 is as follows:

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


40
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
4.2.4.4 Byte-Program
The Byte-Program command programs data into a single
byte. The address is determined by the contents of SFAH IAP Enable
ORL SFCF, #40H
and SFAL. The data byte is in SFDT.

Program byte address


MOV SFAH, #byte_addressH
IAP Enable
MOV SFAL, #byte_addressL
ORL SFCF, #40H

Program byte address


MOV SFAH, #byte_addressH MOV SFCM, #0CH
MOV SFAL, #byte_addressL

SFDT register
contains data
Move data to SFDT
MOV SFDT, #data 1255 F12.0

4.2.4.6 Prog-SB3, Prog-SB2, Prog-SB1


Prog-SB3, Prog-SB2, Prog-SB1 commands are used to
Polling scheme Interrupt scheme
MOV SFCM, #0EH MOV SFCM, #8EH program the security bits (see Table 9-1). Completion of
any of these commands, the security options will be
updated immediately.
SFST[2] indicates INT1 interrupt Security bits previously in un-programmed state can be
operation completion indicates completion programmed by these commands. Prog-SB3, Prog-SB2
1255 F11.0
and Prog-SB1 commands should only reside in Block 1 or
external code memory.

4.2.4.5 Byte-Verify
The Byte-Verify command allows the user to verify that the IAP Enable
device has correctly performed an Erase or Program com- ORL SFCF, #40H

mand. Byte-Verify command returns the data byte in SFDT


Set-Up
if the command is successful. The user is required to check MOV SFDT, #0AAH
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 Program SB1 Program SB2 Program SB3
MOV SFCM, #0FH MOV SFCM, #03H MOV SFCM, #05H
completion and no interrupt is generated. or OR
or
OR or
MOV SFCM, #8FH MOV SFCM, #85H
MOV SFCM, #83H

Polling SFST[2] INT1# Interrupt


indicates completion indicates completion

1255 F13.0

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


41
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
4.2.4.7 Prog-SC0, Prog-SC1
Prog-SC0 command is used to program the SC0 bit. This
IAP Enable
command only changes the SC0 bit and has no effect on ORL SFCF, #40H
BSEL bit until after a reset cycle.
SC0 bit previously in un-programmed state can be pro- Set-up Enable-Clock-Double
MOV SFAH, #55H
grammed by this command. The Prog-SC0 command MOV SFDT, #0AAH
should reside only in Block 1 or external code memory.
Prog-SC1 command is used to program the SC1 bit. This
command only changes the SC1 bit and has no effect on Program Enable-Clock-Double Program Enable-Clock-Double
Polling scheme Interrupt scheme
SFCF[1] bit until after a reset cycle. MOV SFCM, #08H MOV SFCM, #88H
SC1 bit previously in un-programmed state can be pro-
grammed by this command. The Prog-SC1 command
Polling SFST[2] INT1# Interrupt
should reside only in Block 1 or external code memory. indicates completion indicates completion

1255 F15.0

IAP Enable
ORL SFCF, #40H There are no IAP counterparts for the external host com-
mands Select-Block0 and Select-Block1.

4.2.5 Polling
Set-up Program SC0 Set-up Program SC1
MOV SFAH, #5AH MOV SFAH, #0AAH A command that uses the polling method to detect flash
MOV SFDT, #0AAH MOV SFDT, #0AAH 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
Program SC0 or SC1 - Program SC0 or SC1 - Programming and Erase operation of the flash memory.
Polling scheme Interrupt scheme MOVC instruction will fail if it is directed at a flash block that
MOV SFCM, #09H MOV SFCM, #89H is still busy.

4.2.6 Interrupt Termination


Polling SFST[2] INT1# Interrupt If interrupt termination is selected, (SFCM[7] is set), then
indicates completion indicates completion an interrupt (INT1) will be generated to indicate flash opera-
1255 F14.0 tion 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
4.2.4.8 Enable-Clock-Double
of External Interrupt 1 during in-application programming.
Enable-Clock-Double command is used to make the MCU
run at 6 clocks per machine cycle. The standard (default) is In order to use an interrupt to signal flash operation termi-
12 clocks per machine cycle (i.e. clock double command nation. EX1 and EA bits of IE register must be set. The IT1
disabled). bit of TCON register must also be set for edge trigger
detection.
.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


42
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TABLE 4-6: IAP COMMANDS1 FOR SST89E/V516RD2


Operation SFCM [6:0]2 SFDT [7:0] SFAH [7:0] SFAL [7:0]
Chip-Erase3 01H 55H X4 X
Block-Erase5 0DH 55H AH X
Sector-Erase5 0BH X AH6 AL7
Byte-Program5 0EH DI8 AH AL
Byte-Verify (Read)5 0CH DO8 AH AL
Prog-SB19 0FH AAH X X
Prog-SB29 03H AAH X X
Prog-SB39 05H AAH X X
Prog-SC09 09H AAH 5AH X
Enable-Clock-Double9 08H AAH 55H X
T4-6.0 1255
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. Refer to Table 4-5 for address resolution
6. AH = Address high order byte
7. AL = Address low order byte
8. DI = Data Input, DO = Data Output, all other values are in hex.
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 4-7: IAP COMMANDS1 FOR SST89E/V5XRD2


Operation SFCM [6:0]2 SFDT [7:0] SFAH [7:0] SFAL [7:0]
Chip-Erase3 01H 55H X4 X
Block-Erase 0DH 55H AH5 X
Sector-Erase 0BH X AH AL6
Byte-Program 0EH DI7 AH AL
Byte-Verify (Read)8 0CH DO7 AH AL
Prog-SB19 0FH AAH X X
Prog-SB29 03H AAH X X
Prog-SB39 05H AAH X X
Prog-SC09 09H AAH 5AH X
Prog-SC19 09H AAH AAH X
Enable-Clock-Double9 08H AAH 55H X
T4-7.0 1255
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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


43
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

5.0 TIMERS/COUNTERS TABLE 5-2: TIMER/COUNTER 1


TMOD
5.1 Timers Internal External
The device has three 16-bit registers that can be used as Mode Function Control1 Control2
either timers or event counters. The three timers/counters 0 13-bit Timer 00H 80H
are denoted Timer 0 (T0), Timer 1 (T1), and Timer 2 (T2). Used as 1 16-bit Timer 10H 90H
Each is designated a pair of 8-bit registers in the SFRs. Timer 2 8-bit Auto-Reload 20H A0H
The pair consists of a most significant (high) byte and least 3 Does not run 30H B0H
significant (low) byte. The respective registers are TL0,
0 13-bit Timer 40H C0H
TH0, TL1, TH1, TL2, and TH2.
Used as 1 16-bit Timer 50H D0H
Counter 2 8-bit Auto-Reload 60H E0H
5.2 Timer Set-up
3 Not available - -
Refer to Table 3-10 for TMOD, TCON, and T2CON regis- T5-2.0 1255
ters regarding timers T0, T1, and T2. The following tables 1. The Timer is turned ON/OFF by setting/clearing bit
provide TMOD values to be used to set up Timers T0, T1, TR1 in the software.
2. The Timer is turned ON/OFF by the 1 to 0 transition
and T2.
on INT1# (P3.3) when TR1 = 1 (hardware control).
Except for the baud rate generator mode, the values given
for T2CON do not include the setting of the TR2 bit. There-
TABLE 5-3: TIMER/COUNTER 2
fore, bit TR2 must be set separately to turn the timer on.
T2CON
TABLE 5-1: TIMER/COUNTER 0 Internal External
Mode Control1 Control2
TMOD
16-bit Auto-Reload 00H 08H
Internal External
Mode Function Control1 Control2 16-bit Capture 01H 09H
0 13-bit Timer 00H 08H Used as Baud rate generator 34H 36H
Timer receive and transmit
Used as 1 16-bit Timer 01H 09H same baud rate
Timer 2 8-bit Auto-Reload 02H 0AH Receive only 24H 26H
3 Two 8-bit Timers 03H 0BH Transmit only 14H 16H
0 13-bit Timer 04H 0CH 16-bit Auto-Reload 02H 0AH
Used as
Used as 1 16-bit Timer 05H 0DH Counter 16-bit Capture 03H 0BH
Counter 2 8-bit Auto-Reload 06H 0EH T5-3.0 1255
3 Two 8-bit Timers 07H 0FH 1. Capture/Reload occurs only on timer/counter overflow.
2. Capture/Reload occurs on timer/counter overflow and a 1
T5-1.0 1255
to 0 transition on T2EX (P1.1) pin except when Timer 2 is
1. The Timer is turned ON/OFF by setting/clearing
used in the baud rate generating mode.
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).

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


44
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

5.3 Programmable Clock-Out 6.0 SERIAL I/O


A 50% duty cycle clock can be programmed to come out
on P1.0. This pin, besides being a regular I/O pin, has two 6.1 Full-Duplex, Enhanced UART
alternate functions. It can be programmed: The device serial I/O port is a full-duplex port that allows
1. to input the external clock for Timer/Counter 2, or data to be transmitted and received simultaneously in
hardware by the transmit and receive registers, respec-
2. to output a 50% duty cycle clock ranging from 122 tively, while the software is performing other tasks. The
Hz to 8 MHz at a 16 MHz operating frequency (61 transmit and receive registers are both located in the
Hz to 4 MHz in 12 clock mode). Serial Data Buffer (SBUF) special function register. Writ-
To configure Timer/Counter 2 as a clock generator, bit ing to the SBUF register loads the transmit register, and
C/#T2 (in T2CON) must be cleared and bit T20E in reading from the SBUF register obtains the contents of
T2MOD must be set. Bit TR2 (T2CON.2) also must be set the receive register.
to start the timer. The UART has four modes of operation which are selected
The Clock-Out frequency depends on the oscillator fre- by the Serial Port Mode Specifier (SM0 and SM1) bits of
quency and the reload value of Timer 2 capture registers the Serial Port Control (SCON) special function register. In
(RCAP2H, RCAP2L) as shown in this equation: all four modes, transmission is initiated by any instruction
that uses the SBUF register as a destination register.
Oscillator Frequency Reception is initiated in mode 0 when the Receive Interrupt
n x (65536 - RCAP2H, RCAP2L) (RI) flag bit of the Serial Port Control (SCON) SFR is
n= 2 (in 6 clock mode) cleared and the Reception Enable/ Disable (REN) bit of the
4 (in 12 clock mode) SCON register is set. Reception is initiated in the other
modes by the incoming start bit if the REN bit of the SCON
Where (RCAP2H, RCAP2L) = the contents of RCAP2H register is set.
and RCAP2L taken as a 16-bit unsigned integer.
In the Clock-Out mode, Timer 2 roll-overs will not generate 6.1.1 Framing Error Detection
an interrupt. This is similar to when it is used as a baud-rate Framing Error Detection is a feature, which allows the
generator. It is possible to use Timer 2 as a baud-rate gen- receiving controller to check for valid stop bits in modes 1,
erator and a clock generator simultaneously. Note, how- 2, or 3. Missing stops bits can be caused by noise in serial
ever, that the baud-rate and the Clock-Out frequency will lines or from simultaneous transmission by two CPUs.
not be the same.
Framing Error Detection is selected by going to the PCON
register and changing SMOD0 = 1 (see Figure 6-1). If a
stop bit is missing, the Framing Error bit (FE) will be set.
Software may examine the FE bit after each reception to
check for data errors. After the FE bit has been set, it can
only be cleared by software. Valid stop bits do not clear FE.
When FE is enabled, RI rises on the stop bit, instead of the
last data bit (see Figure 6-2 and Figure 6-3).

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)
To UART framing error control

1255 F16.0

FIGURE 6-1: FRAMING ERROR BLOCK DIAGRAM

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


45
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

RXD
D0 D1 D2 D3 D4 D5 D6 D7

Start Data byte Stop


bit bit
RI
SMOD0=X
FE
SMOD0=1
1255 F17.0

FIGURE 6-2: UART TIMINGS IN MODE 1

RXD
D0 D1 D2 D3 D4 D5 D6 D7 D8

Start Data byte Ninth Stop


bit bit bit
RI
SMOD0=0
RI
SMOD0=1
FE
SMOD0=1
1255 F18.0

FIGURE 6-3: UART TIMINGS IN MODES 2 AND 3

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


46
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
6.1.2 Automatic Address Recognition
Automatic Address Recognition helps to reduce the MCU Slave 2
time and power required to talk to multiple serial devices. SADDR = 1111 0011
Each device is hooked together sharing the same serial SADEN = 1111 1001
link with its own address. In this configuration, a device is GIVEN = 1111 0XX1
only interrupted when it receives its own address, thus
eliminating the software overhead to compare addresses. 6.1.2.1 Using the Given Address to Select Slaves
Any bits masked off by a 0 from SADEN become a “don’t
This same feature helps to save power because it can be
care” bit for the given address. Any bit masked off by a 1,
used in conjunction with idle mode to reduce the system’s
becomes ANDED with SADDR. The “don’t cares” provide
overall power consumption. Since there may be multiple
flexibility in the user-defined addresses to address more
slaves hooked up serial to one master, only one slave
slaves when using the given address.
would have to be interrupted from idle mode to respond to
the master’s transmission. Automatic Address Recognition Shown in the example above, Slave 1 has been given an
(AAR) allows the other slaves to remain in idle mode while address of 1111 0001 (SADDR). The SADEN byte has
only one is interrupted. By limiting the number of interrup- been used to mask off bits to a given address to allow more
tions, the total current draw on the system is reduced. combinations of selecting Slave 1 and Slave 2. In this case
for the given addresses, the last bit (LSB) of Slave 1 is a
There are two ways to communicate with slaves: a group of
“don’t care” and the last bit of Slave 2 is a 1. To communi-
them at once, or all of them at once. To communicate with a
cate with Slave 1 and Slave 2, the master would need to
group of slaves, the master sends out an address called
send an address with the last bit equal to 1 (e.g. 1111
the given address. To communicate with all the slaves, the
0001) since Slave 1’s last bit is a don’t care and Slave 2’s
master sends out an address called the “broadcast”
last bit has to be a 1. To communicate with Slave 1 alone,
address.
the master would send an address with the last bit equal to
AAR can be configured as mode 2 or 3 (9-bit modes) and 0 (e.g. 1111 0000), since Slave 2’s last bit is a 1. See the
setting the SM2 bit in SCON. Each slave has its own SM2 table below for other possible combinations.
bit set waiting for an address byte (9th bit = 1). The Receive
Interrupt (RI) flag will only be set when the received byte
Select Slave 1 Only
matches either the given address or the broadcast
address. Next, the slave then clears its SM2 bit to enable Slave 1 Given Address Possible Addresses
reception of the data bytes (9th bit = 0) from the master. 1111 0X0X 1111 0000
When the 9th bit = 1, the master is sending an address. 1111 0100
When the 9th bit = 0, the master is sending actual data.
If mode 1 is used, the stop bit takes the place of the 9th bit. Select Slave 2 Only
Bit RI is set only when the received command frame
Slave 2 Given Address Possible Addresses
address matches the device’s address and is terminated
1111 0XX1 1111 0111
by a valid stop bit. Note that mode 0 cannot be used. Set-
1111 0011
ting SM2 bit in the SCON register in mode 0 will have no
effect.
Each slave’s individual address is specified by SFR Select Slaves 1 & 2
SADDR. SFR SADEN is a mask byte that defines “don’t Slaves 1 & 2 Possible Addresses
care” bits to form the given address when combined with 1111 0001
SADDR. See the example below: 1111 0101

If the user added a third slave such as the example below:


Slave 1
SADDR = 1111 0001
SADEN = 1111 1010 Slave 3
GIVEN = 1111 0X0X SADDR = 1111 1001
SADEN = 1111 0101
GIVEN = 1111 X0X1

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


47
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

Select Slave 3 Only 6.2 Serial Peripheral Interface


Slave 2 Given Address Possible Addresses
6.2.1 SPI Features
1111 X0X1 1111 1011
1111 1001 • Master or slave operation
• 10 MHz bit frequency (max)
The user could use the possible addresses above to select • LSB first or MSB first data transfer
slave 3 only. Another combination could be to select slave 2
• Four programmable bit rates
and 3 only as shown below.
• End of transmission (SPIF)
• Write collision flag protection (WCOL)
Select Slaves 2 & 3 Only
• Wake up from idle mode (slave mode only)
Slaves 2 & 3 Possible Addresses
1111 0011 6.2.2 SPI Description
The serial peripheral interface (SPI) allows high-speed syn-
More than one slave may have the same SADDR address
chronous data transfer between the SST89E/V554A and
as well, and a given address could be used to modify the
peripheral devices or between several SST89E/V554A
address so that it is unique.
devices.
6.1.2.2 Using the Broadcast Address to Select Slaves Figure 6-4 shows the correspondence between master
Using the broadcast address, the master can communicate and slave SPI devices. The SCK pin is the clock output and
with all the slaves at once. It is formed by performing a logi- input for the master and slave modes, respectively. The SPI
cal OR of SADDR and SADEN with ‘0’s in the result treated clock generator will start following a write to the master
as “don’t cares”. 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
Slave 1
one byte of data, the SPI clock generator is stopped and
1111 0001 = SADDR the SPIF flag is set. An SPI interrupt request will be gener-
+1111 1010 = SADEN ated if the SPI Interrupt Enable bit (SPIE) and the Serial
1111 1X11 = Broadcast Port Interrupt Enable bit (ES) are both set.

“Don’t cares” allow for a wider range in defining the broad- An external master drives the Slave Select input pin, SS#/
cast address, but in most cases, the broadcast address will P1[4], low to select the SPI module as a slave. If SS#/P1[4]
be FFH. 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
On reset, SADDR and SADEN are “0”. This produces an input port pin.
given address of all “don’t cares” as well as a broadcast
address of all “don’t cares.” This effectively disables Auto- CPHA and CPOL control the phase and polarity of the SPI
matic Addressing mode and allows the microcontroller to clock. Figures 6-5 and 6-6 show the four possible combina-
function as a standard 8051, which does not make use of tions of these two bits.
this feature.

MSB Master LSB MISO MISO MSB Slave LSB


8-bit Shift Register 8-bit Shift Register

MOSI MOSI

SPI SCK SCK


Clock Generator SS# SS#
1255 F19.0
VDD VSS

FIGURE 6-4: SPI MASTER-SLAVE INTERCONNECTION

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


48
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
6.2.3 SPI Transfer Formats

SCK Cycle # 1 2 3 4 5 6 7 8
(for reference)
SCK (CPOL=0)

SCK (CPOL=1)

MOSI MSB 6 5 4 3 2 1 LSB


(from Master)

MISO MSB 6 5 4 3 2 1 LSB


(from Slave)
SS# (to Slave)

1255 F20.0

FIGURE 6-5: SPI TRANSFER FORMAT WITH CPHA = 0

SCK Cycle # 1 2 3 4 5 6 7 8
(for reference)
SCK (CPOL=0)

SCK (CPOL=1)

MOSI MSB 6 5 4 3 2 1 LSB


(from Master)

MISO MSB 6 5 4 3 2 1 LSB


(from Slave)
SS# (to Slave)

1255 F21.0

FIGURE 6-6: SPI TRANSFER FORMAT WITH CPHA = 1

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


49
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

7.0 WATCHDOG TIMER


The device offers a programmable Watchdog Timer (WDT) The WDTS flag bit is set by WDT overflow and is not
for fail safe protection against software deadlock and auto- changed by WDT reset. User software can clear WDTS by
matic recovery. writing “1” to it.
To protect the system against software deadlock, the user Figure 7-1 provides a block diagram of the WDT. Two SFRs
software must refresh the WDT within a user-defined time (WDTC and WDTD) control watchdog timer operation.
period. If the software fails to do this periodical refresh, an During idle mode, WDT operation is temporarily sus-
internal hardware reset will be initiated if enabled (WDRE= pended, and resumes upon an interrupt exit from idle.
1). The software can be designed such that the WDT times
The time-out period of the WDT is calculated as follows:
out if the program does not work properly.
Period = (255 - WDTD) * 344064 * 1/fCLK (XTAL1)
The WDT in the device uses the system clock (XTAL1) as
its time base. So strictly speaking, it is a watchdog counter where WDTD is the value loaded into the WDTD register
rather than a watchdog timer. The WDT register will incre- and fOSC is the oscillator frequency.
ment every 344,064 crystal clocks. The upper 8-bits of the
time base register (WDTD) are used as the reload register
of the WDT.

344064
clks WDT Reset
CLK (XTAL1) Internal Reset
Counter WDT Upper Byte

Ext. RST

WDTC

WDTD
1255 F22.0

FIGURE 7-1: BLOCK DIAGRAM OF PROGRAMMABLE WATCHDOG TIMER

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


50
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

8.0 PROGRAMMABLE COUNTER ARRAY


The Programmable Counter Array (PCA) present on the PCA. External events associated with modules are shared
SST89E/V5xRD2 is a special 16-bit timer that has five 16- with corresponding Port 1 pins. Modules not using the port
bit capture/compare modules. Each of the modules can be pins can still be used for standard I/O.
programmed to operate in one of four modes: rising and/or
Each of the five modules can be programmed in any of the
falling edge capture, software timer, high-speed output, or
following modes:
pulse width modulator. The 5th module can be pro-
grammed as a Watchdog Timer in addition to the other four • Rising and/or falling edge capture
modes. Each module has a pin associated with it in port 1. • Software timer
Module 0 is connected to P1.3 (CEX0), module 1 to P1[4] • High speed output
(CEX1), module 2 to P1[5] (CEX2), module 3 to P1[6]
• Watchdog Timer (Module 4 only)
(CEX3), and module 4 to P1[7] (CEX4). PCA configuration
is shown in Figure 8-1. • Pulse Width Modulator (PWM)

8.1 PCA Overview 8.2 PCA Timer/Counter


The PCA timer is a free-running 16-bit timer consisting of
PCA provides more timing capabilities with less CPU inter-
registers CH and CL (the high and low bytes of the count
vention than the standard timer/counter. Its advantages
values). The PCA timer is common time base for all five
include reduced software overhead and improved accuracy.
modules and can be programmed to run at: 1/6 the oscilla-
The PCA consists of a dedicated timer/counter which tor frequency, 1/2 the oscillator frequency, Timer 0 overflow,
serves as the time base for an array of five compare/cap- or the input on the ECI pin (P1.2). The timer/counter source
ture modules. Figure 8-1 shows a block diagram of the is determined from the CPS1 and CPS0 bits in the CMOD
SFR as follows (see “PCA Timer/Counter Mode Register
(CMOD)” on page 28):

TABLE 8-1: PCA TIMER/COUNTER SOURCE


CPS1 CPS0 12 Clock Mode 6 Clock Mode
0 0 fOSC /12 fOSC /6
0 1 fOSC /4 fOSC /2
1 0 Timer 0 overflow Timer 0 overflow
1 1 External clock at ECI pin External clock at ECI pin
(maximum rate = fOSC /8) (maximum rate = fOSC /4)
T8-1.0 1255

16 Bits Each

Module 0 P1.3/CEX0

Module 1 P1.4/CEX1
16 Bits

PCA Timer/Counter Module 2 P1.5/CEX2

Module 3 P1.6/CEX3

Module 4 P1.7/CEX4

1255 F23.0

FIGURE 8-1: PCA TIMER/COUNTER AND COMPARE/CAPTURE MODULES

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


51
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
The table below summarizes various clock inputs at two common frequencies.

TABLE 8-2: PCA TIMER/COUNTER INPUTS


Clock Increments
PCA Timer/Counter Mode 12 MHz 16 MHz
Mode 0: fOSC/12 1 µsec 0.75 µsec
Mode 1: 330 nsec 250 nsec
Mode 2: Timer 0 Overflows1
Timer 0 programmed in:
8-bit mode 256 µsec 192 µsec
16-bit mode 65 msec 49 µsec
8-bit auto-reload 1 to 255 µsec 0.75 to 191 µsec
Mode 3: External Input MAX 0.66 µsec 0.50 µsec
T8-2.0 1255
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 Without Interrupt Enabled With Interrupt Enabled
Internal clock, fOSC/12 00H 01H
Internal clock, fOSC/4 02H 03H
Timer 0 overflow 04H 05H
External clock at P1.2 06H 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 27.)

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


52
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

8.3 Compare/Capture Modules Bits CAPN (CCAPMn.4) and CAPP (CCAPMn.5) deter-
mine whether the capture input will be active on a positive
Each PCA module has an associated SFR with it. These
edge or negative edge. The CAPN bit enables the negative
registers are: CCAPM0 for module 0, CCAPM1 for module
edge that a capture input will be active on, and the CAPP
1, etc. Refer to “PCA Compare/Capture Module Mode Reg-
bit enables the positive edge. When both bits are set, both
ister (CCAPMn)” on page 29 for details. The registers each
edges will be enabled and a capture will occur for either
contain 7 bits which are used to control the mode each
transition. The last bit in the register ECOM (CCAPMn.6)
module will operate in. The ECCF bit (CCAPMn.0 where n
when set, enables the comparator function. Table 8-5
= 0, 1, 2, 3, or 4 depending on module) will enable the CCF
shows the CCAPMn settings for the various PCA functions.
flag in the CCON SFR to generate an interrupt when a
match or compare occurs. PWM (CCAPMn.1) enables the There are two additional register associated with each of
pulse width modulation mode. The TOG bit (CCAPMn.2) the PCA modules: CCAPnH and CCAPnL. They are regis-
when set, causes the CEX output associated with the mod- ters that hold the 16-bit count value when a capture occurs
ule to toggle when there is a match between the PCA or a compare occurs. When a module is used in PWM
counter and the module’s capture/compare register. When mode, these registers are used to control the duty cycle of
there is a match between the PCA counter and the mod- the output. See Figure 8-1.
ule’s capture/compare register, the MATn (CCAPMn.3) and
the CCFn bit in the CCON register to be set.

TABLE 8-4: PCA HIGH AND LOW REGISTER COMPARE/CAPTURE MODULES

Direct Bit Address, Symbol, or Alternative Port Function RESET


Symbol Description Address MSB LSB Value
CCAP0H PCA Module 0 FAH CCAP0H[7:0] 00H
CCAP0L Compare/Capture EAH CCAP0L[7:0] 00H
Registers
CCAP1H PCA Module 1 FBH CCAP1H[7:0] 00H
CCAP1L Compare/Capture EBH CCAP1L[7:0] 00H
Registers
CCAP2H PCA Module 2 FCH CCAP2H[7:0] 00H
CCAP2L Compare/Capture ECH CCAP2L[7:0] 00H
Registers
CCAP3H PCA Module 3 FDH CCAP3H[7:0] 00H
CCAP3L Compare/Capture EDH CCAP3L[7:0] 00H
Registers
CCAP4H PCA Module 4 FEH CCAP4H[7:0] 00H
CCAP4L Compare/Capture EEH CCAP4L[7:0] 00H
Registers
T8-4.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


53
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 8-5: PCA MODULE MODES
Without Interrupt enabled
-1 ECOMy2 CAPPy2 CAPNy2 MATy2 TOGy2 PWMy2 ECCFy2 Module Code
- 0 0 0 0 0 0 0 No Operation
- 0 1 0 0 0 0 0 16-bit capture on positive-edge trigger at CEX[4:0]
- 0 0 1 0 0 0 0 16-bit capture on negative-edge trigger at CEX[4:0]
- 0 1 1 0 0 0 0 16-bit capture on positive/negative-edge
trigger at CEX[4:0]
- 1 0 0 1 0 0 0 Compare: software timer
- 1 0 0 1 1 0 0 Compare: high-speed output
- 1 0 0 0 0 1 0 Compare: 8-bit PWM
- 1 0 0 1 0 or 13 0 0 Compare: PCA WDT (CCAPM4 only)4
T8-5.0 1255
1. User should not write ‘1’s to reserved bits. The value read from a reserved bit is indeterminate.
2. y = 0, 1, 2, 3, 4
3. A 0 disables toggle function. A 1 enables toggle function on CEX[4:0] pin.
4. For PCA WDT mode, also set the WDTE bit in the CMOD register to enable the reset output signal.

TABLE 8-6: PCA MODULE MODES


With Interrupt enabled
-1 ECOMy2 CAPPy2 CAPNy2 MATy2 TOGy2 PWMy2 ECCFy2 Module Code
- 0 1 0 0 0 0 1 16-bit capture on positive-edge trigger at CEX[4:0]
- 0 0 1 0 0 0 1 16-bit capture on negative-edge trigger at CEX[4:0]
- 0 1 1 0 0 0 1 16-bit capture on positive/negative-edge
trigger at CEX[4:0]
- 1 0 0 1 0 0 1 Compare: software timer
- 1 0 0 1 1 0 1 Compare: high-speed output
- 1 0 0 0 0 1 X3 Compare: 8-bit PWM
- 1 0 0 1 0 or 14 0 X5 Compare: PCA WDT (CCAPM4 only)6
T8-6.0 1255
1. User should not write ‘1’s to reserved bits. The value read from a reserved bit is indeterminate.
2. y = 0, 1, 2, 3, 4
3. No PCA interrupt is needed to generate the PWM.
4. A 0 disables toggle function. A 1 enables toggle function on CEX[4:0] pin.
5. Enabling an interrupt for the Watchdog Timer would defeat the purpose of the Watchdog Timer.
6. For PCA WDT mode, also set the WDTE bit in the CMOD register to enable the reset output signal.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


54
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
8.3.1 Capture Mode
Capture mode is used to capture the PCA timer/counter and CL) into the module’s capture registers (CCAPnL and
value into a module’s capture registers (CCAPnH and CCAPnH). If the CCFn bit for the module in the CCON
CCAPnL). The capture will occur on a positive edge, nega- SFR and the ECCFn bit in the CCAPMn SFR are set, then
tive edge, or both on the corresponding module’s pin. To an interrupt will be generated. In the interrupt service rou-
use one of the PCA modules in the capture mode, either tine, the 16-bit capture value must be saved in RAM before
one or both the CCAPM bits CAPN and CAPP for that the next event capture occurs. If a subsequent capture
module must be set. When a valid transition occurs on the occurred, the original capture values would be lost. After
CEX pin corresponding to the module used, the PCA hard- flag event flag has been set by hardware, the user must
ware loads the 16-bit value of the PCA counter register (CH clear the flag in software. (See Figure 8-2)

CCON CF CR CCF4 CCF3 CCF2 CCF1 CCF0

PCA Interrupt

PCA Timer/Counter

CH CL

Capture
CEXn

CCAPnH CCAPnL

CCAPMn ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn 1255 F24.0
n=0 to 4
0 0 0 0

FIGURE 8-2: PCA CAPTURE MODE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


55
F r e e
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
8.3.2 16-Bit Software Timer Mode If necessary, a new 16-bit compare value can be loaded
The 16-bit software timer mode is used to trigger interrupt into CCAPnH and CCAPnL during the interrupt routine.
routines, which must occur at periodic intervals. It is setup The user should be aware that the hardware temporarily
by setting both the ECOM and MAT bits in the module’s disables the comparator function while these registers are
CCAPMn register. The PCA timer will be compared to the being updated so that an invalid match will not occur. Thus,
module’s capture registers (CCAPnL and CCAPnH) and it is recommended that the user write to the low byte first
when a match occurs, an interrupt will occur, if the CCFn (CCAPnL) to disable the comparator, then write to the high
(CCON SFR) and the ECCFn (CCAPMn SFR) bits for the byte (CCAPnH) to re-enable it. If any updates to the regis-
module are both set. ters are done, the user may want to hold off any interrupts
from occurring by clearing the EA bit. (See Figure 8-3)

CF CR CCF4 CCF3 CCF2 CCF1 CCF0 CCON


Write to
CCAPnL Reset
Write to PCA Interrupt
CCAPnH CCAPnL
CCAPnH

1 0
Enable Match
16-bit Comparator

CH CL

PCA Timer/Counter

ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn CCAPMn


n=0 to 4
0 0 0 0
1255 F25.0

FIGURE 8-3: PCA COMPARE MODE (SOFTWARE TIMER)

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


56
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
8.3.3 High Speed Output Mode High speed output mode is much more accurate than tog-
The high speed output mode is used to toggle a port pin gling pins since the toggle occurs before branching to an
when a match occurs between the PCA timer and the pre- interrupt. In this case, interrupt latency will not affect the
loaded value in the compare registers. In this mode, the accuracy of the output. When using high speed output,
CEX output pin (on port 1) associated with the PCA mod- using an interrupt is optional. Only if the user wishes to
ule will toggle every time there is a match between the PCA change the time for the next toggle is it necessary to
counter (CH and CL) and the capture registers (CCAPnH update the compare registers. Otherwise, the next toggle
and CCAPnL). To activate this mode, the user must set will occur when the PCA timer rolls over and matches the
TOG, MAT, and ECOM bits in the module’s CCAPMn SFR. last compare value. (See Figure 8-4)

CF CR CCF4 CCF3 CCF2 CCF1 CCF0 CCON


Write to
CCAPnL Reset
Write to PCA Interrupt
CCAPnH CCAPnL
CCAPnH

1 0
Enable Match
16-bit Comparator

Toggle

CH CL CEXn

PCA Timer/Counter

ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn CCAPMn


n=0 to 4
0 0 0
1255 F26.0

FIGURE 8-4: PCA HIGH SPEED OUTPUT MODE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


57
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
8.3.4 Pulse Width Modulator
The Pulse Width Modulator (PWM) mode is used to gener- loaded into the high byte (CCAPnH). Since writes to the
ate 8-bit PWMs by comparing the low byte of the PCA CCAPnH register are asynchronous, a new value written to
timer (CL) with the low byte of the compare register the high byte will not be shifted into CCAPnL for compari-
(CCAPnL). When CL < CCAPnL the output is low. When son until the next period of the output (when CL rolls over
CL ≥ CCAPnL the output is high. To activate this mode, the from 255 to 00).
user must set the PWM and ECOM bits in the module’s
To calculate values for CCAPnH for any duty cycle, use
CCAPMn SFR. (See Figure 8-5 and Table 8-7)
the following equation:
In PWM mode, the frequency of the output depends on the
CCAPnH = 256(1 - Duty Cycle)
source for the PCA timer. Since there is only one set of CH
and CL registers, all modules share the PCA timer and fre- where CCAPnH is an 8-bit integer and Duty Cycle is a
quency. Duty cycle of the output is controlled by the value fraction.

CCAPnH

CCAPnL

0
Enable CL < CCAPnL
8-bit Comparator CEXn
CL >= CCAPnL
1

CL
Overflow
PCA Timer/Counter

ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn CCAPMn


n=0 to 4 1255 F27.0
0 0 0 0 0

FIGURE 8-5: PCA PULSE WIDTH MODULATOR MODE

TABLE 8-7: PULSE WIDTH MODULATOR FREQUENCIES


PWM Frequency
PCA Timer Mode 12 MHz 16 MHz
1/12 Oscillator Frequency 3.9 KHz 5.2 KHz
1/4 Oscillator Frequency 11.8 KHz 15.6 KHz
Timer 0 Overflow:
8-bit 15.5 Hz 20.3 Hz
16-bit 0.06 Hz 0.08 Hz
8-bit Auto-Reload 3.9 KHz to 15.3 Hz 5.2 KHz to 20.3 Hz
External Input (Max) 5.9 KHz 7.8 KHz
T8-7.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


58
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
8.3.5 Watchdog Timer Use the code below to initialize the Watchdog Timer. Mod-
The Watchdog Timer mode is used to improve reliability in ule 4 can be configured in either compare mode, and the
the system without increasing chip count (See Figure 8-6). WDTE bit in CMOD must also be set. The user’s software
Watchdog Timers are useful for systems that are suscepti- then must periodically change (CCAP4H, CCAP4L) to
ble to noise, power glitches, or electrostatic discharge. It keep a match from occurring with the PCA timer (CH, CL).
can also be used to prevent a software deadlock. If during This code is given in the Watchdog routine below.
the execution of the user’s code, there is a deadlock, the ;==============================================
Watchdog Timer will time out and an internal reset will Init_Watchdog:
occur. Only module 4 can be programmed as a Watchdog
Timer (but still can be programmed to other modes if the MOVCCAPM4, #4CH; Module 4 in compare mode
Watchdog Timer is not used). MOVCCAP4L, #0FFH; Write to low byte first

To use the Watchdog Timer, the user pre-loads a 16-bit MOVCCAP4H, #0FFH; Before PCA timer counts up
; to FFFF Hex, these compare
value in the compare register. Just like the other compare ; values must be changed.
modes, this 16-bit value is compared to the PCA timer
ORLCMOD, #40H; Set the WDTE bit to enable the
value. If a match is allowed to occur, an internal reset will be ; watchdog timer without
generated. This will not cause the RST pin to be driven high. ; changing the other bits in
; CMOD
In order to hold off the reset, the user has three options: ;==============================================
1. periodically change the compare value so it will ;Main program goes here, but call WATCHDOG periodically.
never match the PCA timer,
;==============================================
2. periodically change the PCA timer value so it will WATCHDOG:
never match the compare values, or
CLR EA; Hold off interrupts
3. disable the watchdog timer by clearing the WDTE
MOVCCAP4L, #00; Next compare value is within
bit before a match occurs and then re-enable it.
MOVCCAP4H, CH; 65,535 counts of the
The first two options are more reliable because the Watch- ; current PCA
dog Timer is never disabled as in option #3. If the program SETBEA; timer value
counter ever goes astray, a match will eventually occur and
cause an internal reset. The second option is also not rec- RET
ommended if other PCA modules are being used. Remem- ;==============================================
ber, the PCA timer is the time base for all modules;
This routine should not be part of an interrupt service rou-
changing the time base for other modules would not be a
tine. If the program counter goes astray and gets stuck in an
good idea. Thus, in most application the first solution is the
infinite loop, interrupts will still be serviced and the watchdog
best option.
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.

CIDL WDTE CPS1 CPS0 ECF CMOD


Write to
CCAP4L Reset
Write to CCAP4H CCAP4L Module 4
CCAP4H

1 0
Enable Match
16-bit Comparator Reset

CH CL

PCA Timer/Counter

ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn CCAPM4


0 0 1 X 0 X
1255 F28.0

FIGURE 8-6: PCA WATCHDOG TIMER (MODULE 4 ONLY)

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


59
F r e e
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

9.0 SECURITY LOCK


The security lock protects against software piracy and pre- issued through the command mailbox register, SFCM, exe-
vents the contents of the flash from being read by unautho- cuted from a Locked (hard locked or soft locked) block, can
rized parties. It also protects against code corruption be operated on a soft locked block: Block-Erase, Sector-
resulting from accidental erasing and programming to the Erase, Byte-Program and Byte-Verify.
internal flash memory. There are two different types of
In external host mode, SoftLock behaves the same as a
security locks in the device security lock system: hard lock
hard lock.
and SoftLock.

9.3 Security Lock Status


9.1 Hard Lock
The three bits that indicate the device security lock
When hard lock is activated, MOVC or IAP instructions exe-
status are located in SFST[7:5]. As shown in Figure 9-
cuted from an unlocked or soft locked program address
1 and Table 9-1, the three security lock bits control the
space, are disabled from reading code bytes in hard locked
lock status of the primary and secondary blocks of
memory blocks (See Table 9-2). Hard lock can either lock
memory. There are four distinct levels of security lock
both flash memory blocks or just lock the 8 KByte flash
status. In the first level, none of the security lock bits
memory block (Block 1). All external host and IAP com-
are programmed and both blocks are unlocked. In the
mands except for Chip-Erase are ignored for memory
second level, although both blocks are now locked and
blocks that are hard locked.
cannot be programmed, they are available for read
operation via Byte-Verify. In the third level, three differ-
9.2 SoftLock ent options are available: Block 1 hard lock / Block 0
SoftLock allows flash contents to be altered under a secure SoftLock, SoftLock on both blocks, and hard lock on
environment. This lock option allows the user to update both blocks. Locking both blocks is the same as Level
program code in the soft locked memory block through in- 2, Block 1 except read operation isn’t available. The
application programming mode under a predetermined fourth level of security is the most secure level. It
secure environment. For example, if Block 1 (8K) memory doesn’t allow read/program of internal memory or boot
block is locked (hard locked or soft locked), and Block 0 from external memory. For details on how to program
memory block is soft locked, code residing in Block 1 can the security lock bits refer to the external host mode
program Block 0. The following IAP mode commands and in-application programming sections.

UUU/NN Level 1

PUU/SS Level 2

UPU/SS UUP/LS
Level 3
UPP/LL PPU/LS PUP/LL UPP/LL

PPP/LL Level 4
1255 F29.0

FIGURE 9-1: SECURITY LOCK LEVELS


Note: P = Programmed (Bit logic state = 0), U = Unprogrammed (Bit logic state = 1), N = Not Locked, L = Hard locked, S = Soft locked

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


60
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 9-1: SECURITY LOCK OPTIONS
Security Lock Bits1,2 Security Status of:
Level SFST[7:5] SB1 SB21 SB31 Block 1 Block 0 Security Type
1 000 U U U Unlock Unlock No Security Features are Enabled.
2 100 P U U SoftLock SoftLock MOVC instructions executed from
external program memory are dis-
abled from fetching code bytes from
internal memory, EA# is sampled and
latched on Reset, and further pro-
gramming of the flash is disabled.
3 011 U P P Hard Lock Hard Lock Level 2 plus Verify disabled, both
101 P U P blocks locked.
010 U P U SoftLock SoftLock Level 2 plus Verify disabled. Code in
Block 1 may program Block 0 and vice
versa.
110 P P U Hard Lock SoftLock Level 2 plus Verify disabled. Code in
001 U U P Block 1 may program Block 0.
4 111 P P P Hard Lock Hard Lock Same as Level 3 hard lock/hard lock,
but MCU will start code execution
from the internal memory regardless
of EA#.
T9-1.0 1255
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)

9.4 Read Operation Under Lock Condition


The status of security bits SB1, SB2, and SB3 can be read
when the read command is disabled by security lock.
There are three ways to read the status.
1. External host mode: Read-back = 00H (locked)
2. IAP command: Read-back = previous SFDT data
3. MOVC: Read-back = FFH (blank)

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


61
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 9-2: SECURITY LOCK ACCESS TABLE

Source Target Byte-Verify Allowed MOVC Allowed


Level SFST[7:5] Address1 Address2 External Host3 IAP 516RD2 5xRD2
Block 0/1 N N Y Y
Block 0/1
111b External N/A N/A N Y
4
(hard lock on both blocks) Block 0/1 N N N N
External
External N/A N/A N Y
Block 0/1 N N Y Y
Block 0/1
011b/101b External N/A N/A N Y
(hard lock on both blocks) Block 0/1 N N N N
External
External N/A N/A Y Y
Block 0 N N Y Y
Block 0 Block 1 N N N N
External N/A N/A N Y
001b/110b Block 0 N Y Y Y
(Block 0 = SoftLock,
Block 1 = hard lock) Block 1 Block 1 N N Y Y
External N/A N/A N Y
3
Block 0/1 N N N N
External
External N/A N/A Y Y
Block 0 N N Y Y
Block 0 Block 1 N Y Y Y
External N/A N/A N Y
010b Block 0 N Y Y Y
(SoftLock on both blocks) Block 1 Block 1 N N Y Y
External N/A N/A N Y
Block 0/1 N N N N
External
External N/A N/A Y Y
Block 0 Y N Y Y
Block 0 Block 1 Y Y Y Y
External N/A N/A N Y
100b Block 0 Y Y Y Y
2
(SoftLock on both blocks) Block 1 Block 1 Y N Y Y
External N/A N/A N Y
Block 0/1 Y N N N
External
External N/A N/A Y Y
Block 0 Y N Y Y
Block 0 Block 1 Y Y Y Y
External N/A N/A N Y
000b Block 0 Y Y Y Y
1
(unlock) Block 1 Block 1 Y N Y Y
External N/A N/A N Y
Block 0/1 Y Y N Y
External
External N/A N/A Y Y
T9-2.0 1255
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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


62
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

10.0 RESET
VDD
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 10µF VDD
device, a logic level high must be applied to the RST pin for -
at least two machine cycles (24 clocks), after the oscillator RST

becomes stable. ALE, PSEN# are weakly pulled high dur- 8.2K
SST89E/V5xxRD2
ing reset. During reset, ALE and PSEN# output a high level
C2
in order to perform a proper reset. This level must not be
XTAL2
affected by external element. A system reset will not affect
the 1 KByte of on-chip RAM while the device is running,
XTAL1
however, the contents of the on-chip RAM during power up
C1
are indeterminate. Following reset, all Special Function
Registers (SFR) return to their reset values outlined in
Tables 3-7 to 3-11. 1255 F30.0

FIGURE 10-1: POWER-ON RESET CIRCUIT


10.1 Power-on Reset
At initial power up, the port pins will be in a random state 10.2 Software Reset
until the oscillator has started and the internal reset algo- The software reset is executed by changing SFCF[1]
rithm has weakly pulled all pins high. Powering up the (SWR) from “0” to “1”. A software reset will reset the pro-
device without a valid reset could cause the MCU to gram counter to address 0000H. All SFR registers will be
start executing instructions from an indeterminate set to their reset values, except SFCF[1] (SWR), WDTC[2]
location. Such undefined states may inadvertently cor- (WDTS), and RAM data will not be altered.
rupt the code in the flash.
When power is applied to the device, the RST pin must be 10.3 Brown-out Detection Reset
held high long enough for the oscillator to start up (usually The device includes a brown-out detection circuit to protect
several milliseconds for a low frequency crystal), in addition the system from severed supplied voltage VDD fluctuations.
to two machine cycles for a valid power-on reset. An exam- SST89E5xxRD2 internal brown-out detection threshold is
ple of a method to extend the RST signal is to implement a 3.85V, SST89V5xxRD2 brown-out detection threshold is
RC circuit by connecting the RST pin to VDD through a 10 2.35V. For brown-out voltage parameters, please refer to
µF capacitor and to VSS through an 8.2KΩ resistor as Tables 14-6 and 14-7.
shown in Figure 10-1. Note that if an RC circuit is being
used, provisions should be made to ensure the VDD rise When VDD drops below this voltage threshold, the brown-
time does not exceed 1 millisecond and the oscillator start- out detector triggers the circuit to generate a brown-out
up time does not exceed 10 milliseconds. interrupt but the CPU still runs until the supplied voltage
returns to the brown-out detection voltage VBOD. The
For a low frequency oscillator with slow start-up time the default operation for a brown-out detection is to cause a
reset signal must be extended in order to account for the processor reset.
slow start-up time. This method maintains the necessary
relationship between VDD and RST to avoid programming VDD must stay below VBOD at least four oscillator clock peri-
at an indeterminate location, which may cause corruption ods before the brown-out detection circuit will respond.
in the code of the flash. The power-on detection is Brown-out interrupt can be enabled by setting the EBO bit
designed to work as power up initially, before the voltage in IEA register (address E8H, bit 3). If EBO bit is set and a
reaches the brown-out detection level. The POF flag in the brown-out condition occurs, a brown-out interrupt will be
PCON register is set to indicate an initial power up condi- generated to execute the program at location 004BH. It is
tion. The POF flag will remain active until cleared by soft- required that the EBO bit be cleared by software after the
ware. Please refer to Section 3.5, PCON register definition brown-out interrupt is serviced. Clearing EBO bit when the
for detail information. brown-out condition is active will properly reset the device.
For more information on system level design techniques, If brown-out interrupt is not enabled, a brown-out condition
please review the Design Considerations for the SST will reset the program to resume execution at location
FlashFlex51 Family Microcontroller application note. 0000H.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


63
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

11.0 INTERRUPTS

11.1 Interrupt Priority and Polling Sequence


The device supports eight interrupt sources under a four level priority scheme. Table 11-1 summarizes the polling
sequence of the supported interrupts. Note that the SPI serial interface and the UART share the same interrupt
vector. (See Figure 11-1)

TABLE 11-1: INTERRUPT POLLING SEQUENCE


Vector Interrupt Interrupt Service Wake-Up
Description Interrupt Flag Address Enable Priority Priority Power-down
Ext. Int0 IE0 0003H EX0 PX0/H 1(highest) yes
Brown-out - 004BH EBO PBO/H 2 no
T0 TF0 000BH ET0 PT0/H 3 no
Ext. Int1 IE1 0013H EX1 PX1/H 4 yes
T1 TF1 001BH ET1 PT1/H 5 no
PCA CF/CCFn 0033H EC PPCH 6 no
Ext. Int. 2 IE2 003BH EX2 PX2/H 7 no
Ext. Int. 3 IE3 0043H EX3 PX3/H 8 no
UART/SPI TI/RI/SPIF 0023H ES PS/H 9 no
T2 TF2, EXF2 002BH ET2 PT2/H 10 no
T11-1.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


64
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

HIGHEST PRIORITY
IE & IEA IP/IPH/IPA/IPAH INTERRUPT
REGISTERS REGISTERS

0
INT0# IT0 IE0
1

BOF INTERRUPT
POLLING
SEQUENCE

TF0

0
INT1# IT1 IE1
1

TF1

ECF

CF

CCFn

ECCFn

0
INT2# IT2 IE2
1

0
INT3# IT3 IE3
1

RI
TI
SPIF

SPIE

TF2
EXF2

GLOBAL
INDIVIDUAL DISABLE LOWEST PRIORITY
ENABLES INTERRUPT

1255 F31.0

FIGURE 11-1: INTERRUPT STRUCTURE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


65
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

12.0 POWER-SAVING MODES 12.2 Power-down Mode


The device provides two power saving modes of operation The power-down mode is entered by setting the PD bit in
for applications where power consumption is critical. The the PCON register. In the power-down mode, the clock is
two modes are idle and power-down, see Table 12-1. stopped and external interrupts are active for level sensitive
interrupts only. SRAM contents are retained during power-
down, the minimum VDD level is 2.0V.
12.1 Idle Mode
The device exits power-down mode through either an
Idle mode is entered setting the IDL bit in the PCON regis-
enabled external level sensitive interrupt or a hardware
ter. In idle mode, the program counter (PC) is stopped. The
reset. The start of the interrupt clears the PD bit and exits
system clock continues to run and all interrupts and periph-
power-down. Holding the external interrupt pin low restarts
erals remain active. The on-chip RAM and the special func-
the oscillator, the signal must hold low at least 1024 clock
tion registers hold their data during this mode.
cycles before bringing back high to complete the exit. Upon
The device exits idle mode through either a system inter- interrupt signal being restored to logic VIH, the first instruc-
rupt or a hardware reset. Exiting idle mode via system tion of the interrupt service routine will execute. A hardware
interrupt, the start of the interrupt clears the IDL bit and reset starts the device similar to power-on reset.
exits idle mode. After exit the Interrupt Service Routine, the
To exit properly out of power-down, the reset or external
interrupted program resumes execution beginning at the
interrupt should not be executed before the VDD line is
instruction immediately following the instruction which
restored to its normal operating voltage. Be sure to hold
invoked the idle mode. A hardware reset starts the device
VDD voltage long enough at its normal operating level for
similar to a power-on reset.
the oscillator to restart and stabilize (normally less than
10 ms).

TABLE 12-1: POWER SAVING MODES


Mode Initiated by State of MCU Exited by
Idle Mode Software CLK is running. Enabled interrupt or hardware reset.
(Set IDL bit in PCON) Interrupts, serial port and tim- Start of interrupt clears IDL bit and
MOV PCON, #01H; ers/counters are active. Pro- exits idle mode, after the ISR RETI
gram Counter is stopped. instruction, program resumes execu-
ALE and PSEN# signals at a tion beginning at the instruction follow-
HIGH level during Idle. All ing the one that invoked idle mode. A
registers remain unchanged. user could consider placing two or
three NOP instructions after the
instruction that invokes idle mode to
eliminate any problems. A hardware
reset restarts the device similar to a
power-on reset.
Power-down Software CLK is stopped. On-chip Enabled external level sensitive inter-
Mode (Set PD bit in PCON) SRAM and SFR data is main- rupt or hardware reset. Start of inter-
MOV PCON, #02H; tained. ALE and PSEN# sig- rupt clears PD bit and exits power-
nals at a LOW level during down mode, after the ISR RETI
power -down. External Inter- instruction program resumes execution
rupts are only active for level beginning at the instruction following
sensitive interrupts, if the one that invoked power-down
enabled. mode. A user could consider placing
two or three NOP instructions after the
instruction that invokes power-down
mode to eliminate any problems. A
hardware reset restarts the device sim-
ilar to a power-on reset.
T12-1.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


66
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

13.0 SYSTEM CLOCK AND CLOCK OPTIONS

13.1 Clock Input Options and Recom- More specific information about on-chip oscillator design
mended Capacitor Values for Oscillator can be found in the FlashFlex51 Oscillator Circuit Design
Considerations application note.
Shown in Figure 13-1 are the input and output of an inter-
nal inverting amplifier (XTAL1, XTAL2), which can be con-
figured for use as an on-chip oscillator. 13.2 Clock Doubling Option
By default, the device runs at 12 clocks per machine cycle
When driving the device from an external clock source,
(x1 mode). The device has a clock doubling option to
XTAL2 should be left disconnected and XTAL1 should be
speed up to 6 clocks per machine cycle. Please refer to
driven.
Table 13-2 for detail.
At start-up, the external oscillator may encounter a higher
Clock double mode can be enabled either via the external
capacitive load at XTAL1 due to interaction between the
host mode or the IAP mode. Please refer to Table 4-1 for
amplifier and its feedback capacitance. However, the
the external host mode enabling command and to Table 4-
capacitance will not exceed 15 pF once the external signal
6 and Table 4-7 for the IAP mode enabling commands
meets the VIL and VIH specifications.
(When set, the EDC# bit in SFST register will indicate 6
Crystal manufacturer, supply voltage, and other factors clock mode.).
may cause circuit performance to differ from one applica-
The clock double mode is only for doubling the inter-
tion to another. C1 and C2 should be adjusted appropri-
nal system clock and the internal flash memory, i.e.
ately for each design. Table 13-1, shows the typical values
EA#=1. To access the external memory and the peripheral
for C1 and C2 vs. crystal type for various frequencies
devices, careful consideration must be taken. Also note
that the crystal output (XTAL2) will not be doubled.
TABLE 13-1:RECOMMENDED VALUES FOR C1 AND
C2 BY CRYSTAL TYPE
Crystal C1 = C2
Quartz 20-30pF
Ceramic 40-50pF
T13-1.0 1255

XTAL2
C2 NC XTAL2

External
C1 Oscillator XTAL1
XTAL1 Signal

VSS VSS

Using the On-Chip Oscillator External Clock Drive 1255 F32.0

FIGURE 13-1: OSCILLATOR CHARACTERISTICS

TABLE 13-2: CLOCK DOUBLING FEATURES


Device Standard Mode (x1) Clock Double Mode (x2)
Clocks per Max. External Clock Frequency Clocks per Max. External Clock Frequency
Machine Cycle (MHz) Machine Cycle (MHz)
SST89E5xxRD2 12 40 6 20
SST89V5xxRD2 12 33 6 16
T13-2.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


67
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

14.0 ELECTRICAL SPECIFICATION

Absolute Maximum Stress Ratings (Applied conditions greater than those listed under “Absolute Maximum
Stress Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation
of the device at these conditions or conditions greater than those defined in the operational sections of this data
sheet is not implied. Exposure to absolute maximum stress rating conditions may affect device reliability.)

Ambient Temperature Under Bias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -55°C to +125°C


Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -65°C to +150°C
Voltage on EA# Pin to VSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -0.5V to +14.0V
D.C. Voltage on Any Pin to Ground Potential . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -0.5V to VDD+0.5V
Transient Voltage (<20ns) on Any Other Pin to VSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -1.0V to VDD+1.0V
Maximum IOL per I/O Pins P1.5, P1.6, P1.7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20mA
Maximum IOL per I/O for All Other Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15mA
Package Power Dissipation Capability (Ta = 25°C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.5W
Through Hole Lead Soldering Temperature (10 Seconds). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300°C
Surface Mount Lead Soldering Temperature (3 Seconds) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240°C
Output Short Circuit Current1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 mA

1. Outputs shorted for no more than one second. No more than one output shorted at a time.
(Based on package heat transfer limitations, not device power consumption.
Note: This specification contains preliminary information on new products in production.
The specifications are subject to change without notice.

TABLE 14-1: OPERATING RANGE


Symbol Description Min. Max Unit
Ta Ambient Temperature Under Bias
Standard 0 +70 °C
Industrial -40 +85 °C
VDD Supply Voltage
SST89E5xxRD2 4.5 5.5 V
SST89V5xxRD2 2.7 3.6 V
fOSC Oscillator Frequency
SST89E5xxRD2 0 40 MHz
SST89V5xxRD2 0 33 MHz
Oscillator Frequency for IAP
SST89E5xxRD2 .25 40 MHz
SST89V5xxRD2 .25 33 MHz
T14-1.0 1255

TABLE 14-2: RELIABILITY CHARACTERISTICS


Symbol Parameter Minimum Specification Units Test Method
NEND 1 Endurance 10,000 Cycles JEDEC Standard A117
TDR1 Data Retention 100 Years JEDEC Standard A103
ILTH1 Latch Up 100 + IDD mA JEDEC Standard 78
T14-2.0 1255
1. This parameter is measured only for initial qualification and after a design or process change that could affect this parameter.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


68
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 14-3: AC CONDITIONS OF TEST
Input Rise/Fall Time . . . . . . . . . . . . . . . 10 ns
Output Load . . . . . . . . . . . . . . . . . . . . . CL = 100 pF
See Figures 14-8 and 14-10
T14-3.0 1255

TABLE 14-4: RECOMMENDED SYSTEM POWER-UP TIMINGS


Symbol Parameter Minimum Units
TPU-READ 1 Power-up to Read Operation 100 µs
TPU-WRITE1 Power-up to Write Operation 100 µs
T14-4.0 1255
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 Description Test Condition Maximum


CI/O1 I/O Pin Capacitance VI/O = 0V 15 pF
CIN 1 Input Capacitance VIN = 0V 12 pF
LPIN2 Pin Inductance 20 nH
T14-5.0 1255
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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


69
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

14.1 DC Electrical Characteristics

TABLE 14-6: DC ELECTRICAL CHARACTERISTICS FOR SST89E5XXRD2


Ta = -40°C TO +85°C; VDD = 4.5-5.5V; VSS = 0V
Symbol Parameter Test Conditions Min Max Units
VIL Input Low Voltage 4.5 < VDD < 5.5 -0.5 0.2VDD - 0.1 V
VIH Input High Voltage 4.5 < VDD < 5.5 0.2VDD + 0.9 VDD + 0.5 V
VIH1 Input High Voltage (XTAL1, RST) 4.5 < VDD < 5.5 0.7VDD VDD + 0.5 V
VOL Output Low Voltage (Ports 1.5, 1.6, 1.7) VDD = 4.5V
IOL = 16mA 1.0 V
VOL Output Low Voltage (Ports 1, 2, 3)1 VDD = 4.5V
IOL = 100µA2 0.3 V
IOL = 1.6mA2 0.45 V
IOL = 3.5mA2 1.0 V
VOL1 Output Low Voltage (Port 0, ALE, PSEN#)1,3 VDD = 4.5V
IOL = 200µA2 0.3 V
IOL = 3.2mA2 0.45 V
VOH Output High Voltage (Ports 1, 2, 3, ALE, PSEN#)4 VDD = 4.5V
IOH = -10µA VDD - 0.3 V
IOH = -30µA VDD - 0.7 V
IOH = -60µA VDD - 1.5 V
VOH1 Output High Voltage (Port 0 in External Bus Mode)4 VDD = 4.5V
IOH = -200µA VDD - 0.3 V
IOH = -3.2mA VDD - 0.7 V
VBOD Brown-out Detection Voltage 3.85 4.15 V
IIL Logical 0 Input Current (Ports 1, 2, 3) VIN = 0.4V -75 µA
ITL Logical 1-to-0 Transition Current (Ports 1, 2, 3)5 VIN = 2V -650 µA
ILI Input Leakage Current (Port 0) 0.45 < VIN < VDD-0.3 ±10 µA
RRST RST Pull-down Resistor 40 225 KΩ
CIO Pin Capacitance6 @ 1 MHz, 25°C 15 pF
IDD Power Supply Current
IAP Mode
@ 12 MHz 70 mA
@ 40 MHz 88 mA
Active Mode
@ 12 MHz 23 mA
@ 40 MHz 50 mA
Idle Mode
@ 12 MHz 20 mA
@ 40 MHz 42 mA
Power-down Mode (min. VDD = 2V) Ta = 0°C to +70°C 80 µA
Ta = -40°C to +85°C 90 µA
T14-6.0 1255

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


70
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
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 & 2 may cause spurious noise to be superimposed on the VOLs of ALE and Ports 1 & 3. The noise due
to external bus capacitance discharging into the Port 0 & 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 & PSEN#= 100pF, load capacitance for all other outputs = 80pF.
4. Capacitive loading on Ports 0 & 2 may cause the VOH on ALE and PSEN# to momentarily fall below the VDD - 0.7 specification when
the address bits are stabilizing.
5. Pins of Ports 1, 2 & 3 source a transition current when they are being externally driven from 1 to 0. The transition current reaches its
maximum value when VIN is approximately 2V.
6. Pin capacitance is characterized but not tested. EA# is 25pF (max).

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


71
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 14-7: DC ELECTRICAL CHARACTERISTICS FOR SST89V5XXRD2
Ta = -40°C TO +85°C; VDD = 2.7-3.6V; VSS = 0V
Symbol Parameter Test Conditions Min Max Units
VIL Input Low Voltage 2.7 < VDD < 3.6 -0.5 0.7 V
VIH Input High Voltage 2.7 < VDD < 3.6 0.2VDD + 0.9 VDD + 0.5 V
VIH1 Input High Voltage (XTAL1, RST) 2.7 < VDD < 3.6 0.7VDD VDD + 0.5 V
VOL Output Low Voltage (Ports 1.5, 1.6, 1.7) VDD = 2.7V
IOL = 16mA 1.0 V
VOL Output Low Voltage (Ports 1, 2, 3)1 VDD = 2.7V
IOL = 100µA2 0.3 V
IOL = 1.6mA2 0.45 V
IOL = 3.5mA2 1.0 V
VOL1 Output Low Voltage (Port 0, ALE, PSEN#)1,3 VDD = 2.7V
IOL = 200µA2 0.3 V
IOL = 3.2mA2 0.45 V
VOH Output High Voltage (Ports 1, 2, 3, ALE, PSEN#)4 VDD = 2.7V
IOH = -10µA VDD - 0.3 V
IOH = -30µA VDD - 0.7 V
IOH = -60µA VDD - 1.5 V
VOH1 Output High Voltage (Port 0 in External Bus Mode)4 VDD = 2.7V
IOH = -200µA VDD - 0.3 V
IOH = -3.2mA VDD - 0.7 V
VBOD Brown-out Detection Voltage 2.35 2.55 V
IIL Logical 0 Input Current (Ports 1, 2, 3) VIN = 0.4V -75 µA
ITL Logical 1-to-0 Transition Current (Ports 1, 2, 3)5 VIN = 2V -650 µA
ILI Input Leakage Current (Port 0) 0.45 < VIN < VDD-0.3 ±10 µA
RRST RST Pull-down Resistor 225 KΩ
CIO Pin Capacitance6 @ 1 MHz, 25°C 15 pF
IDD Power Supply Current
IAP Mode
@ 12 MHz 40 mA
@ 33 MHz 47 mA
Active Mode
@ 12 MHz 11.5 mA
@ 33 MHz 30 mA
Idle Mode
@ 12 MHz 8.5 mA
@ 33 MHz 21 mA
Power-down Mode (min. VDD = 2V) Ta = 0°C to +70°C 45 µA
Ta = -40°C to +85°C 55 µA
T14-7.0 1255
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.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


72
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
2. Capacitive loading on Ports 0 & 2 may cause spurious noise to be superimposed on the VOLs of ALE and Ports 1 & 3. The noise due
to external bus capacitance discharging into the Port 0 & 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 & PSEN#= 100pF, load capacitance for all other outputs = 80pF.
4. Capacitive loading on Ports 0 & 2 may cause the VOH on ALE and PSEN# to momentarily fall below the VDD - 0.7 specification when
the address bits are stabilizing.
5. Pins of Ports 1, 2 & 3 source a transition current when they are being externally driven from 1 to 0. The transition current reaches its
maximum value when VIN is approximately 2V.
6. Pin capacitance is characterized but not tested. EA# is 25pF (max).

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


73
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

30

Maximum Active IDD


25

Maximum Idle IDD


20
IDD (mA)

15

10

1255 F33.0
5 Typical Active IDD

Typical Idle IDD


0
5 10 15 20 25 30 35
Internal Clock Frequency (MHz)

FIGURE 14-1: IDD VS. FREQUENCY FOR 3V SST89V5XXRD2

50
Maximum Active IDD
40

Maximum Idle IDD


IDD (mA)

30

20
1255 F34.0

10 Typical Active IDD

Typical Idle IDD


0
5 10 15 20 25 30 35 40
Internal Clock Frequency (MHz)

FIGURE 14-2: IDD VS. FREQUENCY FOR 5V SST89E5XXRD2

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


74
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

14.2 AC Electrical Characteristics

AC Characteristics: (Over Operating Conditions: Load Capacitance for Port 0, ALE#, and PSEN# = 100pF;
Load Capacitance for All Other Outputs = 80pF)

TABLE 14-8: AC ELECTRICAL CHARACTERISTICS (1 OF 2)


Ta = -40°C TO +85°C, VDD = 2.7-3.6V@33MHZ, 4.5-5.5V@40MHZ, VSS = 0V
Oscillator
33 MHz (x1 Mode) 40 MHz (x1 Mode)
16 MHz (x2 Mode)1 20 MHz (x2 Mode)1 Variable
Symbol Parameter Min Max Min Max Min Max Units
1/TCLCL x1 Mode Oscillator Frequency 0 33 0 40 0 40 MHz
1/2TCLCL x2 Mode Oscillator Frequency 0 16 0 20 0 20 MHz
TLHLL ALE Pulse Width 46 35 2TCLCL - 15 ns
TAVLL Address Valid to ALE Low 5 TCLCL - 25 (3V) ns
10 TCLCL - 15 (5V) ns
TLLAX Address Hold After ALE Low 5 TCLCL - 25 (3V) ns
10 TCLCL - 15 (5V) ns
TLLIV ALE Low to Valid Instr In 56 4TCLCL - 65 (3V) ns
55 4TCLCL - 45 (5V) ns
TLLPL ALE Low to PSEN# Low 5 TCLCL - 25 (3V) ns
10 TCLCL - 15 (5V) ns
TPLPH PSEN# Pulse Width 66 3TCLCL - 25 (3V) ns
60 3TCLCL - 15 (5V)
TPLIV PSEN# Low to Valid Instr In 35 3TCLCL - 55 (3V) ns
25 3TCLCL - 50 (5V) ns
TPXIX Input Instr Hold After PSEN# 0 ns
TPXIZ Input Instr Float After PSEN# 25 TCLCL - 5 (3V) ns
10 TCLCL - 15 (5V) ns
TPXAV PSEN# to Address valid 22 17 TCLCL - 8 ns
TAVIV Address to Valid Instr In 72 5TCLCL - 80 (3V) ns
65 5TCLCL - 60 (5V) ns
TPLAZ PSEN# Low to Address Float 10 10 10 ns
TRLRH RD# Pulse Width 142 6TCLCL - 40 (3V) ns
120 6TCLCL - 30 (5V)
TWLWH Write Pulse Width (WE#) 142 6TCLCL - 40 (3V) ns
120 6TCLCL - 30 (5V)
TRLDV RD# Low to Valid Data In 62 5TCLCL - 90 (3V) ns
75 5TCLCL - 50 (5V) ns
TRHDX Data Hold After RD# 0 0 0 ns
TRHDZ Data Float After RD# 36 2TCLCL - 25 (3V) ns
38 2TCLCL - 12 (5V) ns
TLLDV ALE Low to Valid Data In 152 8TCLCL - 90 (3V) ns
150 8TCLCL - 50 (5V) ns
TAVDV Address to Valid Data In 183 9TCLCL - 90 (3V) ns
150 9TCLCL - 75 (5V) ns
TLLWL ALE Low to RD# or WR# Low 66 116 3TCLCL - 25 (3V) 3TCLCL + 25 (3V) ns
60 90 3TCLCL - 15 (5V) 3TCLCL + 15 (5V)
TAVWL Address to RD# or WR# Low 46 4TCLCL - 75 (3V) ns
70 4TCLCL - 30 (5V) ns

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


75
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 14-8: AC ELECTRICAL CHARACTERISTICS (CONTINUED) (2 OF 2)
Ta = -40°C TO +85°C, VDD = 2.7-3.6V@33MHZ, 4.5-5.5V@40MHZ, VSS = 0V
Oscillator
33 MHz (x1 Mode) 40 MHz (x1 Mode)
16 MHz (x2 Mode)1 20 MHz (x2 Mode)1 Variable
Symbol Parameter Min Max Min Max Min Max Units
TWHQX Data Hold After WR# 3 TCLCL - 27 (3V) ns
5 TCLCL - 20 (5V) ns
TQVWH Data Valid to WR# High 142 7TCLCL - 70 (3V) ns
125 7TCLCL - 50 (5V) ns
TQVWX Data Valid to WR# High to Low 10 5 TCLCL - 20 ns
Transition
TRLAZ RD# Low to Address Float 0 0 0 ns
TWHLH RD# to WR# High to ALE High 5 55 TCLCL - 25 (3V) TCLCL + 25 (3V) ns
10 40 TCLCL - 15 (5V) TCLCL + 15 (5V) ns
T14-8.0 1255
1. Calculated values are for x1 Mode only

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: Address Q: Output data
C: Clock R: RD# signal
D: Input data T: Time
H: Logic level HIGH V: Valid
I: Instruction (program memory contents) W: WR# signal
L: Logic level LOW or ALE X: No longer a valid logic level
P: PSEN# Z: High Impedance (Float)

For example:
TAVLL = Time from Address Valid to ALE Low
TLLPL = Time from ALE Low to PSEN# Low

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


76
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TLHLL
ALE
TPLPH
TAVLL TLLIV
TLLPL
TPLIV
PSEN#
TPXAV
TPLAZ
TPXIZ
TLLAX
TPXIX
PORT 0 A0 - A7 INSTR IN A0 - A7

TAVIV

PORT 2 A8 - A15 A8 - A15

1255 F35.0

FIGURE 14-3: EXTERNAL PROGRAM MEMORY READ CYCLE

TLHLL
ALE
TWHLH

PSEN# TLLDV
TRLRH
TLLWL

RD# TLLAX
TRLDV TRHDZ
TAVLL
TRLAZ
TRHDX

PORT 0 A0-A7 FROM RI or DPL DATA IN A0-A7 FROM PCL INSTR IN

TAVWL
TAVDV
PORT 2 P2[7:0] or A8-A15 FROM DPH A8-A15 FROM PCH

1255 F36.0

FIGURE 14-4: EXTERNAL DATA MEMORY READ CYCLE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


77
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TLHLL
ALE
TWHLH

PSEN#
TLLWL TWLWH

WR# TLLAX
TAVLL TQVWX TWHQX
TQVWH

PORT 0 A0-A7 FROM RI or DPL DATA OUT A0-A7 FROM PCL INSTR IN

TAVWL

PORT 2 P2[7:0] or A8-A15 FROM DPH A8-A15 FROM PCH


1255 F37.0

FIGURE 14-5: EXTERNAL DATA MEMORY WRITE CYCLE

TABLE 14-9: EXTERNAL CLOCK DRIVE


Oscillator
12MHz 40MHz Variable
Symbol Parameter Min Max Min Max Min Max Units
1/TCLCL Oscillator Frequency 0 40 MHz
TCLCL 83 25 ns
TCHCX High Time 8.75 0.35TCLCL 0.65TCLCL ns
TCLCX Low Time 8.75 0.35TCLCL 0.65TCLCL ns
TCLCH Rise Time 20 10 ns
TCHCL Fall Time 20 10 ns
T14-9.0 1255

VDD - 0.5
0.7VDD

TCHCX
0.45 V 0.2 VDD - 0.1

TCLCX TCLCH

TCLCL
TCHCL 1255 F38.0

FIGURE 14-6: EXTERNAL CLOCK DRIVE WAVEFORM

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


78
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
TABLE 14-10: SERIAL PORT TIMING
Oscillator
12MHz 40MHz Variable
Symbol Parameter Min Max Min Max Min Max Units
TXLXL Serial Port Clock Cycle Time 1.0 0.3 12TCLCL µs
TQVXH Output Data Setup to Clock Rising Edge 700 117 10TCLCL - 133 ns
TXHQX Output Data Hold After Clock Rising Edge 50 2TCLCL - 117 ns
0 2TCLCL - 50 ns
TXHDX Input Data Hold After Clock Rising Edge 0 0 0 ns
TXHDV Clock Rising Edge to Input Data Valid 700 117 10TCLCL - 133 ns
T14-10.0 1255

INSTRUCTION 0 1 2 3 4 5 6 7 8
ALE
TXLXL
CLOCK
TQVXH TXHQX

OUTPUT DATA 0 1 2 3 4 5 6 7
TXHDX
WRITE TO SBUF TXHDV SET TI
INPUT DATA VALID VALID VALID VALID VALID VALID VALID VALID

CLEAR RI SET R I

1255 F39.0

FIGURE 14-7: SHIFT REGISTER MODE TIMING WAVEFORMS

VIHT VLOAD +0.1V


VHT VOH -0.1V
VLOAD Timing Reference
Points
VLT VLOAD -0.1V VOL +0.1V
VILT
1255 F40.0 1255 F41.0

AC Inputs during testing are driven at VIHT (VDD -0.5V) for Logic "1" and For timing purposes, a port pin is no longer floating when a 100 mV
VILT (0.45V) for a Logic "0". Measurement reference points for inputs and change from load voltage occurs, and begins to float when a 100 mV
outputs are at VHT (0.2VDD + 0.9) and VLT (0.2VDD - 0.1) change from the loaded VOH/VOL level occurs. IOL/IOH = ± 20mA.
Note: VHT- VHIGH Test
VLT- VLOW Test
VIHT-VINPUT HIGH Test
VILT- VINPUT LOW Test

FIGURE 14-8: AC TESTING INPUT/OUTPUT TEST FIGURE 14-9: FLOAT WAVEFORM


WAVEFORM

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


79
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TO TESTER

TO DUT

CL

1255 F42.0

FIGURE 14-10: A TEST LOAD EXAMPLE

VDD VDD = 2V VDD


IDD IDD
VDD VDD VDD VDD

VDD P0 P0

RST EA# RST EA#

SST89x5xxRD2 SST89x5xxRD2

(NC) XTAL2 (NC) XTAL2


CLOCK
SIGNAL XTAL1 XTAL1
VSS VSS

1255 F43.0 1255 F44.0


All other pins disconnected All other pins disconnected

FIGURE 14-11: IDD TEST CONDITION, FIGURE 14-13: IDD TEST CONDITION,
ACTIVE MODE POWER-DOWN MODE

VDD
IDD
VDD VDD

P0

RST EA#

SST89x5xxRD2

(NC) XTAL2
CLOCK
SIGNAL XTAL1
VSS

1255 F45.0
All other pins disconnected

FIGURE 14-12: IDD TEST CONDITION,


IDLE MODE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


80
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TABLE 14-11: EXTERNAL MODE FLASH MEMORY PROGRAMMING/VERIFICATION PARAMETERS1


Parameter2,3 Symbol Min Max Units
Reset Setup Time TSU 3 µs
Read-ID Command Width TRD 1 µs
PSEN# Setup Time TES 40 µs
Address, Command, Data Setup Time TADS 0 ns
Chip-Erase Time TCE 150 ms
Block-Erase Time TBE 100 ms
Sector-Erase Time TSE 30 ms
Program Setup Time TPROG 1.2 µs
Address, Command, Data Hold TDH 0 ns
Byte-Program Time4 TPB 50 µs
Select-Block Program Time TPSB 500 ns
Re-map or Security bit Program Time TPS 80 µs
Verify Command Delay Time TOA 50 ns
Verify High Order Address Delay Time TAHA 50 ns
Verify Low Order Address Delay Time TALA 50 ns
T14-11.0 1255
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. All timing measurements are from the 50% of the input to 50% of the output.
4. Each byte must be erased before programming.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


81
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

14.3 Flash Memory Programming Timing Diagrams with External Host Mode

TSU
RST
TES
PSEN#

ALE/PROG#

EA#

TRD TRD
P2[7:6] ,P3[7:6] 0000b 0000b

P3[5:4] ,P2[5:0] ,P1 0030H 0031H

P0 BFH Device ID

1255 F46.0
Device ID = See Table 4-3, "Product Identification"

FIGURE 14-14: READ-ID


Reads chip signature and identification registers at the addressed location.

TSU
RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#

P3[3]
TPSB

P3[5:4], P2[5:0] A5H/55H

P3[7:6], P2[7:6] 1001b


1255 F47.0

FIGURE 14-15: SELECT-BLOCK1 / SELECT-BLOCK0 (FOR SST89E516RD2/SST89V516RD2 ONLY)

Enables the selection of either of the flash memory blocks prior to issuing a Byte-Verify, Block-Erase, Sector-
Erase, or Byte-Program.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


82
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TSU

RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#
TCE
P3[3]

P3[7:6], P2[7:6] 0001b

1255 F48.0

FIGURE 14-16: CHIP-ERASE


Erases both flash memory blocks. Security lock is ignored and the security bits are erased too.

TSU

RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#

TBE
P3[3]

P3[7:6], P2[7:6] 1101b

1255 F49.0

FIGURE 14-17: BLOCK-ERASE FOR SST89E516RD2/SST89V516RD2


Erases one of the flash memory blocks, if the security lock is not activated on that flash memory block.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


83
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TSU
RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#

TBE
P3[3]

P3[7:6], P2[7:6] 1101b

P3[5:4], P2[5:0] AH

1255 F50.0

FIGURE 14-18: BLOCK-ERASE FOR SST89E5XRD2/SST89V5XRD2


Erases one of the flash memory blocks, if the security lock is not activated on that flash memory block.

TSU
RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#

P3[3]

TSE

P3[7:6], P2[7:6] 1011b

P3[5:4], P2[5:0] AH

P1 AL

1255 F51.0

FIGURE 14-19: SECTOR-ERASE


Erases the addressed sector if the security lock is not activated on that flash memory block.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


84
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TSU
RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#

P3[3]
TPB

P3[5:4], P2[5:0] AH

P1 AL

P0 DI

P3[7:6], P2[7:6] 1110b


1255 F52.0

FIGURE 14-20: BYTE-PROGRAM


Programs the addressed code byte if the byte location has been successfully erased and not yet programmed.
Byte-Program operation is only allowed when the security lock is not activated on that flash memory block.

TSU
RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#

P3[3]
TPS

P3[7:6], P2[7:6] 1111b / 0011b / 0101b


1255 F53.0

FIGURE 14-21: PROG-SB1 / PROG-SB2 / PROG-SB3


Programs the Security bits SB1, SB2 and SB3 respectively. Only a Chip-Erase will erase a programmed security bit.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


85
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TSU
RST

TES
PSEN#

TADS

ALE/PROG#
TPROG TDH

EA#

P3[3]
TPS

P3[5:4], P2[5:0] 5AH / AAH

P3[7:6], P2[7:6] 1001b


1255 F54.0

FIGURE 14-22: PROG-SC0 / PROG-SC1


Programs the start-up configuration bit SC0/SC1. Only a Chip-Erase will erase a programmed SC0/SC1 bit.
Prog-SC1 applies to SST89E5xRD2/SST89V5xRD2 only.

TSU

RST TES

PSEN#

ALE/PROG#

EA#
TOA

P3[7:6], P2[7:6] 1100b

TAHA

P0 DO
TALA

P1 AL

P3[5:4], P2[5:0] AH
1255 F55.0

FIGURE 14-23: BYTE-VERIFY


Reads the code byte from the addressed flash memory location if the security lock is not activated on that flash
memory block.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


86
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

15.0 PRODUCT ORDERING INFORMATION

Device Speed Suffix1 Suffix2


SST89x5xxRD2 - XX - X - XX
Package Modifier
I = 40 pins
J = 44 pins
Package Type
P = PDIP
N = PLCC
TQ = TQFP
Operation Temperature
C = Commercial = 0°C to +70°C
I = Industrial = -40°C to +85°C
Operating Frequency
33 = 0-33MHz
40 = 0-40MHz
Feature Set and Flash Memory Size
52RD2 = C52 feature set + 8(16) KByte
54RD2 = C52 feature set + 16(32) KByte
58RD2 = C52 feature set + 32(40) KByte
516RD2 = C52 feature set + 64(72) KByte
Note: Number in parenthesis includes an additional 8
KByte flash which can be enabled.
Voltage Range
E = 4.5-5.5V
V = 2.7-3.6V
Product Series
89 = C51 Core

15.1 Valid Combinations

Valid combinations for SST89E52RD2


SST89E52RD2-40-C-PI SST89E52RD2-40-C-NJ SST89E52RD2-40-C-TQJ
SST89E52RD2-40-C-PIE SST89E52RD2-40-C-NJE SST89E52RD2-40-C-TQJE
SST89E52RD2-40-I-PI SST89E52RD2-40-I-NJ SST89E52RD2-40-I-TQJ
SST89E52RD2-40-I-PIE SST89E52RD2-40-I-NJE SST89E52RD2-40-I-TQJE

Valid combinations for SST89V52RD2


SST89V52RD2-33-C-PI SST89V52RD2-33-C-NJ SST89V52RD2-33-C-TQJ
SST89V52RD2-33-C-PIE SST89V52RD2-33-C-NJE SST89V52RD2-33-C-TQJE
SST89V52RD2-33-I-PI SST89V52RD2-33-I-NJ SST89V52RD2-33-I-TQJ
SST89V52RD2-33-I-PIE SST89V52RD2-33-I-NJE SST89V52RD2-33-I-TQJE

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


87
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications
Valid combinations for SST89E54RD2
SST89E54RD2-40-C-PI SST89E54RD2-40-C-NJ SST89E54RD2-40-C-TQJ
SST89E54RD2-40-C-PIE SST89E54RD2-40-C-NJE SST89E54RD2-40-C-TQJE
SST89E54RD2-40-I-PI SST89E54RD2-40-I-NJ SST89E54RD2-40-I-TQJ
SST89E54RD2-40-I-PIE SST89E54RD2-40-I-NJE SST89E54RD2-40-I-TQJE

Valid combinations for SST89V54RD2


SST89V54RD2-33-C-PI SST89V54RD2-33-C-NJ SST89V54RD2-33-C-TQJ
SST89V54RD2-33-C-PIE SST89V54RD2-33-C-NJE SST89V54RD2-33-C-TQJE
SST89V54RD2-33-I-PI SST89V54RD2-33-I-NJ SST89V54RD2-33-I-TQJ
SST89V54RD2-33-I-PIE SST89V54RD2-33-I-NJE SST89V54RD2-33-I-TQJE

Valid combinations for SST89E58RD2


SST89E58RD2-40-C-PI SST89E58RD2-40-C-NJ SST89E58RD2-40-C-TQJ
SST89E58RD2-40-C-PIE SST89E58RD2-40-C-NJE SST89E58RD2-40-C-TQJE
SST89E58RD2-40-I-PI SST89E58RD2-40-I-NJ SST89E58RD2-40-I-TQJ
SST89E58RD2-40-I-PIE SST89E58RD2-40-I-NJE SST89E58RD2-40-I-TQJE

Valid combinations for SST89V58RD2


SST89V58RD2-33-C-PI SST89V58RD2-33-C-NJ SST89V58RD2-33-C-TQJ
SST89V58RD2-33-C-PIE SST89V58RD2-33-C-NJE SST89V58RD2-33-C-TQJE
SST89V58RD2-33-I-PI SST89V58RD2-33-I-NJ SST89V58RD2-33-I-TQJ
SST89V58RD2-33-I-PIE SST89V58RD2-33-I-NJE SST89V58RD2-33-I-TQJE

Valid combinations for SST89E516RD2


SST89E516RD2-40-C-PI SST89E516RD2-40-C-NJ SST89E516RD2-40-C-TQJ
SST89E516RD2-40-C-PIE SST89E516RD2-40-C-NJE SST89E516RD2-40-C-TQJE
SST89E516RD2-40-I-PI SST89E516RD2-40-I-NJ SST89E516RD2-40-I-TQJ
SST89E516RD2-40-I-PIE SST89E516RD2-40-I-NJE SST89E516RD2-40-I-TQJE

Valid combinations for SST89V516RD2


SST89V516RD2-33-C-PI SST89V516RD2-33-C-NJ SST89V516RD2-33-C-TQJ
SST89V516RD2-33-C-PIE SST89V516RD2-33-C-NJE SST89V516RD2-33-C-TQJE
SST89V516RD2-33-I-PI SST89V516RD2-33-I-NJ SST89V516RD2-33-I-TQJ
SST89V516RD2-33-I-PIE SST89V516RD2-33-I-NJE SST89V516RD2-33-I-TQJE

Note: Valid combinations are those products in mass production or will be in mass production. Consult your SST sales
representative to confirm availability of valid combinations and to determine availability of new combinations.

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


88
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

16.0 PACKAGING DIAGRAMS

40

CL

.600
1 .625
Pin #1 Identifier
.530
.557
.065 2.020 12˚
.075 2.070 4 places

.220 Max.
Base Plane
Seating Plane

.015 Min. 0˚
15˚
.008
.012
.100 †
.200
.063 .045 .015 .100 BSC .600 BSC
.090 .055 .022

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.

40-PIN PLASTIC DUAL IN-LINE PINS (PDIP)


SST PACKAGE CODE: PI

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


89
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

TOP VIEW SIDE VIEW BOTTOM VIEW


.685
.695
Optional .646 † .147
Pin #1 Identifier .656 .020 R. .158
.042 MAX.
.042 x45˚ .025 R.
.048 1 44 .045
.056

.042 .013
.048 .021

.685 .646 † .026 .500 .590


.695 .656 .032 REF. .630

.050
BSC.

.020 Min.
.100
.050 .112
BSC. .026
.032
.165
.180
44-plcc-NJ-7
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.

44-LEAD PLASTIC LEAD CHIP CARRIER (PLCC)


SST PACKAGE CODE: NJ

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


90
Free Datasheet http://www.datasheetlist.com/
FlashFlex51 MCU
SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2
SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2
Preliminary Specifications

Pin #1 Identifier 44 34

1 33

.30
.45
10.00 ± 0.10
12.00 ± 0.25 .80 BSC

11 23

12 22 .09
10.00 ± 0.10 .20
12.00 ± 0.25
.95
1.05
1.2
max. 0˚- 7˚
.05 .45
.15 .75
1.00 ref
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). 44-tqfp-TQJ-7
3. Coplanarity: 0.1 (±0.05) mm.
4. Package body dimensions do not include mold flash. Maximum allowable mold flash is .25mm. 1mm

44-LEAD THIN QUAD FLAT PACK (TQFP)


SST PACKAGE CODE: TQJ

TABLE 16-1: REVISION HISTORY


Number Description Date
00 • Initial Release Mar 2004

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

©2004 Silicon Storage Technology, Inc. S71255-00-000 3/04


91
Free Datasheet http://www.datasheetlist.com/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy