AN2340
Application note
ST10 RPD pin: Functionality during Reset and Power Down mode
Introduction
RPD is a dedicated timing pin for the return from Power Down circuit. Additionally, when this
pin is recognized low, a reset event is taken as asynchronous. This note gives advice on
configuring the external circuitry connected to the RPD in order to make it work properly.
The information contained in this document is valid for ST10F27x, ST10R27x, ST10F25x
and ST10F296.
March 2006 Rev 1 1/10
www.st.com
RPD functionality AN2340
1 RPD functionality
RPD is a dual purpose dedicated pin. This section covers its functionality.
1.1 System reset and startup
Several ST10 reset events that may occur are summarized in the following table:
Table 1. Reset event definition
Reset Source Flag
Power-on reset PONR Low Power-on
Asynchronous hardware
reset
Synchronous long
hardware reset
Synchronous short
hardware reset
Watchdog timer reset WDTR
Software reset SWR
1. Flags can be read in the WDTCON register
2. The RPD status has no influence unless Bidirectional Reset is activated (bit BDRSTEN in SYSCON): RPD
low inhibits the Bidirectional reset on SW and WDT reset events, that is RSTIN
(1)
LHWR
SHWR High
RPD
Status
Low t
High t
(2)
(2)
Conditions
> 500ns
RSTIN
> (1032 + 12) TCL + max (4 TCL, 500ns)
RSTIN
> max (4 TCL, 500ns)
t
RSTIN
≤ (1032 + 12) TCL + max (4 TCL, 500ns)
t
RSTIN
WDT overflow
SRST instruction execution
is not activated.
Therefore, roughly, the RPD pin level distinguishes between an asynchronous (low level)
and a synchronous reset (high level). The main difference between these two kinds of reset
is that the first immediately cancels pending internal hold states and if any, it aborts all
internal/external bus cycles whereas in the synchronous reset, after RSTIN
level is
detected, a short duration of a maximum of 12 TCL (six periods of CPU clock) elapses,
during which pending internal hold states are cancelled and the current internal access
cycle, if any , is completed. For this reason, if an asynchronous reset occurs during a read or
write phase in internal memories, the content of the memory itself could be corrupted. To
avoid this, synchronous reset usage is strongly recommended.
However, the asynchronous reset must be used during the power-on of the device.
Depending on crystal or resonator frequency, the on-chip oscillator needs about 1ms to
10ms to stabilize with an already stable V
stabilized clock signal to detect an asynchronous reset and is therefore suitable for poweron conditions.
On the contrary, the reset state machine needs a stabilized clock to operate correctly.
According to the length of pulse on RSTIN
2/10
. The logic of the ST10 does not need a
DD
, the synchronous reset may be recognized as
AN2340 RPD functionality
long or short. Long and Short synchronous reset differs by the start-up configuration bits
latched:
– Long synchronous reset latches the entire Port0 configuration, including clock
frequency selection (P0[15:13])
– Short synchronous reset ignores the bits P0[15:13] and the same clock frequency
is applied.
Refer to the product documentation for a full description of the reset mechanism.
The RSTIN
pin is an input of the device that can be configured as output that shows a low
level during the internal reset condition. This is called the bidirectional reset and is enabled
by setting the BDRSTEN bit in the SYSCON register.
When enabled, the open drain of the RSTIN
pin is activated, pulling down the reset signal
for the duration of the internal reset sequence (synchronous/asynchronous hardware,
synchronous software and synchronous watchdog timer resets). At the end of the internal
reset sequence (1024 TCL) the pull-down is released.
The figure below shows a simplified reset circuitry scheme.
Please refer to the product user
manual for more details and timings related to system reset.
Figure 1. Internal (simplified) reset circuitry
EINIT instruction
Clr
Internal
reset
signal
Reset state
machine
Clock
Trigger
Clr
Q
Set
SRST instruction
watchdog overflow
Reset sequence
(512 CPU Clock Cycles)
BDRSTEN
V
RSTOUT
DD
RSTIN
V
DD
Asynchronous
reset
RPD
From/to exit
powerdown
circuit
Weak pull- down
(~200µA)
3/10