
M16C/62P Group (M16C/62P, M16C/62PT)
6. Voltage Detection Circuit
Rev.2.41
Jan 10, 2006
Page 46 of 390
REJ09B0185-0241
Figure 6.2
VCR1 and VCR2 Registers
Voltage Detection Register 1
Address
After Reset
(2)
0019h
00001000b
Bit Symbol
Function
RW
—
Set to “0”
(b2-b0)
—
Set to “0”
(b7-b4)
NOTES :
1.
2.
The VC13 bit is useful w hen the VC27 bit in the VCR2 register is set to “1” (low voltage detection circuit enable).
The VC13 bit is alw ays “1” (VCC1
≥
Vdet4) w hen the VC27 bit is set to “0” (low voltage detection circuit disable).
This register dose not change at softw are reset, w atchdog timer reset and oscillation stop detection reset.
0
Bit Name
VCR1
Symbol
0
0 : VCC1 < Vdet4
1 : VCC1
≥
Vdet4
0
b0
0 0 0 0
RW
Reserved Bit
Low Voltage Monitor Flag
(1)
b7 b6 b5 b4 b3 b2 b1
RW
Reserved Bit
RO
VC13
Voltage Detection Register 2
(1)
Address
After Reset
(5)
001Ah
00h
Bit Symbol
Function
RW
—
Set to “0”
(b5-b0)
NOTES :
1.
2.
3.
4.
5.
6.
To use low voltage detection (hardw are reset 2), set the VC26 bit to “1” (reset level detection circuit enable).
Write to this register after setting the PRC3 bit in the PRCR register to “1” (w rite enable).
0
Bit Name
VCR2
Symbol
0 0
0 : Disable reset level detection circuit
1 : Enable reset level detection circuit
0
0 0
b3 b2 b1 b0
b7 b6 b5 b4
RW
VC26
RW
Reserved Bit
Reset Level Monitor Bit
(2, 3, 6)
RW
Low Voltage Monitor Bit
(4, 6)
VC27
0 : Disable low voltage detection circuit
1 : Enable low voltage detection circuit
VC26 bit is disabled in stop mode (the microcomputer is not reset even if the voltage input to VCC1 pin becomes
low er than Vdet3).
Where the VC13 bit in the VCR1 register and D42 bit in the D4INT register are used or the D40 bit is set to “1” (low
voltage detection interrupt enable), set the VC27 bit to “1” (low voltage detection circuit enable).
This register dose not change at softw are reset, w atchdog timer reset and oscillation stop detection reset.
The detection circuit dose not start operation until td(E-A) elapses after the VC26 bit, or VC27 bit is set to “1”.
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655