mg82fel308 Megawin Technology, mg82fel308 Datasheet - Page 66

no-image

mg82fel308

Manufacturer Part Number
mg82fel308
Description
A Single-chip Microcontroller Based On A High Performance 1-t Architecture 80c51
Manufacturer
Megawin Technology
Datasheet
14.2. Analog Comparator Register
ACCON: Analog Comparator Control Register
SFR Address
SFR Page
Bit 7: ACIDX, Analog Comparator running control in IDLE mode.
0: Program the Analog Comparator to be gated off during IDLE mode.
1: Program the Analog Comparator to continue its function during IDLE mode.
Bit 6: ACPDX, Analog Comparator control in PD mode.
0: Program the Analog Comparator to be gated off during PD mode.
1: Program the Analog Comparator to continue its function during PD mode.
If ACEN, ACPDX and EACI have been set, the comparator in PD function can only wake up CPU in low level or
high level mode.
Bit 5: ACOUT, this is a read only bit from comparator output.
Bit 4: ACF. Analog Comparator Interrupt Flag.
0: The flag must be cleared by software.
1: Set when the comparator output meets the conditions specified by the ACM [2:0] bits and ACEN is set. The
Bit 3: ACEN. Analog Comparator Enable.
0: Clearing this bit will force the comparator output low and prevent further events from setting ACF.
1: Set this bit to enable the comparator.
Bit 2~0: ACM2 ~ ACM1, Analog Comparator Interrupt Mode.
ACMOD: Analog Comparator Mode Register
SFR Address
SFR Page
Bit 7~4: MVRS[3:0], Minus Voltage Reference selector of analog comparator. The four bits determine the analog
comparator (V-) input source as following:
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2009 All rights reserved.
QP-7300-03D
66/84
interrupt may be enabled/disabled by setting/clearing bit 6 of IE.
MVRS3
ACIDX
R/W
R/W
7
7
MEGAWIN
MAKE YOU WIN
ACPDX
MVRS2
ACM[2:0]
= 0x9E
= All
= 0x9F
= All
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
R/W
R/W
6
6
ACOUT
MVRS1
R/W
5
R
5
Negative (Low) level
Positive edge
Toggle with debounce
Positive edge with debounce
Negative edge
Toggle
Negative edge with debounce
Positive (High) level
MVRS0
ACF
R/W
R/W
4
4
Interrupt Mode
Reset Value = 00X0-0000
Reset Value = 0000-XX00
ACEN
R/W
--
3
3
R
ACM2
R/W
--
2
2
R
MG82FE(L)308/316
ACM1
PIS1
R/W
R/W
1
1
Preliminary, v 0.04
ACM0
PIS0
R/W
R/W
0
0

Related parts for mg82fel308