
ISD91200 Series Technical Reference Manual
Release Date: Sep 16, 2019
- 467 -
Revision 2.4
[6:3]
CMPCH
Compare Channel Selection
0000 = Channel 0 conversion result is selected to be compared.
0001 = Channel 1 conversion result is selected to be compared.
0010 = Channel 2 conversion result is selected to be compared.
0011 = Channel 3 conversion result is selected to be compared.
0100 = Channel 4 conversion result is selected to be compared.
0101 = Channel 5 conversion result is selected to be compared.
0110 = Channel 6 conversion result is selected to be compared.
0111 = Channel 7 conversion result is selected to be compared.
1000 = Channel 8 conversion result is selected to be compared.
1001 = Channel 9 conversion result is selected to be compared.
1010 = Channel 10 conversion result is selected to be compared.
1011 = Channel 11 conversion result is selected to be compared.
1100 = Reserved.
1101 = Reserved.
1110 = Reserved.
1111 = Reserved
[2]
CMPCOND
Compare Condition
0 = Set the compare condition as that when a 12-bit A/D conversion result is less than the
12-bit CMPDAT (CMPx[27:16]), the internal match counter will increase one.
1 = Set the compare condition as that when a 12-bit A/D conversion result is greater or
equal to the 12-bit CMPD (CMPx[27:16]), the internal match counter will increase one.
Note:
When the internal counter reaches the value to (C1), the ADCMPFx bit
will be set.
[1]
ADCMPIE
Compare Interrupt Enable Bit
0 = Compare function interrupt Disabled.
1 = Compare function interrupt Enabled.
Note:
If the compare function is enabled and the compare condition matches the setting of
CMPCOND and CMPMCNT, ADCMPF bit will be asserted, in the meanwhile, if ADCMPIE
is set to 1, a compare interrupt request is generated.
[0]
ADCMPEN
Compare Enable Bit
0 = Compare function Disabled.
1 = Compare function Enabled.
Note:
Set this bit to 1 to enable SARADC controller to compare CMPDAT[11:0] with
specified channel conversion result when converted data is loaded into DAT register.