Download Print this page

Comparator, Power-Down Detection, Internal Reference Voltage; Comparator Output Pin Switching; Internal Structure Of Comparator - STC micro STC8A8K64D4 Series Reference Manual

Advertisement

STC8A8K64D4 Series Manual
15 Comparator, Power-down Detection, Internal
Reference Voltage
A comparator is integrated in STC8A8K64D4 series of microcontrollers. The positive terminal of the comparator
can be P3.7, P5.0, P5.1 or ADC analog input, and the negative can be P3.6 or the REFV voltage of the internal BandGap
after amplified.
The application of multiple comparators can be realized through multiplexer and time division
multiplexing.
There are two stage programmable filterings inside the comparator: analog filtering and digital filtering. Analog
filtering can filter out glitches in the input signal, and digital filtering can wait for the input signal to stabilize before
making a comparison. The result of the comparison can be obtained directly by reading the internal register bits or
output the result of the comparator forward or reverse to the external port. Outputting the comparison result to the
external port can be used as the trigger signal of external events and the feedback signal to expand the scope of
application.

15.1 Comparator output pin switching

Symbol
Address
P_SW2
BAH
CMPO_S: Comparator output pin select bit
CMPO_S
CMPO
0
P3.4
1
P4.1

15.2 Internal Structure of Comparator

ADCIN
CMPPS
Internal REFV(1.19V)
CMPNS
ADCIN include ADC0, ADC1, ADC2, ADC3, ADC4, ADC5, ADC6, ADC7,
ADC8, ADC9, ADC10, ADC11, ADC12, ADC13, ADC14, ADC15
Note: When the ADC input channel i s s e l e c t e d a s the positive pole of the
comparator, be sure to turn on the ADC power control bit ADC_POWER and the
ADC channel selection bit ADC_CHS in the ADC_CONTR register.
B7
B6
EAXFR
-
P3.7
0
P5.0
1
P5.1
2
analog filtering
3
0.1us
DISFLT
P3.6
0
1
B5
B4
B3
I2C_S[1:0]
CMPO_S
0
LCC
1
CMPOE
digital filtering
PIE
Delay LCDTY
CPU clocks
NIE
The internal structure of
Comparator
B2
B1
B0
S4_S
S3_S
S2_S
CMPRES
P3.4
0
P4.1
1
CMPO_S
CMPIF
- 433 -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin