
23/98
PSD8XXF2/3/4/5
Reset Flash.
The Reset Flash instruction con-
sists of one Write cycle (see Table 8). It can also
be optionally preceded by the standard two write
decoding cycles (writing AAh to 555h and 55h to
AAAh). It must be executed after:
– Reading theFlash Protection Statusor FlashID
– An Error condition has occurred (and the device
has set the Error Flag (DQ5) bit to 1) during a
Flash memory Program or Erase cycle.
On the PSD813F2/3/4/5, the Reset Flash instruc-
tion putsthe Flash memory back into normal Read
mode. It may take the Flash memory up to a few
milliseconds to complete theReset cycle. The Re-
set Flash instruction is ignored when it is issued
during a Program or Bulk Erase cycle of the Flash
memory. The Reset Flash instruction aborts any
on-going Sector Erase cycle, and returns the
Flash memory to the normal Read mode within a
few milliseconds.
On the PSD83xF2 or PSD85xF2, the Reset Flash
instruction puts the Flash memory back into nor-
mal Readmode. If an Error condition has occurred
(and the device has set the Error Flag (DQ5) bit to
1) the Flash memory is putback into normal Read
mode within 25
μ
s of the Reset Flash instruction
having been issued. The Reset Flash instruction is
ignored when it is issued during a Program orBulk
Erase cycleof the Flashmemory. The Reset Flash
instruction aborts any on-going Sector Erase cy-
cle, and returns the Flash memory to the normal
Read mode within 25
μ
s.
Reset (RESET) Signal (on the PSD83xF2 and
PSD85xF2).
A pulse on Reset (RESET) aborts
any cycle that is in progress, and resets the Flash
memory to the Read mode. Whenthe reset occurs
during a Program or Erase cycle, the Flash mem-
ory takes up to 25
μ
s to return to the Read mode.
It is recommended that the Reset (RESET) pulse
(except for PowerOn Reset,as described onpage
60) be at least 25
μ
s so that the Flash memory is
always ready for theMCU tofetch thebootstrap in-
structions after the Reset cycle is complete.
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.
The SRAM can be backed up using an external
battery. The external battery should be connected
to Voltage Stand-by (VSTBY, PC2). If you have an
external battery connected to the PSD8xxF2/3/4/
5, the contents of the SRAM are retained in the
event of a power loss. The contents of the SRAM
are retained so longas thebattery voltageremains
at 2 V or greater. If the supply voltage falls below
the battery voltage, an internal power switch-over
to the battery occurs.
PC4 can be configured as an output that indicates
when power is being drawn from the external bat-
tery. Battery-on Indicator (VBATON, PC4) is High
with thesupply voltage falls below the battery volt-
age and the battery on Voltage Stand-by(VSTBY,
PC2) is supplying power to the internal SRAM.
SRAM Select (RS0), Voltage Stand-by (VSTBY,
PC2) and Battery-on Indicator (VBATON, PC4)
are all configured using PSDsoft Express Configu-
ration.
Sector Select and SRAM Select
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 notbe larg-
er 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 over-
lap, 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 giv-
en to the SRAM, I/O, or Peripheral I/O.
Example.
FS0 is valid when the address is in the
range of 8000h to BFFFh, CSBOOT0 isvalid 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 seg-
ment 0. You can see that half of theprimary 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 de-
fined FS1 to anywhere in the range of 8000h to
BFFFh would not be valid.