SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 91
Version 2.0
Comparator 0 compares positive terminal‟s voltage and negative terminal‟s voltage, and then output result to output pin.
When V+ > V-, comparator outputs high status. When V+ < V-, comparator outputs low status. Comparator output
terminal builds in delay control block to achieve output hysteresis to filter output transition condition. The delay option
has 16-step including no delay, 1/Fhosc, 2/Fhosc, 3/Fhosc, 4/Fhosc, 5/Fhosc, 6/Fhosc, 7/Fhosc, 8/Fhosc, 9/Fhosc,
10/Fhosc, 11/Fhosc, 12/Fhosc, 13/Fhosc, 14/Fhosc, 15/Fhosc controlled by CM0D[3:0] bits.
CM0D[3:0]
0000b
0001b
0010b
0011b
0100b
0101b
0110b
0111b
No
1/Fhosc 2/Fhosc 3/Fhosc 4/Fhosc 5/Fhosc 6/Fhosc 7/Fhosc
Delay time (us)
Fhosc=16MHz
0
0.0625
0.125
0.1875
0.25
0.3125
0.375
0.4375
Delay time (us)
Fhosc=4MHz
0
0.25
0.5
0.75
1
1.25
1.5
1.75
CM0D[3:0]
1000b
1001b
1010b
1011b
1100b
1101b
1110b
1111b
8/Fhosc 9/Fhosc 10/Fhosc 11/Fhosc 12/Fhosc 13/Fhosc 14/Fhosc 15/Fhosc
Delay time (us)
Fhosc=16MHz
0.5
0.5625
0.625
0.6875
0.75
0.8125
0.875
0.9375
Delay time (us)
Fhosc=4MHz
2
2.25
2.5
2.75
3
3.25
3.5
3.75
CM0P
CM0N
CM0OUT without delay.
CM0OUT with delay.
The delay time is controlled by CM0D[3:0] bits.