R01UH0092EJ0110 Rev.1.10
Page 57 of 807
Jul 31, 2012
M16C/64C Group
6. Resets
6.4.10
Cold/Warm Start Discrimination
The cold/warm start discrimination detects whether or not voltage applied to the VCC1 pin drops to the
RAM hold voltage or below. The reference voltage is Vdet0. Therefore, the voltage monitor 0 reset is
used for cold/warm start discrimination. Follow 7.4.2.1 “Voltage Monitor 0 Reset” to set the bits related
to the voltage monitor 0 reset.
The CWR bit in the RSTFR register is 0 (cold start) when power is turned on. The CWR bit also
becomes 0 after power-on reset or voltage monitor 0 reset. The CWR bit becomes 1 (warm start) by
writing 1, and remains unchanged at hardware reset, voltage monitor 1 reset, voltage monitor 2 reset,
oscillator stop detect reset, watchdog timer reset, or software reset.
In the cold/warm start discrimination, the Vdet0 level can be selected by setting the VDSEL1 bit in the
OFS1 address.
•
When power-on reset or voltage monitor 0 reset is used
Set the VDSEL1 bit to 0 (Vdet0_2).
•
When neither power-on reset nor voltage monitor 0 reset is used as the user system
The VDSEL1 bit can be set to 0 or 1.
When the VDSEL1 bit is 1 (Vdet0_0), voltage monitor 0 reset and its cancellation are based on
Vdet0_0. Therefore, execute hardware reset after cancelling the voltage monitor 0 reset.
Figure 6.6 shows the Cold/Warm Start Discrimination Example.
Figure 6.6
Cold/Warm Start Discrimination Example
5 V
Vdet0
CWR bit
Internal reset signal
VCC1
Set to 1 by a program
0 V
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...