SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 101
Version 1.1
8.2 NORMAL COMPARATOR MODE
8.2.1 COMPARATOR ENABLE
The comparator pins are shared with GPIO controlled by CMnEN bit.
When CM0EN=1 and CM0NS[1:0] = 00b~10b, the comparator negative voltage source is from external voltage source
through CM0N0, CM0N1, or CM0N2 pin. When CM0NS[1:0] = 11b, the comparator negative positive voltage is from
internal reference and CM0N0/1/2 pins are GPIO function. When CM0PS[1:0] = 01b~11b, the comparator positive input
is from CM0P0, CM0P1, or CM0P2 pin. When CM0PS[1:0] = 00b, CM0P0/1/2 pins are GPIO function.
When CM1EN=1 and CM1NS[1:0] = 00b~10b, the comparator negative voltage source is from external voltage source
through CM1N0, CM1N1, or CM1N2 pin. When CM1NS[1:0] = 11b, the comparator negative positive voltage is from
internal reference and CM1N0/1/2 pins are GPIO function. When CM1PS[1:0] = 01b~11b, the comparator positive input
is from CM1P0, CM1P1, or CM1P2 pin. When CM1PS[1:0] = 00b, CM1P0/1/2 pins are GPIO function.
When CM2EN=1 and CM2NS[1:0] = 00b~10b, the comparator negative voltage source is from external voltage source
through CM2N0, CM2N1, or CM2N2 pin. When CM2NS[1:0] = 11b, the comparator negative positive voltage is from
internal reference and CM2N0/1/2 pins are GPIO function. When CM2PS[1:0] = 01b~11b, the comparator positive input
is from CM2P0, CM2P1, or CM2P2 pin. When CM2PS[1:0] = 00b, CM2P0/1/2 pins are GPIO function.
CMnOEN controls Comparator output connected to GPIO or not. When CMnOEN=1, Comparator output terminal is
connected to GPIO pins and isolate GPIO function. When CMnOEN=0, comparator output status can be read through
CMnOUT flag and CmnO pin is GPIO mode.
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...