English
Language : 

AT89LP2052 Datasheet, PDF (47/89 Pages) ATMEL Corporation – 8-bit Microcontroller with 2/4-Kbyte Flash
AT89LP2052/LP4052 [Preliminary]
Table 19-1. ACSR – Analog Comparator Control & Status Register
ACSR = 97H
Not Bit Addressable
–
–
CIDL
CF
CEN
Bit
7
6
5
4
3
Reset Value = XXX0 0000B
CM3
2
CM1
1
CM0
0
Symbol
CIDL
CF
CEN
CM [2:0]
Function
Comparator Idle Enable. If CIDL = 1 the comparator will continue to operate during Idle mode. If CIDL = 0 the
comparator is powered down during Idle mode. The comparator is always shut down during Power-down mode.
Comparator Interrupt Flag. Set when the comparator output meets the conditions specified by the CM [2:0] bits and CEN
is set. The flag must be cleared by software. The interrupt may be enabled/disabled by setting/clearing bit 6 of IE.
Comparator Enable. Set this bit to enable the comparator. Clearing this bit will force the comparator output low and
prevent further events from setting CF.
Comparator Interrupt Mode
2 1 0 Interrupt Mode
0 0 0 Negative (Low) level
0 0 1 Positive edge
0 1 0 Toggle with debounce
0 1 1 Positive edge with debounce
1 0 0 Negative edge
1 0 1 Toggle
1 1 0 Negative edge with debounce
1 1 1 Positive (High) level
47
3547A–MICRO–3/05