STMICROELECTRONICS M89342Y

M89 FAMILY
In-System Programmable (ISP)
Multiple-Memory and Logic FLASH+PSD Systems for MCUs
DATA BRIEFING
■
■
■
■
■
■
■
■
■
■
Single Supply Voltage:
– 5 V±10% for M89xxFxY
– 3 V (+20/–10%) for M89xxFxW
1 or 2 Mbit of Primary Flash Memory (8 uniform
sectors, 16K x 8, or 32K x 8)
A second non-volatile memory:
– 256 Kbit (32K x 8) EEPROM (for M8913F1x)
or Flash memory (for M89x3F2x)
– 4 uniform sectors (8K x 8)
SRAM (16 Kbit, 2K x 8; or 64 Kbit, 8K x 8)
Over 2,000 Gates of PLD: DPLD and GPLD
27 Reconfigurable I/O ports
Enhanced JTAG Serial Port
Programmable power management
Stand-by current:
– 50 µA for M89xxFxY
– 25 µA for M89xxFxW
High Endurance:
– 100,000 Erase/Write Cycles of Flash Memory
– 10,000 Erase/Write Cycles of EEPROM
– 1,000 Erase/Write Cycles of PLD
PQFP52 (T)
PLCC52 (K)
Figure 1. Logic Diagram
VCC
8
Table 1. Signal Names
PA0-PA7
Port-A
PB0-PB7
Port-B
Port-C
PC0-PC7
PA0-PA7
3
CNTL0CNTL2
Port-D
AD0-AD15
Address/Data
CNTL0-CNTL2
Control
RESET
Reset
VCC
Supply Voltage
VSS
Ground
June 2000
Complete data available on Data-on-Disc CD-ROM or at www.st.com
PB0-PB7
16
PC2 = Voltage Stand-by
PD0-PD2
8
FLASH+PSD
8
AD0-AD15
PC0-PC7
3
PD0-PD2
RESET
VSS
AI02856
1/7
M89 FAMILY
40 CNTLO
41 RESET
42 CNTL2
43 CNTL1
44 PB7
45 PB6
46 GND
47 PB5
48 PB4
49 PB3
RESET
CNTL0
50 PB2
CNTL2
51 PB1
CNTL1
52 PB0
PB7
PB5
PB6
PB4
GND
PB3
47
PB2
48
2
49
3
50
4
51
PB1
Figure 2B. PQFP Connections
52
6
7
5
PB0
Figure 2A. PLCC Connections
1
PD2
8
46
AD15
PD1
9
45
AD14
PD2 1
39 AD15
PD0
10
44
AD13
PD1 2
38 AD14
PC7
11
43
AD12
PD0 3
37 AD13
AD11
PC7 4
36 AD12
PC6 5
35 AD11
PC5 6
34 AD10
PC4 7
33 AD9
PC6
12
42
V CC 8
32 AD8
GND
16
38
VCC
GND 9
31 VCC
PC3
17
37
AD7
PC3 10
30 AD7
PC2 11
29 AD6
PC1 12
28 AD5
PC0 13
27 AD4
26
27
28
29
30
31
32
33
GND
PA2
PA1
PA0
AD0
AD1
AD2
AD3
PA7 14
25
AD4
PA3
34
24
AD5
20
PA4
35
PC0
23
19
PA5
PC1
22
AD6
21
36
PA6
18
PA7
PC2
AI02857
DESCRIPTION
The FLASH+PSD family of memory systems for
microcontrollers (MCUs) brings In-SystemProgrammability (ISP) to Flash memory and
programmable logic. The result is a simple and
flexible solution for embedded designs.
FLASH+PSD devices combine many of the
peripheral functions found in MCU based
applications. FLASH+PSD provides a glueless
interface to most commonly-used ROMless
MCUs.
Table 2 summarizes all the devices in the M89
Family.
The FLASH+PSD device includes a JTAG Serial
Programming interface, to allow In-System
Programming (ISP) of the entire device. This
AD3 26
AD8
AD2 25
39
AD1 24
15
AD0 23
VCC
PA0 22
AD9
PA1 21
40
PA2 20
14
PA3 18
PC4
GND 19
AD10
PA4 17
41
PA5 16
13
PA6 15
PC5
AI02858
feature reduces development time, simplifies the
manufacturing flow, and dramatically lowers the
cost of field upgrades. Using ST’s special FastJTAG programming, a design can be rapidly
programmed into the FLASH+PSD.
The innovative FLASH+PSD family solves key
problems faced by designers when managing
discrete Flash memory devices, such as:
– Complex address decoding
– In-System (first-time) Programming (ISP)
– Concurrent EEPROM or Flash memory
programming (IAP).
The JTAG Serial Interface block allows In-System
Programming (ISP). Embedded dual-bank
memories eliminates the need for an external Boot
Table 2. Product Range1
Primary Flash
Memory
Secondary NVM
SRAM2
M8913F1Y
1 Mbit
256 Kbit EEPROM
16 Kbit
27
M8913F2Y
1 Mbit
256 Kbit Flash memory
16 Kbit
27
M8934F2Y
2 Mbit
256 Kbit Flash memory
64 Kbit
27
M8913F1W
1 Mbit
256 Kbit EEPROM
16 Kbit
27
M8913F2W
1 Mbit
256 Kbit Flash memory
16 Kbit
27
M8934F2W
2 Mbit
256 Kbit Flash memory
64 Kbit
27
Part Number
I/O Ports Voltage Range
Access Time
4.5-5.5 V
90 ns or
150 ns
2.7-3.6 V
150 ns
Note: 1. All products support: JTAG serial ISP, MCU parallel ISP, ISP Flash memory, ISP GPLD, Security features, Power Management
Unit (PMU), Automatic Power-down (APD)
2. SRAM may be backed up using an external battery.
2/7
AD0 – AD15
CNTL0,
CNTL1,
CNTL2
GLOBAL
CONFIG. &
SECURITY
ADIO
PORT
PROG.
MCU BUS
INTRF.
PLD
INPUT
BUS
57
57
PAGE
REGISTER
FLASH ISP PLD
(GPLD)
FLASH DECODE
PLD (DPLD)
16 OR 64 KBIT BATTERY
BACKUP SRAM
256 KBIT SECONDARY
FLASH MEMORY
(BOOT OR DATA)
4 SECTORS
8 SECTORS
1 OR 2 MBIT MAIN FLASH
MEMORY
JTAG
SERIAL
CHANNEL
GPLD OUTPUT
GPLD OUTPUT
GPLD OUTPUT
RUNTIME CONTROL
AND I/O REGISTERS
PLD, CONFIGURATION
& FLASH MEMORY
LOADER
I/O PORT PLD INPUT
CSIOP
SRAM SELECT
SECTOR
SELECTS
SECTOR
SELECTS
EMBEDDED
ALGORITHM
ADDRESS/DATA/CONTROL BUS
PORT
D
PROG.
PORT
PORT
C
PROG.
PORT
PORT
B
PROG.
PORT
PORT
A
PROG.
PORT
POWER
MANGMT
UNIT
PD0 – PD2
PC0 – PC7
PB0 – PB7
PA0 – PA7
VSTDBY
(PC2)
M89 FAMILY
Figure 3. FLASH+PSD Block Diagram
AI03765
Sometimes computers try to be too clever for their own good. Take this illustration for instance.
Just because so many of the labels are rotated through ninety degrees, FrameMaker seems to
want to insist on telling the postscript file that I would find it more convenient to see this page
displayed in landscape, rotated by ninety degrees. Well I wouldn’t. So I am putting in all this text
just to weight the average in this direction.
3/7
M89 FAMILY
EPROM or Flash memory, or an external
programmer. To simplify Flash memory updates,
program execution is performed from a secondary
Flash memory (for the M89xxF2x) or EEPROM
(for the M8913F1x) while the primary Flash
memory is being updated. This solution avoids the
complicated hardware and software overhead
necessary to implement IAP.
ST makes available a software development tool,
PSDsoft Express, that generates ANSI-C
compliant code for use with your target MCU. This
code allows you to manipulate the non-volatile
memory (NVM) within the FLASH+PSD. Code
examples are also provided for:
– Flash memory IAP via the UART of the host
MCU
– Memory paging to execute code across several
FLASH+PSD memory pages
FLASH+PSD ARCHITECTURAL OVERVIEW
FLASH+PSD devices contain several major
functional blocks. Figure 3 shows the architecture
of the M89 FLASH+PSD device family. The
functions of each block are described briefly in the
following sections. Many of the blocks perform
multiple functions and are user configurable.
Memory
The 1 or 2 Mbit (128K x 8, or 256K x 8) Flash
memory is the primary memory of the
FLASH+PSD. It is divided into eight equally-sized
sectors that are individually selectable.
The 256 Kbit (32K x 8) secondary EEPROM or
Flash memory is divided into four equally-sized
sectors. Each sector is individually selectable.
The SRAM is intended for use as a scratch-pad
memory or as an extension to the MCU SRAM. If
an external battery is connected to Voltage Standby (VSTBY, PC2), data is retained in the event of
power failure.
Each sector of memory can be located in a
different address space as defined by the user.
The access times for all memory types includes
the address latching and DPLD decoding time.
The M8913F1x has 64 bytes of OTP memory for
product identifiers, serial numbers, calibration
constants, etc..
Page Register
The 8-bit Page Register expands the address
range of the MCU by up to 256 times. The paged
address can be used as part of the address space
to access external memory and peripherals, or
internal memory and I/O. The Page Register can
also be used to change the address mapping of
sectors of the Flash memories into different
memory spaces for IAP.
4/7
PLDs
The device contains two PLDs, the Decode PLD
(DPLD) and the General PLD (GPLD), each
optimized for a different function, as shown in
Table 3. The functional partitioning of the PLDs
reduces power consumption, optimizes cost/
performance, and eases design entry.
The Decode PLD (DPLD) is used to decode
addresses and to generate chip selects for the
FLASH+PSD internal memory and registers. The
DPLD has 14 combinatorial outputs, which are
used to select memory sectors and internal
registers. The General PLD (GPLD) can be used
to implement user-defined external chip select
signals and other combinatorial logic functions.
The PLDs consume minimal power. The speed
and power consumption of the PLD is controlled
by the Turbo bit in the PMMR0 register and other
bits in the PMMR2 registers. These registers are
set by the MCU at run-time. There is a slight
penalty to PLD propagation time when invoking
the power management features.
I/O Ports
The FLASH+PSD has 27 individually configurable
I/O pins distributed over the four ports (Port A, B,
C, and D). Each I/O pin can be individually
configured for different functions. Ports can be
configured as standard MCU I/O ports, PLD I/O, or
latched address outputs for MCUs using
multiplexed address/data buses. Ports A and B
can be configured to be open drain.
The JTAG pins can be enabled on Port C for InSystem Programming (ISP).
Port A can also be configured as a data port for a
non-multiplexed bus.
MCU Bus Interface
FLASH+PSD interfaces easily with most 8-bit
MCUs that have either multiplexed or nonmultiplexed address/data buses. The device is
configured to respond to the MCU’s control
signals, which are also used as inputs to the PLDs.
For examples, please see the full data sheet.
JTAG Port
In-System Programming (ISP) can be performed
through the JTAG signals on Port C. This serial
interface allows complete programming of the
entire FLASH+PSD device. A blank device can be
completely programmed for the first time after it is
soldered to the board. The JTAG signals (TMS,
TCK, TSTAT, TERR, TDI, TDO) can be
multiplexed with other functions on Port C. Table 4
indicates the JTAG pin assignments. Four-pin
JTAG is also fully supported.
In-System Programming (ISP)
Using the JTAG signals on Port C, the entire
FLASH+PSD device can be programmed or
M89 FAMILY
Table 3. PLD I/O
Table 4. JTAG SIgnals on Port C
Inpu ts
Outputs
Product
Terms
Decode PLD (DPLD)
57
14
39
General PLD (GPLD)
57
19
114
Name
erased without the use of the MCU. The primary
Flash memory can also be programmed in-system
by the MCU executing the programming
algorithms out of the secondary memory, or
SRAM. The secondary memory can be
programmed the same way by executing out of the
primary Flash memory. The PLD or other
FLASH+PSD Configuration blocks can be
programmed through the JTAG port or a device
insertion programmer. Table 5 indicates which
programming methods can program different
functional blocks of the FLASH+PSD.
Power Management Unit (PMU)
The Power Management Unit (PMU) gives the
user control of the power consumption on selected
functional blocks based on system requirements.
The PMU includes an Automatic Power-down
(APD) Unit that turns off device functions during
MCU inactivity. The APD Unit has a Power-down
mode that helps reduce power consumption.
The FLASH+PSD also has some bits that are
configured at run-time by the MCU to reduce
power consumption of the GPLD. The Turbo bit in
the PMMR0 register can be reset to 0 and the
GPLD latches its outputs and goes to sleep until
the next transition on its inputs.
Additionally, bits in the PMMR2 register can be set
by the MCU to block signals from entering the
GPLD to reduce power consumption. Please see
the full data sheet for details.
Port C Pins
JTAG Signal
PC0
TMS
PC1
TCK
PC3
TSTAT
PC4
TERR
PC5
TDI
PC6
TDO
accessed from the MCU. The only way a security
bit can be cleared is to erase the entire chip.
The contents of the sectors of the primary and
secondary NVM blocks can be protected using bits
in the Protection Registers. These bits are
accessible from the MCU in the application code,
or from a programmer during the set-up
procedure.
SECURITY AND NVM SECTOR PROTECTION
A security bit in the Protection Register enables
the software project, coded in the FLASH+PSD, to
be locked up. This bit is only accessible by the
system designer from the JTAG serial port, or from
a parallel insertion programmer. It cannot be
Table 5. Methods of Programming Different Functional Blocks of the FLASH+PSD
Functional Block
JTAG Programming
Device Programmer
IAP
Primary Flash Memory
Yes
Yes
Yes
Secondary EEPROM or Flash memory
Yes
Yes
Yes
PLD Array (DPLD and GPLD)
Yes
Yes
No
FLASH+PSD Configuration
Yes
Yes
No
OTP Row
No
Yes
Yes
5/7
M89 FAMILY
Table 6. Ordering Information Scheme
Example:
M89 1 3 F 1 W –
15
T
1
T
SRAM Capacity
1
16 Kbit
3
64 Kbit
Option
T
Tape & Reel Packing
Temperature Range
Flash Memory Capacity
1
0 to 70 °C (commercial)
3
1 Mbit (128K x 8)
6
–40 to 85 °C (industrial)
4
2 Mbit (256K x 8)
2nd Non Volatile Memory
Package
1
256 Kbit EEPROM
K
PLCC52
2
256 Kbit Flash memory
T
PQFP52
Operating Voltage
Speed
Y
4.5 V to 5.5 V
-90
90 ns
W
2.7 V to 3.6 V
-15
150 ns
Note: 1. Available on the 4.5 to 5.5 V range, only.
ORDERING INFORMATION SCHEME
When delivered from ST, the FLASH+PSD device
has all bits in the memory and PLDs set to 1. The
FLASH+PSD Configuration Register bits are set to
0. The code, configuration, and PLD logic are
loaded using the programming procedure.
Information for programming the device is
available directly from ST. Please contact your
local sales representative.
The notation used for the device number is as
shown in Table 6. For a list of available options
(speed, package, etc.) or for further information on
any aspect of this device, please see the full data
sheet (please consult our pages on the world wide
web: www.st.com/flashpsd). Alternatively, please
contact your nearest ST Sales Office.
6/7
1
M89 FAMILY
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without express writt en approval of STMicroelectronics.
 2000 STMicroelectronics - All Rights Reserved
The ST logo is a registered trademark of STMicroelectronics.
All other names are the property of their respective owners.
STMicroelectronics GROUP OF COMPANIES
Australia - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain Sweden - Switzerland - United Kingdom - U.S.A.
http://www. st.com
7/7