SN32F100 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 155
Version 1.9
1
1
1
4
4
4
24-CHANNEL COMPARATOR
14.1 OVERVIEW
The analog comparator compares negative input voltage, and then output the result to comparator output terminal. The
comparator has multi-input selection for different applications. The comparator negative input terminal is up to
24-channel controlled by CMCH[4:0]. The comparator positive input terminal has three selections controlled by
CMPS[1:0] bits. The comparator output terminal connects to external pin CMO and connects to internal path. There is a
programmable direction function to decide comparator trigger edge for indicator function. The comparator has flag
indicator, interrupt function and sleep mode weak-up function for different application.
24-channel negative input selection.
Comparator output function.
Programmable internal reference voltage connected to comparator
’s positive terminal.
Comparator unit with programmable output de-bounce
Programmable trigger direction.
Interrupt function.
Sleep mode wake-up function.
CMPIRQ
CMPIEN
Comparator Interrupt
CMPS[1:0]
¾ *Vdd
+
_
CMPOUT flag
CM1
CM2
CM3
CM4
CM5
CM6
CM7
2 4 - C h a n n e l A n a l o g S w i t c h
CMCH[4:0]
CMPEN
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
½ *Vdd
¼ *Vdd
00
01
10, 11
Internal Voltage Bias Source
CMPG
De-bounce
CM0
P2.0
CM8
CM9
CM10
CM11
P2.8
P2.9
P2.10
P2.11
CMPOEN
GPIO
CMO pin
Comparator
CM13
CM14
CM15
CM16
CM17
CM18
CM19
P2.13
P2.14
P2.15
P3.0
P3.1
P3.2
P3.3
CM12
P2.12
CM20
CM21
CM22
CM23
P3.4
P3.5
P3.6
P3.7
CMDB[1:0]