English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (228/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
PSD module
UPSD33xx
27.4.53 Forced Power-down (FDP)
An alternative to APD is FPD. The resulting power-savings is the same, but the PDN signal
in Figure 77 on page 229 is set and Power-down mode is entered immediately when
firmware sets the FORCE_PD Bit to logic '1' in the csiop register PMMR3 (Bit 1). FPD will
override APD counter activity when FORCE_PD is set. No external clock source for the APD
counter is needed. The FORCE_PD Bit is cleared only by a reset condition.
Caution must be used when implementing FPD because code memory goes off-line as
soon as PSD module Power-down mode is entered, leaving the MCU with no instruction
stream to execute.
The MCU module must put itself into Power-down mode after it puts the PSD module into
Power-down mode. How can it do this if code memory goes off-line? The answer is the Pre-
Fetch Queue (PFQ) in the MCU module. By using the instruction scheme shown in the 8051
assembly code example in Table 157 on page 228, the PFQ will be loaded with the final
instructions to command the MCU module to Power-down mode after the PDS module goes
to Power-down mode. In this case, even though the code memory goes off-line in the PSD
module, the last few MCU instruction are sourced from the PFQ.
) Table 157.
t(s PDOWN:
Obsolete Product(s) - Obsolete Produc LOOP:
Forced Power-down example
ANL
A8h, #7Fh
ORL
9Dh, #C0h
MOV
DPTR, #xxC7
CLR
JMP
NOP
A
LOOP
MOVX
MOV
MOV
JMP
@DPTR, A
87h, A
A, #02h
LOOP
; disable all interrupts
; ensure PFQ and BC are enabled
; load XDATA pointer to select PMMR3 register (xx
= base
; address of csiop registers)
; clear A
; first loop - fill PFQ/BQ with Power-down
instructions
; second loop - fetch code from PFQ/BC and set
Power-
; Down bits for PSD module and then MCU
module
; set FORCE_PD Bit in PMMR3 in PSD module in
second
; loop
; set PD Bit in PCON register in MCU module in
second
; loop
; set power-down bit in the A register, but not in
PMMR3 or
; PCON yet in first loop
; UPSD enters into Power-down mode in second
loop
228/272
Doc ID 9685 Rev 7