496
Chapter 14
A/D Converter
Preliminary User’s Manual U14913EE1V0UM00
(3)
A/D voltage detection mode register (ADETM)
The ADETM register is a 16-bit register that sets voltage detection mode. In voltage detection mode
a reference voltage value is compared with the analog input pin for which voltage detection is being
performed, and an interrupt is set in response to the comparison result.
This register can be read or written in 1-bit, 8-bit, or 16-bit units.
Figure 14-4: A/D Voltage Detection Mode Register (ADETM)
Caution: Do not write to the an ADETM register during A/D conversion operation. If a write is
performed, conversion is suspended and it subsequently terminates. Also, the poll-
ing mode needs to be re-engaged by writing the CE and PLM bits of the ADSCM0 reg-
ister.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Address
Initial
value
ADETM DETEN DETLH
DET
ANI3
DET
ANI2
DET
ANI1
DET
ANI0
DET
CMP9
DET
CMP8
DET
CMP7
DET
CMP6
DET
CMP5
DET
CMP4
DET
CMP3
DET
CMP2
DET
CMP1
DET
CMP0
FFFFF204H 0000H
Bit position
Bit name
Function
15
DETEN
Specifies voltage detection mode.
0: Operate in normal mode
1: Operate in voltage detection mode
14
DETLH
Sets voltage comparison detection.
0: Generate INTDET interrupt,
if reference voltage value > analog input pin voltage.
1: Generate INTDET interrupt,
if reference voltage value < analog input pin voltage.
13 to 10
DETANI3
to
DETANI0
Selects analog input pin to compare to reference voltage value set by bits
DETCMP9-DETCMP0 when in voltage detection mode.
DETANI3 DETANI2 DETANI1 DETANI0 Voltage Detection Analog Input Pin
0
0
0
0
ANI0
0
0
0
1
ANI1
0
0
1
0
ANI2
0
0
1
1
ANI3
0
1
0
0
ANI4
0
1
0
1
ANI5
0
1
1
0
ANI6
0
1
1
1
ANI7
1
0
0
0
ANI8
1
0
0
1
ANI9
1
0
1
0
ANI10
1
0
1
1
ANI11
Other than above
Setting prohibited
9 to 0
DETCMP9
to
DETCMP0
Sets reference voltage value to compare with analog input pin selected by bits
DETANI3 - DETANI0.
Содержание V850E/CA1 ATOMIC
Страница 6: ...6 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 52: ...52 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 144: ...144 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 162: ...162 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 224: ...224 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 308: ...308 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 512: ...512 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 564: ...564 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 566: ...566 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 584: ...584 Preliminary User s Manual U14913EE1V0UM00 MEMO ...