PSD834 F 2
PSD834 F 2
Features
■ Flash in-system programmable (ISP)
peripheral for 8-bit MCUs
■ Dual bank Flash memories
PQFP52 (M)
– Up to 2 Mbit of primary Flash memory (8
uniform sectors, 32K x8)
– Up to 256 Kbit secondary Flash memory (4
uniform sectors)
– Concurrent operation: read from one
memory while erasing and writing the other
■ Up to 256 Kbit SRAM
■ 27 reconfigurable I/Oports PLCC52 (J)
■ Enhanced JTAG serial port
■ PLD with macrocells
– Over 3000 gates of PLD: CPLD and DPLD
– CPLD with 16 output macrocells (OMCs)
and 24 input macrocells (IMCs)
– DPLD - user defined internal chip select TQFP64 (U)
decoding
■ 27 individually configurable I/O port pins
■ Programmable power management
They can be used for the following functions:
– MCU I/Os ■ Packages are ECOPACK®
– PLD I/Os
Table 1. Device summary
– Latched MCU address output
– Special function I/Os. Reference Part number
Contents
1 Summary description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4 Development system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6 Detailed operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.1 Memory blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.2 Description of primary Flash memory and secondary Flash memory . . . 27
6.3 Memory block select signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.3.1 Ready/Busy (PC3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.3.2 Memory operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7 Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.1 Power-up mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.2 READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.3 Read memory contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.4 Read Primary Flash Identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.5 Read Memory Sector Protection status . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.6 Reading the Erase/Program Status bits . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.7 Data Polling flag (DQ7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
10 Specific features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
10.1 Flash Memory Sector Protect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
10.2 Reset Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
10.3 Reset (RESET) signal (on the PSD83xF2 and PSD85xF2) . . . . . . . . . . . 41
11 SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
13 Page register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
14 PLDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
14.1 The Turbo Bit in PSD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
14.2 Decode PLD (DPLD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
14.3 Complex PLD (CPLD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
16 I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
16.1 General port architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
16.2 Port operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
16.3 MCU I/O mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
16.4 PLD I/O mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
16.5 Address Out mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
16.6 Address In mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
16.7 Data port mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
16.8 Peripheral I/O mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
16.9 JTAG in-system programming (ISP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
16.10 Port configuration registers (PCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
16.11 Control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
16.12 Direction register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
16.13 Drive Select register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
16.14 Port Data registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
16.15 Data In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
16.16 Data Out register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
17 Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
17.1 Automatic Power-down (APD) Unit and Power-down mode . . . . . . . . . . . 80
17.2 For users of the HC11 (or compatible) . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
17.3 Other power saving options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
17.4 PLD power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
17.5 PSD Chip Select input (CSI, PD2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
17.6 Input clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
17.7 Input control signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
21 Maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
22 AC/DC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
List of tables
List of figures
1 Summary description
The PSD8XXFX family of memory systems for microcontrollers (MCUs) brings in-system-
programmability (ISP) to Flash memory and programmable logic. The result is a simple and
flexible solution for embedded designs. PSD devices combine many of the peripheral
functions found in MCU based applications.
Table 2 summarizes all the devices.
The CPLD in the PSD devices features an optimized macrocell logic architecture. The PSD
macrocell was created to address the unique requirements of embedded system designs. It
allows direct connection between the system address/data bus, and the internal PSD
registers, to simplify communication between the MCU and other supporting devices.
The PSD device includes a JTAG serial programming interface, to allow in-system
programming (ISP) of the entire device. This feature reduces development time, simplifies
the manufacturing flow, and dramatically lowers the cost of field upgrades. Using ST’s
special Fast-JTAG programming, a design can be rapidly programmed into the PSD in as
little as seven seconds.
The innovative PSD8XXFX family solves key problems faced by designers when managing
discrete Flash memory devices, such as:
● First-time in-system programming (ISP)
● Complex address decoding
● Simultaneous read and write to the device.
The JTAG Serial Interface block allows in-system programming (ISP), and eliminates the
need for an external Boot EPROM, or an external programmer. To simplify Flash memory
updates, program execution is performed from a secondary Flash memory 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 PSD. Code examples are also provided for:
● Flash memory IAP via the UART of the host MCU
● Memory paging to execute code across several PSD memory pages
● Loading, reading, and manipulation of PSD macrocells by the MCU.
40 CNTLO
41 RESET
43 CNTL1
42 CNTL2
46 GND
52 PB0
51 PB1
50 PB2
49 PB3
48 PB4
47 PB5
45 PB6
44 PB7
PD2 1 39 AD15
PD1 2 38 AD14
PD0 3 37 AD13
PC7 4 36 AD12
PC6 5 35 AD11
PC5 6 34 AD10
PC4 7 33 AD9
VCC 8 32 AD8
GND 9 31 VCC
PC3 10 30 AD7
PC2 11 29 AD6
PC1 12 28 AD5
PC0 13 27 AD4
PA7 14
PA6 15
PA5 16
PA4 17
PA3 18
GND 19
PA2 20
PA1 21
PA0 22
AD0 23
AD1 24
AD2 25
AD3 26
AI02858
RESET
CNTL2
CNTL0
CNTL1
PB0
PB1
PB2
PB3
PB4
PB5
GND
PB6
PB7
4
7
3
2
52
51
50
49
48
47
6
1
PD2 8 46 AD15
PD1 9 45 AD14
PD0 10 44 AD13
PC7 11 43 AD12
PC6 12 42 AD11
PC5 13 41 AD10
PC4 14 40 AD9
VCC 15 39 AD8
GND 16 38 VCC
PC3 17 37 AD7
PC2 18 36 AD6
PC1 19 35 AD5
PC0 20 34 AD4
32
21
22
23
24
25
26
27
28
29
31
33
30
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
AD2
AD1
AD3
AD0
GND
AI02857
50 RESET
52 CNTL1
51 CNTL2
56 GND
55 GND
62 PB0
61 PB1
60 PB2
59 PB3
58 PB4
57 PB5
54 PB6
53 PB7
64 NC
63 NC
49 NC
PD2 1 48 CNTL0
PD1 2 47 AD15
PD0 3 46 AD14
PC7 4 45 AD13
PC6 5 44 AD12
PC5 6 43 AD11
PC4 7 42 AD10
VCC 8 41 AD9
VCC 9 40 AD8
GND 10 39 VCC
GND 11 38 VCC
PC3 12 37 AD7
PC2 13 36 AD6
PC1 14 35 AD5
PC0 15 34 AD4
NC 16 33 AD3
NC 17
NC 18
PA7 19
PA6 20
PA5 21
PA4 22
PA3 23
GND 24
GND 25
PA2 26
PA1 27
PA0 28
AD0 29
AD1 30
ND 31
AD2 32
AI09645b
2 Pin description
This is the lower Address/Data port. Connect your MCU address or address/data bus
according to the following rules:
If your MCU has a multiplexed address/data bus where the data is multiplexed with the
lower address bits, connect AD0-AD7 to this port.
If your MCU does not have a multiplexed address/data bus, or you are using an 80C251
ADIO0-7 30-37 I/O
in page mode, connect A0-A7 to this port.
If you are using an 80C51XA in burst mode, connect A4/D0 through A11/D7 to this port.
ALE or AS latches the address. The PSD drives data out only if the READ signal is
active and one of the PSD functional blocks was selected. The addresses on this port
are passed to the PLDs.
This is the upper Address/Data port. Connect your MCU address or address/data bus
according to the following rules:
If your MCU has a multiplexed address/data bus where the data is multiplexed with the
lower address bits, connect A8-A15 to this port.
If your MCU does not have a multiplexed address/data bus, connect A8-A15 to this port.
ADIO8-15 39-46 I/O If you are using an 80C251 in page mode, connect AD8-AD15 to this port.
If you are using an 80C51XA in burst mode, connect A12/D8 through A19/D15 to this
port.
ALE or AS latches the address. The PSD drives data out only if the READ signal is
active and one of the PSD functional blocks was selected. The addresses on this port
are passed to the PLDs.
The following control signals can be connected to this port, based on your MCU:
WR – active low Write Strobe input.
CNTL0 47 I R_W – active high READ/active low write input.
This port is connected to the PLDs. Therefore, these signals can be used in decode
and other logic equations.
The following control signals can be connected to this port, based on your MCU:
RD – active low Read Strobe input.
E – E clock input.
DS – active low Data Strobe input.
CNTL1 50 I PSEN – connect PSEN to this port when it is being used as an active low READ signal.
For example, when the 80C251 outputs more than 16 address bits, PSEN is actually
the READ signal.
This port is connected to the PLDs. Therefore, these signals can be used in decode
and other logic equations.
This port can be used to input the PSEN (Program Select Enable) signal from any MCU
that uses this signal for code exclusively. If your MCU does not output a Program Select
CNTL2 49 I
Enable signal, this port can be used as a generic input. This port is connected to the
PLDs.
Resets I/O ports, PLD macrocells and some of the Configuration registers. Must be low
Reset 48 I
at Power-up.
These pins make up port A. These port pins are configurable and can have the
following functions:
MCU I/O – write to or read from a standard output or input port.
PA0 29
CPLD macrocell (McellAB0-7) outputs.
PA1 28
Inputs to the PLDs.
PA2 27
Latched address outputs (see Table 7).
PA3 25
I/O Address inputs. For example, PA0-3 could be used for A0-A3 when using an 80C51XA
PA4 24
in burst mode.
PA5 23
As the data bus inputs D0-D7 for non-multiplexed address/data bus MCUs.
PA6 22
D0/A16-D3/A19 in M37702M2 mode.
PA7 21
Peripheral I/O mode.
Note: PA0-PA3 can only output CMOS signals with an option for high slew rate.
However, PA4-PA7 can be configured as CMOS or Open Drain outputs.
PB0 7 These pins make up port B. These port pins are configurable and can have the
PB1 6 following functions:
PB2 5 MCU I/O – write to or read from a standard output or input port.
PB3 4 CPLD macrocell (McellAB0-7 or McellBC0-7) outputs.
I/O
PB4 3 Inputs to the PLDs.
PB5 2 Latched address outputs (see Table 7).
PB6 52 Note: PB0-PB3 can only output CMOS signals with an option for high slew rate.
PB7 51 However, PB4-PB7 can be configured as CMOS or Open Drain outputs.
PC0 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
CPLD macrocell (McellBC0) output.
PC0 20 I/O
Input to the PLDs.
TMS input(2) for the JTAG Serial Interface.
This pin can be configured as a CMOS or Open Drain output.
PC1 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
CPLD macrocell (McellBC1) output.
PC1 19 I/O
Input to the PLDs.
TCK input(2) for the JTAG Serial Interface.
This pin can be configured as a CMOS or Open Drain output.
PC2 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
PC2 18 I/O CPLD macrocell (McellBC2) output.
Input to the PLDs.
This pin can be configured as a CMOS or Open Drain output.
PC3 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
CPLD macrocell (McellBC3) output.
PC3 17 I/O Input to the PLDs.
TSTAT output(2) for the JTAG Serial Interface.
Ready/Busy output for parallel in-system programming (ISP).
This pin can be configured as a CMOS or Open Drain output.
PC4 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
CPLD macrocell (McellBC4) output.
PC4 14 I/O
Input to the PLDs.
TERR output(2) for the JTAG Serial Interface.
This pin can be configured as a CMOS or Open Drain output.
PC5 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
CPLD macrocell (McellBC5) output.
PC5 13 I/O
Input to the PLDs.
TDI input(2) for the JTAG Serial Interface.
This pin can be configured as a CMOS or Open Drain output.
PC6 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
CPLD macrocell (McellBC6) output.
PC6 12 I/O
Input to the PLDs.
TDO output(2) for the JTAG Serial Interface.
This pin can be configured as a CMOS or Open Drain output.
PC7 pin of port C. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
CPLD macrocell (McellBC7) output.
PC7 11 I/O
Input to the PLDs.
DBE – active low Data Byte Enable input from 68HC912 type MCUs.
This pin can be configured as a CMOS or Open Drain output.
PD0 pin of port D. This port pin can be configured to have the following functions:
ALE/AS input latches address output from the MCU.
PD0 10 I/O MCU I/O – write or read from a standard output or input port.
Input to the PLDs.
CPLD output (External Chip Select).
PD1 pin of port D. This port pin can be configured to have the following functions:
MCU I/O – write to or read from a standard output or input port.
Input to the PLDs.
PD1 9 I/O
CPLD output (External Chip Select).
CLKIN – clock input to the CPLD macrocells, the APD Unit’s Power-down counter, and
the CPLD AND Array.
PD2 pin of port D. This port pin can be configured to have the following functions:
MCU I/O - write to or read from a standard output or input port.
Input to the PLDs.
PD2 8 I/O
CPLD output (External Chip Select).
PSD Chip Select input (CSI). When low, the MCU can access the PSD memory and
I/O. When high, the PSD memory blocks are disabled to conserve power.
VCC 15, 38 Supply voltage
1, 16,
GND Ground pins
26
1. The pin numbers in this table are for the PLCC package only. See the package information from Table 73 onwards, for pin
numbers on other package types.
2. These functions can be multiplexed with other functions.
ADDRESS/DATA/CONTROL BUS
PLD
INPUT
BUS 1 OR 2 MBIT PRIMARY
PAGE
REGISTER FLASH MEMORY
EMBEDDED
ALGORITHM 8 SECTORS
PROG. SELECTS
CNTL2 FLASH DECODE (BOOT OR DATA)
MCU BUS 4 SECTORS
INTRF. PLD (DPLD)
73
SECTOR
SELECTS
PROG.
PORT PC0 – PC7
PROG.
PORT PD0 – PD2
PLD, CONFIGURATION JTAG
CLKIN SERIAL PORT
& FLASH MEMORY
(PD1) D
LOADER CHANNEL
AI02861f
Pin description
19/128
PSD architectural overview PSD8XXFX
PSD devices contain several major functional blocks. Figure 4 shows the architecture of the
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.
3.1 Memory
Each of the memory blocks is briefly discussed in the following paragraphs. A more detailed
discussion can be found in Section 6.1: Memory blocks.
The 1 Mbit or 2 Mbit (128K x 8, or 256K x 8) Flash memory is the primary memory of the
PSD. It is divided into 8 equally-sized sectors that are individually selectable.
The optional 256 Kbit (32K x 8) secondary Flash memory is divided into 4 equally-sized
sectors. Each sector is individually selectable.
The optional SRAM is intended for use as a scratch-pad memory or as an extension to the
MCU SRAM.
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.
3.3 PLDs
The device contains two PLDs, the Decode PLD (DPLD) and the Complex PLD (CPLD), as
shown in Table 4, each optimized for a different function. The functional partitioning of the
PLDs reduces power consumption, optimizes cost/performance, and eases design entry.
The DPLD is used to decode addresses and to generate Sector Select signals for the PSD
internal memory and registers. The DPLD has combinatorial outputs. The CPLD has 16
Output macrocells (OMC) and 3 combinatorial outputs. The PSD also has 24 input
macrocells (IMC) that can be configured as inputs to the PLDs. The PLDs receive their
inputs from the PLD input bus and are differentiated by their output destinations, number of
product terms, and macrocells.
The PLDs consume minimal power. The speed and power consumption of the PLD is
controlled by the Turbo Bit in PMMR0 and other bits in the PMMR2. 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.
The PSD also has some bits that are configured at run-time by the MCU to reduce power
consumption of the CPLD. The Turbo Bit in PMMR0 can be reset to '0' and the CPLD latches
its outputs and goes to sleep until the next transition on its inputs.
Additionally, bits in PMMR2 can be set by the MCU to block signals from entering the CPLD
to reduce power consumption. Please see Section 17: Power management for more details.
PC0 TMS
PC1 TCK
PC3 TSTAT
PC4 TERR
PC5 TDI
PC6 TDO
4 Development system
PSDabel
PLD DESCRIPTION
MODIFY ABEL TEMPLATE FILE
OR GENERATE NEW FILE
PSD Fitter
LOGIC SYNTHESIS USER'S CHOICE OF
FIRMWARE
AND FITTING MICROCONTROLLER
HEX OR S-RECORD COMPILER/LINKER
ADDRESS TRANSLATION FORMAT
AND MEMORY MAPPING
*.OBJ FILE
AI04918
Table 7 shows the offset addresses to the PSD registers relative to the CSIOP base
address. The CSIOP space is the 256 bytes of address that is allocated by the user to the
internal PSD registers. Table 8 provides brief descriptions of the registers in CSIOP space.
The following section gives a more detailed description.
Mask
Blocks writing to the Output macrocells
macrocells 22 22
AB
AB
Mask
Blocks writing to the Output macrocells
macrocells 23 23
BC
BC
Primary Flash Read only – Primary Flash Sector
C0
Protection Protection
Secondary
Read only – PSD Security and Secondary
Flash memory C2
Flash memory Sector Protection
Protection
JTAG Enable C7 Enables JTAG port
PMMR0 B0 Power Management register 0
PMMR2 B4 Power Management register 2
Page E0 Page register
Places PSD memory areas in program
VM E2
and/or data space on an individual basis.
1. Other registers that are not part of the I/O ports.
6 Detailed operation
As shown in Figure 4, the PSD consists of six major types of functional blocks:
● Memory blocks
● PLD blocks
● MCU bus interface
● I/O ports
● Power management unit (PMU)
● JTAG interface
The functions of each block are described in the following sections. Many of the blocks
perform multiple functions, and are user configurable.
“READ”
READ(5) 1
RD @ RA
Read Main AAh@ 55h@ 90h@ Read identifier
1
Flash ID(6) X555h XAAAh X555h (A6,A1,A0 = 0,0,1)
Read Sector
AAh@ 55h@ 90h@ Read identifier
Protection(6)(7) 1
(8) X555h XAAAh X555h (A6,A1,A0 = 0,1,0)
8. The MCU cannot invoke these instructions while executing code from the same Flash memory as that for which the
instruction is intended. The MCU must fetch, for example, the code from the secondary Flash memory when reading the
Sector Protection Status of the primary Flash memory.
9. Additional sectors to be erased must be written at the end of the Sector Erase instruction within 80 µs.
10. The system may perform READ and Program cycles in non-erasing sectors, read the Flash ID or read the Sector Protection
Status when in the Suspend Sector Erase mode. The Suspend Sector Erase instruction is valid only during a Sector Erase
cycle.
11. The Resume Sector Erase instruction is valid only during the Suspend Sector Erase mode.
12. The Unlock Bypass instruction is required prior to the Unlock Bypass Program instruction.
13. The Unlock Bypass Reset Flash instruction is required to return to reading memory data when the device is in the Unlock
Bypass mode.
7 Instructions
7.2 READ
Under typical conditions, the MCU may read the primary Flash memory or the secondary
Flash memory using READ operations just as it would a ROM or RAM device. Alternately,
the MCU may use READ operations to obtain status information about a program or erase
cycle that is currently in progress. Lastly, the MCU may use instructions to read special data
from these memory blocks. The following sections describe these READ functions.
Flash memory must be erased prior to being programmed. A byte of Flash memory is
erased to all 1s (FFh), and is programmed by setting selected bits to ’0.’ The MCU may
erase Flash memory all at once or by-sector, but not byte-by-byte. However, the MCU may
program Flash memory byte-by-byte.
The primary and secondary Flash memories require the MCU to send an instruction to
program a byte or to erase sectors (see Table 10).
Once the MCU issues a Flash memory Program or Erase instruction, it must check for the
status bits for completion. The embedded algorithms that are invoked inside the PSD
support several means to provide status to the MCU. Status may be checked using any of
three methods: Data Polling, Data Toggle, or Ready/Busy (PC3).
START
DQ7 YES
=
DATA
NO
NO DQ5
=1
YES
READ DQ7
DQ7 YES
=
DATA
NO
FAIL PASS
AI01369B
any location within the sector being erased to get the Toggle flag bit (DQ6) and the Error flag
bit (DQ5).
PSDsoft Express generates ANSI C code functions which implement these Data Toggling
algorithms.
START
READ
DQ5 & DQ6
DQ6 NO
=
TOGGLE
YES
NO DQ5
=1
YES
READ DQ6
DQ6 NO
=
TOGGLE
YES
FAIL PASS
AI01370B
A Suspend Sector Erase instruction executed during an Erase timeout period, in addition to
suspending the Erase cycle, terminates the time out period.
The Toggle flag bit (DQ6) stops toggling when the PSD internal logic is suspended. The
status of this bit must be monitored at an address within the Flash memory sector being
erased. The Toggle flag bit (DQ6) stops toggling between 0.1µs and 15µs after the Suspend
Sector Erase instruction has been executed. The PSD is then automatically set to READ
mode.
If an Suspend Sector Erase instruction was executed, the following rules apply:
● Attempting to read from a Flash memory sector that was being erased outputs invalid
data.
● Reading from a Flash sector that was not being erased is valid.
● The Flash memory cannot be programmed, and only responds to Resume Sector
Erase and Reset Flash instructions (READ is an operation and is allowed).
● If a Reset Flash instruction is received, data in the Flash memory sector that was being
erased is invalid.
10 Specific features
Security_B
not used not used not used Sec3_Prot Sec2_Prot Sec1_Prot Sec0_Prot
it
1. Bit Definitions:
Sec<i>_Prot 1 = Secondary Flash memory Sector <i> is write protected.
Sec<i>_Prot 0 = Secondary Flash memory Sector <i> is not write protected.
Security_Bit 0 = Security Bit in device has not been set.
1 = Security Bit in device has been set.
11 SRAM
The SRAM is enabled when SRAM Select (RS0) from the DPLD is high. SRAM Select
(RS0) can contain up to two product terms, allowing flexible memory mapping.
SRAM Select (RS0) is configured using PSDsoft Express Configuration.
Sector Select (FS0-FS7, CSBOOT0-CSBOOT3) and SRAM Select (RS0) are all outputs of
the DPLD. They are setup by writing equations for them in PSDabel. The following rules
apply to the equations for these signals:
1. Primary Flash memory and secondary Flash memory Sector Select signals must not
be larger than the physical sector size.
2. Any primary Flash memory sector must not be mapped in the same memory space as
another Flash memory sector.
3. A secondary Flash memory sector must not be mapped in the same memory space as
another secondary Flash memory sector.
4. SRAM, I/O, and Peripheral I/O spaces must not overlap.
5. A secondary Flash memory sector may overlap a primary Flash memory sector. In
case of overlap, priority is given to the secondary Flash memory sector.
6. SRAM, I/O, and Peripheral I/O spaces may overlap any other memory sector. Priority is
given to the SRAM, I/O, or Peripheral I/O.
12.1 Example
FS0 is valid when the address is in the range of 8000h to BFFFh, CSBOOT0 is valid from
8000h to 9FFFh, and RS0 is valid from 8000h to 87FFh. Any address in the range of RS0
always accesses the SRAM. Any address in the range of CSBOOT0 greater than 87FFh
(and less than 9FFFh) automatically addresses secondary Flash memory segment 0. Any
address greater than 9FFFh accesses the primary Flash memory segment 0. You can see
that half of the primary Flash memory segment 0 and one-fourth of secondary Flash
memory segment 0 cannot be accessed in this example. Also note that an equation that
defined FS1 to anywhere in the range of 8000h to BFFFh would not be valid.
Figure 8 shows the priority levels for all memory components. Any component on a higher
level can overlap and has priority over any component on a lower level. Components on the
same level must not overlap. Level one has the highest priority and level 3 has the lowest.
PSDsoft Express Configuration to configure it for Boot-up and having the MCU change it
when desired. Table 14 describes the VM register.
Level 1
SRAM, I/O, or
Peripheral I/O
Level 2
Secondary
Non-Volatile Memory
Level 3
Primary Flash Memory
FS0-FS7
CS CS CS
OE OE OE
PSEN
RD
AI02869C
FS0-FS7
CS CS CS
OE OE OE
VM REG BIT 3
VM REG BIT 4
PSEN
VM REG BIT 1
VM REG BIT 2 RD
VM REG BIT 0
AI02870C
0 = PSEN
0 = RD 0 = RD can’t 0 = PSEN can’t 0 = PSEN
0 = disable cannot
not not access access cannot
cannot access access
PIO mode used used secondary Flash secondary Flash access
Flash memory Flash
memory memory SRAM
memory
1 = PSEN
1 = RD 1 = RD access 1 = PSEN access 1 = PSEN
1= enable not not access
access Flash secondary Flash secondary Flash access
PIO mode used used Flash
memory memory memory SRAM
memory
13 Page register
The 8-bit Page register increases the addressing capability of the MCU by a factor of up to
256. The contents of the register can also be read by the MCU. The outputs of the Page
register (PGR0-PGR7) are inputs to the DPLD decoder and can be included in the Sector
Select (FS0-FS7, CSBOOT0-CSBOOT3), and SRAM Select (RS0) equations.
If memory paging is not needed, or if not all 8 page register bits are needed for memory
paging, then these bits may be used in the CPLD for general logic. See Application Note
AN1154.
Figure 11 shows the Page register. The eight flip-flops in the register are connected to the
internal data bus D0-D7. The MCU can write to or read from the Page register. The Page
register can be accessed at address location CSIOP + E0h.
PGR0 INTERNAL
D0 Q0
PGR1 SELECTS
D1 Q1 AND LOGIC
D0 - D7 PGR2
D2 Q2
PGR3 DPLD
D3 Q3 AND
PGR4 CPLD
D4 Q4
PGR5
D5 Q5
PGR6
D6 Q6
PGR7
R/ W D7 Q7
PAGE PLD
REGISTER AI02871B
14 PLDS
The PLDs bring programmable logic functionality to the PSD. After specifying the logic for
the PLDs using the PSDabel tool in PSDsoft Express, the logic is programmed into the
device and available upon Power-up.
The PSD contains two PLDs: the Decode PLD (DPLD), and the Complex PLD (CPLD). The
PLDs are briefly discussed in the next few paragraphs, and in more detail in Section 14.2:
Decode PLD (DPLD), and Section 14.3: Complex PLD (CPLD). Figure 12 shows the
configuration of the PLDs.
The DPLD performs address decoding for Select signals for internal components, such as
memory, registers, and I/O ports.
The CPLD can be used for logic functions, such as loadable counters and shift registers,
state machines, and encoding and decoding logic. These logic functions can be constructed
using the 16 Output macrocells (OMC), 24 input macrocells (IMC), and the AND Array. The
CPLD can also be used to generate External Chip Select (ECS0-ECS2) signals.
The AND Array is used to form product terms. These product terms are specified using
PSDabel. An input bus consisting of 73 signals is connected to the PLDs. The signals are
shown in Table 15.
8
DATA PAGE
BUS REGISTER
8
Figure 12. PLD diagram
16 OUTPUT MACROCELL FEEDBACK DIRECT MACROCELL ACCESS FROM MCU DATA BUS
3 PORT D INPUTS
AI02872C
PLDS
49/128
PLDS PSD8XXFX
3 CSBOOT 0
3 CSBOOT 1
3 CSBOOT 2
3 CSBOOT 3
(INPUTS) 3
FS0
I /O PORTS (PORT A,B,C) (24)
3
FS1
MCELLAB.FB [7:0] (FEEDBACKS) (8)
3
FS2
MCELLBC.FB [7:0] (FEEDBACKS) (8)
3
FS3 8 PRIMARY FLASH
PGR0 - PGR7 (8)
3 MEMORY SECTOR SELECTS
FS4
A[15:0] * (16)
3
FS5
PD[2:0] (ALE,CLKIN,CSI) (3)
3
FS6
PDN (APD OUTPUT) (1)
3
FS7
CNTRL[2:0] (READ/WRITE CONTROL SIGNALS) (3)
RESET (1)
2 RS0
SRAM SELECT
RD_BSY (1)
1 CSIOP I/O DECODER
SELECT
1 PSEL0
PERIPHERAL I/O MODE
1 PSEL1 SELECT
1 JTAGSEL
AI02873D
52/128
PRODUCT TERMS MCU ADDRESS / DATA BUS
FROM OTHER
MACROCELLS
TO OTHER I/O PORTS
UP TO 10
PRODUCT TERMS
MACROCELL CPLD OUTPUT
OUT TO
MCU
POLARITY
SELECT
MUX
AND ARRAY
PR DI LD
D/T Q SELECT
PT
CLOCK CPLD PDR
D/T/JK FF COMB. OUTPUT INPUT
SELECT /REG
GLOBAL
SELECT
MUX
CLOCK
CK MACROCELL
TO
CL I/O PORT
CLOCK
AI02874
PSD8XXFX
PSD8XXFX PLDS
If the Output macrocell (OMC) output is declared as an internal node and not as a port pin
output in the PSDabel file, the port pin can be used for other I/O functions. The internal node
feedback can be routed as an input to the AND Array.
I/O PIN
AI02875B
MACROCELL
DRIVER
INPUT
PORT
DIRECTION
MACROCELL
ALLOCATOR
REGISTER
D [ 7:0]
INTERNAL DATA BUS
PROGRAMMABLE
COMB/REG
SELECT
FF (D/T/JK /SR)
MUX
Q
DIN PR
CLR
LD
IN
ENABLE (.OE)
PRESET(.PR)
CLEAR (.RE)
MUX
FEEDBACK (.FB)
PORT INPUT
POLARITY
SELECT
MACROCELL CS
MASK
REG.
WR
RD
ALLOCATOR
PT
PT
PT
PT CLK
CLKIN
PT
AND ARRAY
REGISTER
ENABLE ( .OE )
OUTPUT
PT MACROCELLS BC
AND
MACROCELL AB
I/O PIN
AND ARRAY
PT
PORT
DRIVER
MUX ALE/AS
D FF
FEEDBACK Q D
G
LATCH
INPUT MACROCELL
AI02876B
PLDS
57/128
PLDS
58/128
PSD
SLAVE– CS
RD
WR
SLAVE – READ
PORT A
DATA OUT SLAVE
REGISTER MCU
CPLD D [ 7:0]
MCU-RD D Q
PORT A
MCU-WR
MCU-WR
MASTER
MCU
SLAVE – WR
D [ 7:0]
Q D
MCU-RD
AI02877C
PSD8XXFX
PSD8XXFX MCU bus interface
The “no-glue logic” MCU bus interface block can be directly connected to most popular
MCUs and their control signals. Key 8-bit MCUs, with their bus types and control signals, are
shown in Table 17. The interface type is specified using the PSDsoft Express Configuration.
MCU PSD
AD [ 7:0] A [ 7: 0]
PORT
A (OPTIONAL)
ADIO
PORT
A[ 15:8]
PORT A [ 15: 8]
B (OPTIONAL)
WR WR (CNTRL0)
RD RD (CNTRL1)
BHE BHE (CNTRL2) PORT
C
RST
PORT D
RESET
AI02878C
X 0 Even byte
X 1 Odd byte
MCU PSD
D [ 7:0] D [ 7:0]
PORT
ADIO A
PORT
A [ 15:0]
PORT A[ 23:16]
B
(OPTIONAL)
WR WR (CNTRL0)
RD RD (CNTRL1)
BHE BHE (CNTRL2) PORT
RST C
PORT D
RESET
AI02879C
15.5 80C31
Figure 20 shows the bus interface for the 80C31, which has an 8-bit multiplexed
address/data bus. The lower address byte is multiplexed with the data bus. The MCU control
signals Program Select Enable (PSEN, CNTL2), Read Strobe (RD, CNTL1), and Write
Strobe (WR, CNTL0) may be used for accessing the internal memory and I/O ports blocks.
Address Strobe (ALE/AS, PD0) latches the address.
80C31 PSD
AD0 30 29
31 31 ADIO0 PA0
39 AD0 AD1 28
EA/VP P0.0 ADIO1 PA1
38 AD1 AD2 32 27
19 P0.1 ADIO2 PA2
X1 37 AD2 AD3 33 25
P0.2 34 ADIO3 PA3
36 AD3 AD4 24
18 P0.3 ADIO4 PA4
X2 35 AD4 AD5 35 23
P0.4 ADIO5 PA5
34 AD5 AD6 36 22
P0.5 ADIO6 PA6
9 33 AD6 AD7 37 21
RESET RESET P0.6 ADIO7 PA7
32 AD7
P0.7
12
INT0 21 A8 39 7
13 P2.0 ADIO8 PB0
INT1 22 A9 40 6
14 P2.1 ADIO9 PB1
T0 23 A10 41 5
15 P2.2 ADIO10 PB2
T1 24 A11 42
P2.3 ADIO11 4
25 A12 43 PB3
P2.4 ADIO12 3
1 26 A13 44 PB4
P1.0 P2.5 ADIO13 2
2 27 A14 45 PB5
P1.1 P2.6 ADIO14 52
3 28 A15 46 PB6
P1.2 P2.7 ADIO15 51
4 PB7
P1.3 17 RD
5 RD
P1.4
6 16 WR 47 20
P1.5 WR CNTL0 (WR) PC0
7 29 PSEN 50 19
P1.6 PSEN CNTL1(RD) PC1
8 18
P1.7 30 ALE PC2
ALE/P 17
49 PC3
11 CNTL2 (PSEN) 14
TXD PC4
10 10 13
RXD PD0-ALE PC5
12
9 PC6
PD1 11
8 PC7
PD2
RESET 48
RESET RESET
AI02880C
15.6 80C251
The Intel 80C251 MCU features a user-configurable bus interface with four possible bus
configurations, as shown in Table 19.
The first configuration is 80C31-compatible, and the bus interface to the PSD is identical to
that shown in Figure 20. The second and third configurations have the same bus connection
as shown in Figure 21. There is only one Read Strobe (PSEN) connected to CNTL1 on the
PSD. The A16 connection to PA0 allows for a larger address input to the PSD. The fourth
configuration is shown in Figure 22. Read Strobe (RD) is connected to CNTL1 and Program
Select Enable (PSEN) is connected to CNTL2.
The 80C251 has two major operating modes: Page mode and Non-page mode. In Non-
page mode, the data is multiplexed with the lower address byte, and Address Strobe
(ALE/AS, PD0) is active in every bus cycle. In Page mode, data (D7-D0) is multiplexed with
address (A15-A8). In a bus cycle where there is a Page hit, Address Strobe (ALE/AS, PD0)
is not active and only addresses (A7-A0) are changing. The PSD supports both modes. In
Page mode, the PSD bus timing is identical to Non-Page mode except the address hold time
and setup time with respect to Address Strobe (ALE/AS, PD0) is not required. The PSD
access time is measured from address (A7-A0) valid to data in valid.
Figure 21. Interfacing the PSD with the 80C251, with One READ input
80C251SB PSD
2 43 A0 A0 30
P1.0 P0.0 ADIO0 A161
3 42 A1 A1 31 29
P1.1 P0.1 ADIO1 PA0
4 41 A2 A2 32 28
P1.2 P0.2 ADIO2 PA1
5 P0.3
40 A3 A3 33
ADIO3
27 A171
P1.3 39 A4 A4 34
PA2
6 25
P1.4 P0.4 ADIO4 PA3
7 38 A5 A5 35 24
P1.5 P0.5 ADIO5 PA4
8 37 A6 A6 36 23
P1.6 P0.6 ADIO6 PA5
9 36 A7 A7 37 22
P1.7 P0.7 ADIO7 PA6
21
24 AD8 PA7
21 P2.0
X1 25 AD9 AD8 39
P2.1 ADIO8 7
20 26 AD10 AD9 40
X2 P2.2 ADIO9 PB0 6
27 AD11 AD10 41
P2.3 ADIO10 PB1 5
11 28 AD12 AD11 42
P3.0/RXD P2.4 ADIO11 PB2 4
13 29 AD13 AD12 43 PB3
P3.1/TXD P2.5 ADIO12 3
14 30 AD14 AD13 44 PB4
P3.2/INT0 P2.6 ADIO13 2
15 31 AD15 AD14 45 PB5
P2.7 ADIO14 52
P3.3/INT1 AD15 46 PB6
16 ADIO15
P3.4/T0 51
17 PB7
P3.5/T1 33 ALE 47
ALE CNTL0 ( WR)
10 32 RD 50
RESET RST PSEN CNTL1( RD) 20
18 WR PC0
WR 19
35 19 A16 49 PC1
EA RD/A16 CNTL 2(PSEN) 18
PC2
17
PC3
10 14
PD0-ALE PC4
13
9 PC5
PD1 12
8 PC6
PD2 11
PC7
RESET 48
RESET RESET
AI02881C
Figure 22. Interfacing the PSD with the 80C251, with RD and PSEN inputs
80C251SB PSD
2 43 A0 A0 30
P1.0 P0.0 ADIO0
3 42 A1 A1 31 29
P1.1 P0.1 ADIO1 PA0
4 41 A2 A2 32 28
P1.2 P0.2 ADIO2 PA1
5 40 A3 A3 33 27
P1.3 P0.3 ADIO3 PA2
6 39 A4 A4 34 25
P1.4 P0.4 ADIO4 PA3
7 38 A5 A5 35 24
P1.5 P0.5 ADIO5 PA4
8 37 A6 A6 36 23
P1.6 P0.6 ADIO6 PA5
9 36 A7 A7 37 22
P1.7 P0.7 ADIO7 PA6
21
24 AD8 PA7
21 P2.0
X1 25 AD9 AD8 39
P2.1 ADIO8 7
20 26 AD10 AD9 40
X2 P2.2 ADIO9 PB0 6
27 AD11 AD10 41
P2.3 ADIO10 PB1 5
11 28 AD12 AD11 42
P3.0/RXD P2.4 ADIO11 PB2 4
13 29 AD13 AD12 43 PB3
P3.1/TXD P2.5 ADIO12 3
14 30 AD14 AD13 44 PB4
P3.2/INT0 P2.6 ADIO13 2
15 31 AD15 AD14 45 PB5
P3.3/INT1 P2.7 ADIO14 52
16 AD15 46 PB6
P3.4/T0 ADIO15 51
17 PB7
P3.5/T1 33 ALE 47
ALE CNTL0 ( WR)
10 32 RD 50
RESET RST PSEN CNTL1( RD) 20
18 WR PC0
WR 19
35 19 PSEN 49 PC1
EA RD/A16 CNTL 2(PSEN) 18
PC2
17
PC3
10 14
PD0-ALE PC4
13
9 PC5
PD1 12
8 PC6
PD2 11
PC7
RESET 48
RESET RESET
AI02882C
WR CNTL0
Non-Page mode, 80C31 compatible
1 RD CNTL1
A7-A0 multiplex with D7-D0
PSEN CNTL2
WR CNTL0 Non-Page mode
2
PSEN only CNTL1 A7-A0 multiplex with D7-D0
WR CNTL0 Page mode
3
PSEN only CNTL1 A15-A8 multiplex with D7-D0
WR CNTL0
Page mode
4 RD CNTL1
A15-A8 multiplex with D7-D0
PSEN CNTL2
15.7 80C51XA
The Philips 80C51XA MCU family supports an 8- or 16-bit multiplexed bus that can have
burst cycles. Address bits (A3-A0) are not multiplexed, while (A19-A4) are multiplexed with
data bits (D15-D0) in 16-bit mode. In 8-bit mode, (A11-A4) are multiplexed with data bits
(D7-D0).
The 80C51XA can be configured to operate in eight-bit data mode (as shown in Figure 23).
The 80C51XA improves bus throughput and performance by executing burst cycles for code
fetches. In Burst mode, address A19-A4 are latched internally by the PSD, while the
80C51XA changes the A3-A0 signals to fetch up to 16 bytes of code. The PSD access time
is then measured from address A3-A0 valid to data in valid. The PSD bus timing
requirement in Burst mode is identical to the normal bus cycle, except the address setup
and hold time with respect to Address Strobe (ALE/AS, PD0) does not apply.
Figure 23. Interfacing the PSD with the 80C51X, 8-bit data bus
80C51XA PSD
21 2 A0 A4D0 30
XTAL1 A0/WRH ADIO0
20 3 A1 A5D1 31 29 A0
XTAL2 A1 ADIO1 PA0
4 A2 A6D2 32 28 A1
A2 ADIO2 PA1
5 A3 A7D3 33 27 A2
A3 ADIO3 PA2
43 A4D0 A8D4 34 25 A3
11 A4D0 AD104 PA3
RXD0 42 A5D1 A9D5 35 AD105 24
13 A5D1 PA4
TXD0 41 A6D2 A10D6 36 23
6 A6D2 ADIO6 PA5
RXD1 40 A7D3 A11D7 37 22
7 A7D3 ADIO7 PA6
TXD1 39 A8D4 21
A8D4 PA7
38 A9D5
A9D5
37 A10D6 A12 39
9 A10D6 ADIO8 7
T2EX 36 A11D7 A13 40 PB0
8 A11D7 ADIO9 6
T2 24 A12 A14 41 PB1
16 A12D8 ADIO10 5
T0 25 A13 A15 42 PB2
A13D9 ADIO11 4
26 A14 A16 43 PB3
A14D10 AD1012 3
27 A15 A17 44 PB4
A15D11 AD1013 2
10 28 A16 A18 45 PB5
RESET RST A16D12 ADIO14 52
14 29 A17 A19 46 PB6
INT0 A17D13 ADIO15 51
30 A18 PB7
15 A18D14
INT1 31 A19
A19D15
47 CNTL0 (WR) 20
50 PC0
CNTL1(RD) 19
PC1
18
PC2
35 32 PSEN 49 17
EA/WAIT PSEN CNTL 2 (PSEN) PC3
19 14
17 RD 10 PC4
BUSW RD 13
18 WR 8 PD0-ALE PC5
WRL PD1 12
33 ALE 9 PC6
ALE PD2 11
PC7
48
RESET
RESET
AI02883C
15.8 68HC11
Figure 24 shows a bus interface to a 68HC11 where the PSD is configured in 8-bit
multiplexed mode with E and R/W settings. The DPLD can be used to generate the READ
and WR signals for external devices.
AD7-AD0
AD7-AD0
PSD
AD0 30 29
ADIO0 PA0
AD1 31 28
68HC11 AD2
ADIO1 PA1
27
32 PA2
ADIO2
31 AD3 33 25
8 PA3 ADIO3 PA3
XT 30 AD4 34 24
PA4 AD104 PA4
7 29 AD5 35 23
EX PA5 AD105 PA5
28 AD6 36 22
PA6 ADIO6 PA6
17 27 AD7 37 21
RESET PA7 ADIO7 PA7
RESET
19
IRQ
18
XIRQ 42 A8 39 7
PB0 ADIO8 PB0
41 A9 40 6
2 PB1 ADIO9 PB1
MODB 40 A10 41 5
PB2 ADIO10 PB2
39 A11 42 4
34 PB3 ADIO11 PB3
38 A12 43 3
PA0 PB4 AD1012 PB4
33 37 A13 44 2
PA1 PB5 AD1013 PB5
32 36 A14 45 52
PA2 PB6 ADIO14 PB6
35 A15 46 51
PB7 ADIO15 PB7
9 AD0
43 PC0 20
PE0 10 AD1 PC0
44 PC1 47 19
PE1 11 AD2 CNTL0 (R _W) PC1
45 PC2 50 18
PE2 12 AD3 CNTL1(E) PC2
46 PC3 17
PE3 13 AD4 PC3
47 PC4 49 14
PE4 14 AD5 CNTL 2 PC4
48 PC5 13
PE5 15 AD6 PC5
49 PC6 10 12
PE6 16 AD7 PD0 – AS PC6
50 PC7 9 11
PE7 8 PD1 PC7
20 PD2
52 PD0
VRH 21
51 PD1 48
VRL 22 RESET
PD2
23
PD3
24
PD4
25
PD5
3
MODA
5 E
E
4 AS
AS
6 R/ W
R/W
RESET
AI02884C
16 I/O ports
There are four programmable I/O ports: ports A, B, C, and D. Each of the ports is eight bits
except port D, which is 3 bits. Each port pin is individually user configurable, thus allowing
multiple functions per port. The ports are configured using PSDsoft Express Configuration
or by the MCU writing to on-chip registers in the CSIOP space.
The topics discussed in this section are:
● General port architecture
● Port operating modes
● Port configuration registers (PCR)
● Port Data registers
● Individual port functionality.
DATA OUT
REG.
DATA OUT
D Q
WR
ADDRESS ADDRESS
D Q PORT PIN
ALE OUTPUT
G MUX
MACROCELL OUTPUTS
EXT CS
READ MUX
INTERNAL DATA BUS
P OUTPUT
SELECT
D
DATA IN
B
CONTROL REG.
ENABLE OUT
D Q
WR
DIR REG.
D Q
WR
CPLD-INPUT
AI02885
Yes (A7 – 0)
Address Out Yes (A7 – 0) No No
or (A15 – 8)
Address In Yes Yes Yes Yes
Data port Yes (D7 – 0) No No No
Peripheral I/O Yes No No No
JTAG ISP No No Yes(1) No
1. Can be multiplexed with other I/O functions.
1 = output,
MCU I/O Declare pins only N/A(1) 0 N/A N/A
0 = input(2)
(2)
PLD I/O Logic equations N/A N/A N/A N/A
Data port (Port A) N/A Specify bus type N/A N/A N/A N/A
Address Out
Declare pins only N/A 1 1(2) N/A N/A
(Port A,B)
Address In Logic for equation
N/A N/A N/A N/A N/A
(Port A,B,C,D) input macrocells
RD
PSEL0
PSEL
PSEL1
D0 - D7
VM REGISTER BIT 7 PA0 - PA7
DATA BUS
WR
AI02886
Table 24. Port Pin Direction Control, Output Enable P.T. not defined
Direction register bit Port Pin mode
0 Input
1 Output
Table 25. Port Pin Direction Control, Output Enable P.T. defined
Direction register Bit Output Enable P.T. Port Pin mode
0 0 Input
0 1 Output
1 0 Output
1 1 Output
0 0 0 0 0 1 1 1
16.15 Data In
Port pins are connected directly to the Data In buffer. In MCU I/O input mode, the pin input is
read through the Data In buffer.
DATA OUT
REG.
DATA OUT
D Q
WR
ADDRESS PORT
ADDRESS A OR B PIN
D Q
ALE A[ 7:0] OR A[15:8] OUTPUT
G MUX
MACROCELL OUTPUTS
READ MUX
INTERNAL DATA BUS
P OUTPUT
SELECT
D DATA IN
B
CONTROL REG.
ENABLE OUT
D Q
WR
DIR REG.
D Q
WR
CPLD - INPUT
AI02887
DATA OUT
REG.
DATA OUT
D Q
WR
1 PORT C PIN
SPECIAL FUNCTION OUTPUT
MUX
MCELLBC[ 7:0]
READ MUX
INTERNAL DATA BUS
P OUTPUT
SELECT
D
DATA IN
B
ENABLE OUT
DIR REG.
D Q
WR
INPUT
MACROCELL
Port D pins can be configured in PSDsoft Express as input pins for other dedicated
functions:
● Address Strobe (ALE/AS, PD0)
● CLKIN (PD1) as input to the macrocells flip-flops and APD counter
● PSD Chip Select input (CSI, PD2). Driving this signal high disables the Flash memory,
SRAM and CSIOP.
DATA OUT
REG.
DATA OUT
D Q
WR
PORT D PIN
OUTPUT
MUX
ECS[ 2:0]
READ MUX
INTERNAL DATA BUS
P OUTPUT
SELECT
D
B DATA IN
ENABLE PRODUCT
DIR REG. TERM (.OE)
D Q
WR
CPLD - INPUT AI02889
POLARITY
POLARITY
BIT
ENABLE (.OE) DIRECTION
REGISTER
POLARITY
BIT AI02890
17 Power management
All PSD devices offer configurable power saving options. These options may be used
individually or in combinations, as follows:
● All memory blocks in a PSD (primary and secondary Flash memory, and SRAM) are
built with power management technology. In addition to using special silicon design
methodology, power management technology puts the memories into standby mode
when address/data inputs are not changing (zero DC current). As soon as a transition
occurs on an input, the affected memory “wakes up”, changes and latches its outputs,
then goes back to Standby. The designer does not have to do anything special to
achieve memory Standby mode when no inputs are changing—it happens
automatically.
The PLD sections can also achieve Standby mode when its inputs are not changing, as
described in the sections on the Power Management mode registers (PMMR).
● As with the Power Management mode, the Automatic Power Down (APD) block allows
the PSD to reduce to standby current automatically. The APD Unit can also block MCU
address/data signals from reaching the memories and PLDs. This feature is available
on all the devices of the PSD family. The APD Unit is described in more detail in
Section 17.1: Automatic Power-down (APD) Unit and Power-down mode.
Built in logic monitors the Address Strobe of the MCU for activity. If there is no activity
for a certain time period (MCU is asleep), the APD Unit initiates Power-down mode (if
enabled). Once in Power-down mode, all address/data signals are blocked from
reaching PSD memory and PLDs, and the memories are deselected internally. This
allows the memory and PLDs to remain in Standby mode even if the address/data
signals are changing state externally (noise, other devices on the MCU bus, etc.). Keep
in mind that any unblocked PLD input signals that are changing states keeps the PLD
out of Standby mode, but not the memories.
● PSD Chip Select input (CSI, PD2) can be used to disable the internal memories,
placing them in Standby mode even if inputs are changing. This feature does not block
any internal signals or disable the PLDs. This is a good alternative to using the APD
Unit. There is a slight penalty in memory access time when PSD Chip Select input
(CSI, PD2) makes its initial transition from deselected to selected.
● The PMMRs can be written by the MCU at run-time to manage power. All PSD
supports “blocking bits” in these registers that are set to block designated signals from
reaching both PLDs. Current consumption of the PLDs is directly related to the
composite frequency of the changes on their inputs (see Figure 34 and Figure 35).
Significant power savings can be achieved by blocking signals that are not used in
DPLD or CPLD logic equations.
PSD devices have a Turbo Bit in PMMR0. This bit can be set to turn the Turbo mode off
(the default is with Turbo mode turned on). While Turbo mode is off, the PLDs can
achieve standby current when no PLD inputs are changing (zero DC current). Even
when inputs do change, significant power can be saved at lower frequencies (AC
current), compared to when Turbo mode is on. When the Turbo mode is on, there is a
significant DC current component and the AC component is higher.
Power-down mode
By default, if you enable the APD Unit, Power-down mode is automatically enabled. The
device enters Power-down mode if Address Strobe (ALE/AS, PD0) remains inactive for
fifteen periods of CLKIN (PD1).
The following should be kept in mind when the PSD is in Power-down mode:
● If Address Strobe (ALE/AS, PD0) starts pulsing again, the PSD returns to normal
operating mode. The PSD also returns to normal operating mode if either PSD Chip
Select input (CSI, PD2) is low or the Reset (RESET) input is high.
● The MCU address/data bus is blocked from all memory and PLDs.
● Various signals can be blocked (prior to Power-down mode) from entering the PLDs by
setting the appropriate bits in the PMMR registers. The blocked signals include MCU
control signals and the common CLKIN (PD1). Note that blocking CLKIN (PD1) from
the PLDs does not block CLKIN (PD1) from the APD Unit.
● All PSD memories enter Standby mode and are drawing standby current. However, the
PLD and I/O ports blocks do not go into Standby mode because you don’t want to have
to wait for the logic and I/O to “wake up” before their outputs can change. See Table 29
for Power-down mode effects on PSD ports.
● Typical standby current is of the order of microamperes. These standby current values
assume that there are no transitions on any PLD input.
DISABLE
FLASH/EEPROM/SRAM AI02891
Table 30. PSD timing and standby current during Power-down mode
Typical standby current
Memory Access recovery time
Mode PLD propagation delay
access time to normal access
5 V VCC 3 V VCC
Enable APD
Set PMMR0 Bit 1 = 1
OPTIONAL
Disable desired inputs to PLD
by setting PMMR0 bits 4 and 5
and PMMR2 bits 2 through 6.
No ALE/AS idle
for 15 CLKIN
clocks?
Yes
PSD in Power
Down Mode
AI02892
0= CLKIN (PD1) input to the PLD AND Array is connected. Every change of CLKIN
on (PD1) Powers-up the PLD when Turbo Bit is ’0.’
Bit 4 PLD Array clk
1=
CLKIN (PD1) input to PLD AND Array is disconnected, saving power.
off
0=
CLKIN (PD1) input to the PLD macrocells is connected.
on
Bit 5 PLD MCell clk
1=
CLKIN (PD1) input to PLD macrocells is disconnected, saving power.
off
Bit 6 X 0 Not used, and should be set to zero.
Bit 7 X 0 Not used, and should be set to zero.
1. The bits of this register are cleared to zero following Power-up. Subsequent Reset (RESET) pulses do not clear the
registers.
0 X X Not counting
1 X Pulsing Not counting
1 1 1 Counting (generates PDN after 15 clocks)
1 0 0 Counting (generates PDN after 15 clocks)
18.4 Reset of Flash memory erase and program cycles (on the
PSD834Fx)
A Reset (RESET) also resets the internal Flash memory state machine. During a Flash
memory program or erase cycle, Reset (RESET) terminates the cycle and returns the Flash
memory to the Read mode within a period of tNLNH-A.
VCC(min)
VCC
tNLNH
tNLNH-PO tOPR tNLNH-A tOPR
Power-On Reset Warm Reset
RESET
AI02866b
Table 34. Status during Power-on reset, Warm reset and Power-down mode
Port configuration Power-on reset Warm reset Power-down mode
The JTAG Serial Interface block can be enabled on port C (see Table 35). All memory blocks
(primary and secondary Flash memory), PLD logic, and PSD Configuration register bits may
be programmed through the JTAG Serial Interface block. A blank device can be mounted on
a printed circuit board and programmed using JTAG.
The standard JTAG signals (IEEE 1149.1) are TMS, TCK, TDI, and TDO. Two additional
signals, TSTAT and TERR, are optional JTAG extensions used to speed up Program and
Erase cycles.
Note: By default, on a blank PSD (as shipped from the factory or after erasure), four pins on port C
are enabled for the basic JTAG signals TMS, TCK, TDI, and TDO.
See Application Note AN1153 for more details on JTAG in-system programming (ISP).
Reset (RESET) will prevent or interrupt JTAG operations if the JTAG enable register is used
to enable the JTAG pins.
The PSD supports JTAG In-System-Configuration (ISC) commands, but not Boundary
Scan. The PSDsoft Express software tool and FlashLINK JTAG programming cable
implement the JTAG In-System-Configuration (ISC) commands. A definition of these JTAG
In-System-Configuration (ISC) commands and sequences is defined in a supplemental
document available from ST. This document is needed only as a reference for designers
who use a FlashLINK to program their PSD.
When delivered from ST, the PSD device has all bits in the memory and PLDs set to ’1.’ The
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.
0=
JTAG port is disabled.
off
Bit 0 JTAG_Enable
1=
JTAG port is enabled.
on
Bit 1 X 0 Not used, and should be set to zero.
Bit 2 X 0 Not used, and should be set to zero.
Bit 3 X 0 Not used, and should be set to zero.
Bit 4 X 0 Not used, and should be set to zero.
Bit 5 X 0 Not used, and should be set to zero.
Bit 6 X 0 Not used, and should be set to zero.
Bit 7 X 0 Not used, and should be set to zero.
1. The state of Reset (RESET) does not interrupt (or prevent) JTAG operations if the JTAG signals are
dedicated by an NVM Configuration bit (via PSDsoft Express). However, Reset (RESET) prevents or
interrupts JTAG operations if the JTAG enable register is used to enable the JTAG signals.
21 Maximum rating
Stressing the device above the rating listed in the Absolute Maximum Ratings” table may
cause permanent damage to the device. These are stress ratings only and operation of the
device at these or any other conditions above those indicated in the operating sections of
this specification is not implied. Exposure to Absolute Maximum Rating conditions for
extended periods may affect device reliability. Refer also to the STMicroelectronics SURE
Program and other relevant quality documents.
1. IPC/JEDEC J-STD-020A
2. JEDEC Std JESD22-A114A (C1=100 pF, R1=1500 Ω, R2=500 Ω)
22 AC/DC parameters
This section summarizes the operating and measurement conditions, and the DC and AC
characteristics of the device:
● DC electrical specifications
● AC timing specifications
– PLD timings
Combinatorial timings
Synchronous clock mode
Asynchronous clock mode
Input macrocell timings
– MCU timings
READ timings
WRITE timings
Peripheral mode timings
Power-down and Reset timings
The parameters in the DC and AC Characteristic tables that follow are derived from tests
performed under the Measurement Conditions summarized in the relevant tables. Designers
should check that the operating conditions in their circuit match the measurement conditions
when relying on the quoted parameters.
The following are issues concerning the parameters presented:
● In the DC specification the supply current is given for different modes of operation.
Before calculating the total power consumption, determine the percentage of time that
the PSD is in each mode. Also, the supply power is considerably different if the Turbo
Bit is ’0.’
● The AC power component gives the PLD, Flash memory, and SRAM mA/MHz
specification. Figure 34 and Figure 35 show the PLD mA/MHz as a function of the
number of Product Terms (PT) used.
● In the PLD timing parameters, add the required delay when Turbo Bit is ’0.’
ICC – (mA) 70
)
(25%
FF
60 ON
RBO
O
TU
O
50
RB
TU
40
30
F
20 OF PT 100%
O
RB PT 25%
TU
10
0
0 5 10 15 20 25
40
ICC – (mA)
30
FF
5%)
O
(2
O ON
O
TURB
RB
20
TU
PT 100%
10 F
OF PT 25%
O
RB
TU
0
0 5 10 15 20 25
Table 38. Example of PSD typical power calculation at VCC=5.0 V (Turbo mode on) (1)
Conditions
Table 38. Example of PSD typical power calculation at VCC=5.0 V (Turbo mode on) (1)
Conditions
Table 39. Example of PSD typical power calculation at VCC = 5.0 V (Turbo mode off) (1)
Conditions
Table 39. Example of PSD typical power calculation at VCC = 5.0 V (Turbo mode off)
Conditions
A Address input
C CEout output
D Input data
E E output
G Internal WDOG_ON signal
I Interrupt input
L ALE input
N RESET input or output
P Port signal output
Q Output data
R WR, UDS, LDS, DS, IORD, PSEN inputs
S Chip Select input
T R/W input
W Internal PDN signal
M Output macrocell
1. Example: tAVLX = time from address valid to ALE invalid.
t Time
L Logic level low or ALE
H Logic level high
V Valid
X No longer a valid logic level(2)
Z Float
PW Pulse width
1. Example: tAVLX = time from address valid to ALE invalid.
2. Output Hi-Z is defined as the point where data out is no longer driven.
CL Load capacitance 30 pF
3.0V
0V
AI03103b
2.01 V
195 Ω
Device
Under Test
CL = 30 pF
(Including Scope and
Jig Capacitance)
AI03104b
2.01 V
195 Ω
Device
Under Test
CL = 30 pF
(Including Scope and
Jig Capacitance)
AI03104b
VIH Input high voltage 4.5 V < VCC < 5.5 V 2 VCC +0.5 V
VIL Input low voltage 4.5 V < VCC < 5.5 V –0.5 0.8 V
(1)
VIH1 Reset high level input voltage 0.8VCC VCC +0.5 V
(1) 0.2VCC –
VIL1 Reset low level input voltage –0.5 V
0.1
VHYS Reset pin hysteresis 0.3 V
VCC (min) for Flash Erase and
VLKO 2.5 4.2 V
Program
IOL = 20 µA, VCC = 4.5 V 0.01 0.1 V
VOL Output low voltage
IOL = 8 mA, VCC = 4.5 V 0.25 0.45 V
IOH = –20 µA, VCC = 4.5 V 4.4 4.49 V
VOH Output high voltage
IOH = –2 mA, VCC = 4.5 V 2.4 3.9 V
Standby supply current
ISB CSI >VCC –0.3 V(2)(3) 50 200 µA
for Power-down mode
ILI input leakage current VSS < VIN < VCC –1 ±0.1 1 µA
ILO Output leakage current 0.45 < VOUT < VCC –10 ±5 10 µA
PLD_TURBO = off,
0 µA/PT
f = 0 MHz(4)
PLD only
PLD_TURBO = on,
400 700 µA/PT
ICC Operating f = 0 MHz
(DC)(4) supply current During Flash memory
15 30 mA
Flash memory WRITE/Erase only
Read only, f = 0 MHz 0 0 mA
SRAM f = 0 MHz 0 0 mA
(5)
PLD AC adder
ICC
Flash memory AC adder 2.5 3.5 mA/MHz
(AC)(4)
SRAM AC adder 1.5 3.0 mA/MHz
1. Reset (RESET) has hysteresis. VIL1 is valid at or below 0.2VCC –0.1. VIH1 is valid at or above 0.8VCC.
2. CSI deselected or internal Power-down mode is active.
3. PLD is in non-Turbo mode, and none of the inputs are switching.
4. IOUT = 0 mA
5. Please see Figure 34 for the PLD current calculation.
VIH High level input voltage 3.0 V < VCC < 3.6 V 0.7VCC VCC +0.5 V
VIL Low level input voltage 3.0 V < VCC < 3.6 V –0.5 0.8 V
(1)
VIH1 Reset high level input voltage 0.8VCC VCC +0.5 V
(1) 0.2VCC –
VIL1 Reset low level input voltage –0.5 V
0.1
VHYS Reset pin hysteresis 0.3 V
VCC (min) for Flash Erase and
VLKO 1.5 2.2 V
Program
IOL = 20 µA, VCC = 3.0 V 0.01 0.1 V
VOL Output low voltage
IOL = 4 mA, VCC = 3.0 V 0.15 0.45 V
IOH = –20 µA, VCC = 3.0 V 2.9 2.99 V
VOH Output high voltage
IOH = –1 mA, VCC = 3.0 V 2.7 2.8 V
Standby supply current
ISB CSI >VCC –0.3 V(2)(3) 25 100 µA
for Power-down mode
ILI Input leakage current VSS < VIN < VCC –1 ±0.1 1 µA
ILO Output leakage current 0.45 < VIN < VCC –10 ±5 10 µA
PLD_TURBO = off,
0 µA/PT
f = 0 MHz(3)
PLD only
PLD_TURBO = on,
200 400 µA/PT
ICC Operating f = 0 MHz
(DC)(4) supply current During Flash memory
10 25 mA
Flash memory WRITE/Erase only
Read only, f = 0 MHz 0 0 mA
SRAM f = 0 MHz 0 0 mA
(5)
PLD AC adder
ICC
Flash memory AC adder 1.5 2.0 mA/MHz
(AC)(4)
SRAM AC adder 0.8 1.5 mA/MHz
1. Reset (RESET) has hysteresis. VIL1 is valid at or below 0.2VCC –0.1. VIH1 is valid at or above 0.8VCC.
2. CSI deselected or internal Power-down mode is active.
3. PLD is in non-Turbo mode, and none of the inputs are switching.
4. IOUT = 0 mA
5. Please see Figure 35 for the PLD current calculation.
INPUT
tER tEA
INPUT TO
OUTPUT
ENABLE/DISABLE
AI02863
CPLD input
pin/feedback to
tPD 20 25 32 +2 + 10 –2 ns
CPLD combinatorial
output
CPLD input to CPLD
tEA 21 26 32 + 10 –2 ns
output enable
CPLD input to CPLD
tER 21 26 32 + 10 –2 ns
output disable
CPLD register clear
tARP 21 26 33 + 10 –2 ns
or preset delay
CPLD register clear
tARPW 10 20 29 + 10 ns
or preset pulse width
Any
tARD CPLD array delay 11 16 22 +2 ns
macrocell
1. Fast Slew Rate output available on PA3-PA0, PB3-PB0, and PD2-PD0. Decrement times by given amount.
CPLD input
pin/feedback to
tPD 40 45 50 +4 + 20 –6 ns
CPLD combinatorial
output
CPLD input to CPLD
tEA 43 45 50 + 20 –6 ns
output enable
CPLD input to CPLD
tER 43 45 50 + 20 –6 ns
output disable
CPLD register clear
tARP 40 43 48 + 20 –6 ns
or preset delay
CLKIN
tS tH
INPUT
tCO
REGISTERED
OUTPUT
AI02860
Maximum
frequency
1/(tS+tCO) 40.0 30.30 25.00 MHz
External
feedback
Maximum
fMAX frequency
1/(tS+tCO–10) 66.6 43.48 31.25 MHz
Internal
feedback (fCNT)
Maximum
frequency 1/(tCH+tCL) 83.3 50.00 35.71 MHz
Pipelined data
tS Input setup time 12 15 20 +2 + 10 ns
tH Input hold time 0 0 0 ns
tCH Clock high time Clock input 6 10 15 ns
tCL Clock low time Clock input 6 10 15 ns
Clock to output
tCO Clock input 13 18 22 –2 ns
delay
Table 50. CPLD macrocell Synchronous clock mode timing (5 V devices) (continued)
-70 -90 -15 Fast
Turbo Slew
Symbol Parameter Conditions PT rate Unit
Min Max Min Max Min Max off (1)
Aloc
CPLD array
tARD Any macrocell 11 16 22 +2 ns
delay
Minimum clock
tMIN tCH+tCL 12 20 30 ns
period(2)
1. Fast Slew Rate output available on PA3-PA0, PB3-PB0, and PD2-PD0. Decrement times by given amount.
2. CLKIN (PD1) tCLCL = tCH + tCL.
Maximum
frequency 1/(tS+tCO) 22.2 18.8 15.8 MHz
External feedback
Maximum
frequency
fMAX 1/(tS+tCO–10) 28.5 23.2 18.8 MHz
Internal feedback
(fCNT)
Maximum
frequency 1/(tCH+tCL) 40.0 33.3 31.2 MHz
Pipelined data
tS Input setup time 20 25 30 +4 + 20 ns
tH Input hold time 0 0 0 ns
tCH Clock high time Clock input 15 15 16 ns
tCL Clock low time Clock input 10 15 16 ns
Clock to output
tCO Clock input 25 28 33 –6 ns
delay
tARD CPLD array delay Any macrocell 25 29 33 +4 ns
Minimum clock
tMIN tCH+tCL 25 29 32 ns
period(2)
1. Fast Slew Rate output available on PA3-PA0, PB3-PB0, and PD2-PD0. Decrement times by given amount.
2. CLKIN (PD1) tCLCL = tCH + tCL.
RESET/PRESET
INPUT
tARP
REGISTER
OUTPUT
AI02864
CLOCK
tSA tHA
INPUT
tCOA
REGISTERED
OUTPUT
AI02859
Maximum
frequency
1/(tSA+tCOA) 38.4 26.32 21.27 MHz
External
feedback
Maximum
frequency
fMAXA
Internal 1/(tSA+tCOA–10) 62.5 35.71 27.78 MHz
feedback
(fCNTA)
Maximum
frequency 1/(tCHA+tCLA) 71.4 41.67 35.71 MHz
Pipelined data
Input setup
tSA 7 8 12 +2 + 10 ns
time
Input hold
tHA 8 12 14 ns
time
Clock input
tCHA 9 12 15 + 10 ns
high time
Clock input
tCLA 9 12 15 + 10 ns
low time
Table 52. CPLD macrocell asynchronous clock mode timing (5 V devices) (continued)
-70 -90 -15
PT Turbo Slew
Symbol Parameter Conditions Unit
Aloc off rate
Min Max Min Max Min Max
Clock to
tCOA 21 30 37 + 10 –2 ns
output delay
CPLD array
tARDA Any macrocell 11 16 22 +2 ns
delay
Minimum
tMINA 1/fCNTA 16 28 39 ns
clock period
Maximum
frequency
1/(tSA+tCOA) 21.7 19.2 16.9 MHz
External
feedback
Maximum
frequency
fMAXA
Internal 1/(tSA+tCOA–10) 27.8 23.8 20.4 MHz
feedback
(fCNTA)
Maximum
frequency 1/(tCHA+tCLA) 33.3 27 24.4 MHz
Pipelined data
tSA Input setup time 10 12 13 +4 + 20 ns
tHA Input hold time 12 15 17 ns
tCHA Clock high time 17 22 25 + 20 ns
tCLA Clock low time 13 15 16 + 20 ns
Clock to output
tCOA 36 40 46 + 20 –6 ns
delay
CPLD array
tARD Any macrocell 25 29 33 +4 ns
delay
Minimum clock
tMINA 1/fCNTA 36 42 49 ns
period
PT CLOCK
t IS t IH
INPUT
OUTPUT
t INO
AI03101
tAVLX tLXAX
1
ALE/AS
tLVLX
A /D ADDRESS DATA
MULTIPLEXED VALID VALID
BUS tAVQV
ADDRESS
ADDRESS
NON-MULTIPLEXED
VALID
BUS
DATA DATA
NON-MULTIPLEXED VALID
BUS
tSLQV
CSI
tRLQV
tRHQX
tRLRH
RD
(PSEN, DS) tRHQZ
tEHEL
E
tTHEH tELTL
R /W
tAVPV
ADDRESS OUT
AI02895
1. tAVLX and tLXAX are not required for 80C251 in Page mode or 80C51XA in Burst mode.
ALE/AS
t LVLX
A /D ADDRESS DATA
MULTIPLEXED VALID VALID
BUS
tAVWL
ADDRESS
ADDRESS
NON-MULTIPLEXED
VALID
BUS
DATA DATA
NON-MULTIPLEXED VALID
BUS
tSLWL
CSI
tDVWH t WHDX
WR t WLWH
(DS) t WHAX
t EHEL
E
t THEH t ELTL
R/ W
t WLMV
tAVPV t WHPV
STANDARD
ADDRESS OUT MCU I/O OUT
AI02896
ALE/AS
tAVQV (PA)
tSLQV (PA)
CSI
tDVQV (PA)
DATA ON PORT A
AI02897
(1)
tAVQV–PA Address valid to data valid 37 39 45 + 10 ns
tSLQV–PA CSI valid to data valid 27 35 45 + 10 ns
RD to data valid (2)(3) 21 32 40 ns
tRLQV–PA
RD to data valid 8031 mode 32 38 45 ns
tDVQV–PA Data In to data out valid 22 30 38 ns
tQXRH–PA RD data hold time 0 0 0 ns
(2)
tRLRH–PA RD pulse width 27 32 38 ns
tRHQZ–PA (2)
RD to data high-Z 23 25 30 ns
1. Any input used to select port A Data Peripheral mode.
2. RD has the same timing as DS, LDS, UDS, and PSEN (in 8031 combined mode).
3. Data is already stable on port A.
Table 63. Port A Peripheral Data mode READ timing (3V devices)
-12 -15 -20 Turbo
Symbol Parameter Conditions Unit
Min Max Min Max Min Max off
(1)
tAVQV–PA Address valid to data valid 50 50 50 + 20 ns
tSLQV–PA CSI valid to data valid 37 45 50 + 20 ns
(2)(3)
RD to data valid 37 40 45 ns
tRLQV–PA
RD to data valid 8031 mode 45 45 50 ns
tDVQV–PA Data In to data Out valid 38 40 45 ns
tQXRH–PA RD data hold time 0 0 0 ns
tRLRH–PA (2)
RD pulse width 36 36 46 ns
(2)
tRHQZ–PA RD to data high-Z 36 40 45 ns
1. Any input used to select port A Data Peripheral mode.
2. RD has the same timing as DS, LDS, UDS, and PSEN (in 8031 combined mode).
3. Data is already stable on port A.
ALE/AS
WR
tDVQV (PA)
PORT A
DATA OUT
AI02898
VCC(min)
VCC
tNLNH
tNLNH-PO tOPR tNLNH-A tOPR
Power-On Reset Warm Reset
RESET
AI02866b
TCK
t ISCCL
t ISCPSU t ISCPH
TDI/TMS
t ISCPZV
t ISCPCO
ISC OUTPUTS/TDO
t ISCPVZ
ISC OUTPUTS/TDO
AI02865
23 Package mechanical
Figure 50. PQFP52 - 52-pin plastic quad flat package mechanical drawing
D
D1
D2 A2
Ne E2 E1 E
b
N
1
Nd A
CP
L1
c
QFP-A A1 α L
Table 72. PQFP52 - 52-pin plastic quad flat package mechanical dimensions
mm inches
Symbol
Typ. Min. Max. Typ. Min. Max.
A 2.350 0.0930
A1 0.250 0.0100
A2 2.000 1.800 2.100 0.0790 0.0770 0.0830
b 0.220 0.380 0.0090 0.0150
c 0.110 0.230 0.0040 0.0090
D 13.200 13.150 13.250 0.5200 0.5180 0.5220
D1 10.000 9.950 10.050 0.3940 0.3920 0.3960
D2 7.800 – – 0.3070 – –
E 13.200 13.150 13.250 0.5200 0.5180 0.5220
E1 10.000 9.950 10.050 0.3940 0.3920 0.3960
E2 7.800 – – 0.3070 – –
e 0.650 – – 0.0260
L 0.880 0.730 1.030 0.0350 0.0290 0.0410
L1 1.600 – – 0.0630
α 0° 7° 0° 7°
N 52 52
Nd 13 13
Ne 13 13
CP 0.100 0.0040
Figure 51. PLCC52 - 52-lead plastic lead chip carrier package mechanical drawing
D A1
D1 A2 M1
M
1 N
b1
E1 E D2/E2 D3/E3 e
b
L1
L
C
A
CP
PLCC-B
D1
D2 A2
Ne E2 E1 E
b
N
1
Nd A
CP
L1
c
QFP-A A1 α L
Table 74. TQFP64 - 64-lead thin quad flatpack, package mechanical data
mm inches
Symb.
Typ. Min. Max. Typ. Min. Max.
24 Part numbering
Device Type
PSD8 = 8-bit PSD with register Logic
SRAM Capacity
1 = 16 Kbit
3 = 64 Kbit
5 = 256 Kbit
Operating voltage
blank = VCC = 4.5 to 5.5V
V = VCC = 3.0 to 3.6V
Silicon Revision
A = Revision A
Speed
70 = 70ns
90 = 90ns
12 = 120ns
15 = 150ns
20 = 200ns
Package
J = ECOPACK-compliant PLCC52
M = ECOPACK-compliant PQFP52
U =ECOPACK-compliant TQFP64
Temperature Range
blank = 0 to 70°C (commercial)
I = –40 to 85°C (industrial)
Option
T = Tape & Reel Packing
For a list of available options (e.g., speed, package) or for further information on any aspect
of this device, please contact your nearest ST Sales Office.
1 PD2
2 PD1
3 PD0
4 PC7
5 PC6
6 PC5
7 PC4
8 VCC
9 GND
10 PC3
11 PC2
12 PC1
13 PC0
14 PA7
15 PA6
16 PA5
17 PA4
18 PA3
19 GND
20 PA2
21 PA1
22 PA0
23 AD0
24 AD1
25 AD2
26 AD3
27 AD4
28 AD5
29 AD6
30 AD7
31 VCC
32 AD8
33 AD9
34 AD10
35 AD11
36 AD12
37 AD13
38 AD14
39 AD15
40 CNTL0
41 RESET
42 CNTL2
43 CNTL1
44 PB7
45 PB6
46 GND
47 PB5
48 PB4
49 PB3
50 PB2
51 PB1
52 PB0
1 GND
2 PB5
3 PB4
4 PB3
5 PB2
6 PB1
7 PB0
8 PD2
9 PD1
10 PD0
11 PC7
12 PC6
13 PC5
14 PC4
15 VCC
16 GND
17 PC3
18 PC2
19 PC1
20 PC0
21 PA7
22 PA6
23 PA5
24 PA4
25 PA3
26 GND
27 PA2
28 PA1
29 PA0
30 AD0
31 AD1
32 AD2
33 AD3
34 AD4
35 AD5
36 AD6
37 AD7
38 VCC
39 AD8
40 AD9
41 AD10
42 AD11
43 AD12
44 AD13
45 AD14
46 AD15
47 CNTL0
48 RESET
49 CNTL2
50 CNTL1
51 PB7
52 PB6
1 PD2
2 PD1
3 PD0
4 PC7
5 PC6
6 PC5
7 VCC
8 VCC
9 VCC
10 GND
11 GND
12 PC3
13 PC2
14 PC1
15 PC0
16 NC
17 NC
18 NC
19 PA7
20 PA6
21 PA5
22 PA4
23 PA3
24 GND
25 GND
26 PA2
27 PA1
28 PA0
29 AD0
30 AD1
31 N/D
32 AD2
33 AD3
34 AD4
35 AD5
36 AD6
37 AD7
38 VCC
39 VCC
40 AD8
41 AD9
42 AD10
43 AD11
44 AD12
45 AD13
46 AD14
47 AD15
48 CNTL0
49 NC
50 RESET
51 CNTL2
52 CNTL1
53 PB7
54 PB6
55 GND
56 GND
57 PB5
58 PB4
59 PB3
60 PB2
61 PB1
62 PB0
63 NC
64 NC
Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
Authorized Distributor
STMicroelectronics:
PSD813F2A-70J PSD834F2-90JI PSD833F2-90JI PSD834F2-90MI PSD833F2-90MI PSD813F2A-90UI
PSD813F2A-90MI PSD854F2-90JI PSD853F2-90MI PSD854F2-90MI PSD853F2-90JI PSD834F2-70M PSD854F2-
70M PSD854F2-70J PSD853F2-70J PSD853F2-70M PSD834F2-70J PSD813F2A-70M PSD813F2VA-15J
PSD813F2VA-15M PSD813F2A-90JI PSD813F2VA-20JI PSD813F2VA-20MI PSD833F2-90J PSD834F2-90J
PSD833F2-90M PSD834F2-90M PSD853F2-90M PSD854F2-90M PSD853F2-90J PSD854F2-90J PSD813F2A-
90M PSD813F2A-90J PSD813F2A-90U PSD813F2VA-20UI PSD813F2VA-15U PSD813F2A-15J PSD813F2A-15JI