English
Language : 

4513_03 Datasheet, PDF (61/210 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCOMPUTER
HARDWARE
FUNCTION BLOCK OPERATIONS
Table 18 Voltage comparator control register Q3
Voltage comparator control register Q3 (Note 2)
at reset : 00002
at RAM back-up : state retained
0
Q33 Voltage comparator (CMP1) control bit
1
0
Q32 Voltage comparator (CMP0) control bit
1
0
Q31 CMP1 comparison result store bit
1
0
Q30 CMP0 comparison result store bit
1
Notes 1: “R” represents read enabled, and “W” represents write enabled.
2: Bits 0 and 1 of register Q3 can be only read.
Voltage comparator (CMP1) invalid
Voltage comparator (CMP1) valid
Voltage comparator (CMP0) invalid
Voltage comparator (CMP0) valid
CMP1- > CMP1+
CMP1- < CMP1+
CMP0- > CMP0+
CMP0- < CMP0+
R/W
(1) Voltage comparator control register Q3
Register Q3 controls the function of the voltage comparator.
The function of the voltage comparator CMP0 becomes valid by
setting bit 2 of register Q3 to “1,” and becomes invalid by setting bit
2 of register Q3 to ”0.” The comparison result of the voltage com-
parator CMP0 is stored into bit 0 of register Q3.
The function of the voltage comparator CMP1 becomes valid by
setting bit 3 of register Q3 to “1,” and becomes invalid by setting bit
3 of register Q3 to ”0.” The comparison result of the voltage com-
parator CMP1 is stored into bit 1 of register Q3.
(2) Operation description of voltage
comparator
The voltage comparator function becomes valid by setting each
control bit of register Q3 to “1” and compares the voltage of the in-
put pin. The comparison result is stored into each comparison
result store bit of register Q3.
The comparison result is as follows;
• When CMP0- > CMP0+, Q30 = “0”
When CMP0- < CMP0+, Q30 = “1”
• When CMP1- > CMP1+, Q31 = “0”
When CMP1- < CMP1+, Q31 = “1”
(3) Precautions
When the voltage comparator is used, note the following;
• Voltage comparator function
When the voltage comparator function is valid with the voltage
comparator control register Q3, it is operating even in the RAM
back-up mode. Accordingly, be careful about such state because
it causes the increase of the operation current in the RAM back-
up mode.
In order to reduce the operation current in the RAM back-up
mode, invalidate (bits 2 and 3 of register Q3 = “0”) the voltage
comparator function by software before the POF instruction is
executed.
Also, while the voltage comparator function is valid, current is al-
ways consumed by voltage comparator. On the system required
for the low-power dissipation, invalidate the voltage comparator
by software when it is unused.
• Register Q3
Bits 0 and 1 of register Q3 can be only read. Note that they can-
not be written.
• Reading the comparison result of voltage comparator
Read the voltage comparator comparison result from register Q3
after the voltage comparator response time (max. 20 µs) is
passed from the voltage comparator function becomes valid.
1-48
4513/4514 Group User’s Manual