AT89S2051 Atmel Corporation, AT89S2051 Datasheet - Page 19
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
AT89S2051
Manufacturer Part Number
AT89S2051
Description
Manufacturer
Atmel Corporation
Specifications of AT89S2051
Flash (kbytes)
2 Kbytes
Max. Operating Frequency
24 MHz
Cpu
8051-12C
Max I/o Pins
15
Uart
1
Sram (kbytes)
0.25
Operating Voltage (vcc)
2.7 to 5.5
Timers
2
Isp
SPI
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT89S2051-24PI
Manufacturer:
ATMEL
Quantity:
918
Company:
Part Number:
AT89S2051-24PU
Manufacturer:
ATMEL
Quantity:
2 300
Part Number:
AT89S2051-24PU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
AT89S2051-24SU
Manufacturer:
MICROCHIP
Quantity:
3 420
Part Number:
AT89S2051-24SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
20. Analog Comparator Register
Table 20-1.
3390E–MICRO–6/08
Symbol
CF
CEN
CM [2:0]
ACSR = 97H
Not Bit Addressable
Bit
Function
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
ACSR
--- ---- ----
2
0
0
0
0
1
1
1
1
–
7
1
0
0
1
1
0
0
1
1
– Analog Comparator Control & Status Register
0
0
1
0
1
0
1
0
1
.
–
6
Interrupt Mode
---------------------------------------
Negative (Low) level
Positive edge
Toggle with debounce
Positive edge with debounce
Negative edge
Toggle
Negative edge with debounce
Positive (High) level
–
5
CF
4
CEN
3
CM2
2
AT89S2051/S4051
Reset Value = XXX0 0000B
CM1
1
CM0
0
19