
ML62Q1000 Series User's Manual
Chapter 20 Analog Comparator
FEUL62Q1000
20-6
20.2.2 Comparator n Control Register (CMPnCON: n=0,1)
CMPnCON is a special function register (SFR) used to control the analog comparator.
Address
:
0xF840(CMP0CON)
,
0xF848(CMP1CON)
Access
:
R/W
Access size
:
8bit
Initial value
:
0x00
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Word
-
Byte
-
CMPnCON
Bit
-
-
-
-
-
-
-
-
-
-
-
-
-
-
CMPn
D
CMPn
EN
R/W
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R/W
Initial
value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit No.
Bit symbol
name
Description
7 to 2
-
Reserved bit
1
CMPnD
This bit is used to indicate the comparison result of the analog comparator.
The last comparison result is retained when the comparator is stopped.
0: CMPnP < CMPnM or 0.8V internal reference (Initial)
1: CMPnP > CMPnM or 0.8V internal reference
0
CMPnEN
This bit is used to control enable or disable the operation of the comparator.
0: Disables operating the comparator (initial value)
1: Enables operating the comparator
[Note]
Ÿ
When using the analog comparator, write
"
0
"
to the target PnmIE bit and PnmOE bit of port n mode
registers (n=0 to 9, A, B
,
m=0 to 7) to set the general port to Hi-impedace, othewise a shoot-through
current may flow.
Ÿ
An infuluence of the noise is reduceable by preventing the switching of neighboring pins while reading
the COMP0D bit when the comparator enables.
Summary of Contents for ML62Q1000 Series
Page 17: ...Chapter 1 Overview...
Page 112: ...Chapter 2 CPU and Memory Space...
Page 154: ...Chapter 3 Reset Function...
Page 166: ...Chapter 4 Power Management...
Page 196: ...Chapter 5 Interrupts...
Page 248: ...Chapter 6 Clock generation Circuit...
Page 274: ...Chapter 7 Low Speed Time Base Counter...
Page 291: ...Chapter 8 16 Bit Timer...
Page 320: ...Chapter 9 Functional Timer FTM...
Page 382: ...Chapter 10 Watchdog Timer...
Page 402: ...Chapter 11 Serial Communication Unit...
Page 456: ...Chapter 12 I2 C Bus Unit...
Page 491: ...Chapter 13 I2 C Master...
Page 512: ...Chapter 14 DMA Controller...
Page 531: ...Chapter 15 Buzzer...
Page 550: ...Chapter 16 Simplified RTC...
Page 559: ...Chapter 17 GPIO...
Page 594: ...Chapter 18 External Interrupt Function...
Page 612: ...Chapter 19 CRC Generator...
Page 632: ...Chapter 20 Analog Comparator...
Page 644: ...Chapter 21 D A Converter...
Page 655: ...Chapter 22 Voltage Level Supervisor...
Page 676: ...Chapter 23 Successive Approximation Type A D Converter...
Page 709: ...Chapter 24 Regulator...
Page 714: ...Chapter 25 Flash Memory...
Page 743: ...Chapter 26 Code Option...
Page 750: ...Chapter 27 LCD Driver...
Page 788: ...Chapter 28 On Chip Debug Function...
Page 795: ...Chapter 29 Safety Function...
Page 813: ...Appendix A...
Page 881: ...Revision History...