![Nations N32G43 Series Скачать руководство пользователя страница 423](http://html1.mh-extra.com/html/nations/n32g43-series/n32g43-series_user-manual_3408051423.webp)
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
400
/
631
COMP features
Up to 2 independent comparators
Share the internal reference input of two independent 6bit DAC
Support filter clock, filter reset
Output polarity can be configured high and low
Hysteresis The value can be none, low, medium, or high
The comparison result can be output to the I/O port or trigger timer, which is used to capture events,
OCREF_CLR events, brake events, and generate interrupts
Input channel can select I/O port, channel output of general 12bit DAC, dedicated 6bit DAC
It can be read - only or read - write, and can be unlocked only after a reset
Blanking support, Blanking source can be configured to produce Blanking
COMP1/COMP2 can form window comparators
You can wake the system from Sleep mode mode by generating an interrupt
Filter window size can be configured
Filter threshold size can be configured
The sampling frequency for filtering can be configured
COMP configuration process
Complete configuration items are as follows. If the default configuration is used, skip the corresponding configuration
items.
1.
Configurable hysteresis level COMPx_CTRL.HYST[1:0]
2.
Configure the output polarity COMPx_CTRL.POL
3.
Configuration input selection, comparator non-inverting input COMPx_CTRL.INPSEL[3:0], inverting input
COMPx_CTRL. INMSEL [2:0]
4.
Select COMPx_CTRL.OUTSEL[3:0]for configuration output
5.
Configure the blanking source COMPx_CTRL.BLKING[2:0]
6.
Configure the comparator window mode COMP_WINMODE. CMP12MD
7.
Configure the filter sampling window COMPx_FILC.SAMPW[4:0]
8.
Configure
the
threshold
COMPx_FILC.THRESH[4:0]
(threshold
should
be
greater
than
COMPx_FILC.SAMPW[4:0]/2)
9.
Configure the filter sampling frequency (for timer applications, sampling frequency should be greater than
5MHz)