Figure 6.16-12 Adc Extend Sampling Timing Diagram; Figure 6.16-13 Adc Conversion Result Monitor Logics Diagram - Nuvoton ISD94124BYI Technical Reference Manual

Isd arm cortex-m4f soc
Table of Contents

Advertisement

Figure 6.16-12 ADC Extend Sampling Timing Diagram

6.16.5.11 Conversion Result Monitor by Compare Mode
The ADC controller provides four sets of compare registers EADC_CMP0 ~ EADC_CMP3 to
monitor a maximum of four specified sample module 0~12 conversion results from ADC conversion
module, as shown in the Figure 6.16-13. User can select which sample module result to be
monitored by set CMPSPL (EADC_CMPn[7:3], n =0~3) and CMPCOND (EADC_CMPn[2], n =0~3)
is used to check conversion result is less than specify value or greater than (equal to) value
specified in CMPDAT (EADC_CMPn[27:16] , n =0~3). When the conversion of the sample module
specified by CMPSPL (EADC_CMPn[7:3], n =0~3) is completed, the comparing action will be
triggered one time automatically. When the compare result meets the compare condition, the
internal compare match counter will increase 1. If the compare result does not meet the condition,
the compare match counter will reset to 0. When counter value reach the setting of (CMPMCNT
(EADC_CMPn[11:8])+1, n =0~3) then ADCMPFn (EADC_STATUS2[7:4], n =0~3) bit will be set to
1, if ADCMPIE (EADC_CMPn[1] , n =0~3) is set then an ADINT3 interrupt request is generated.
User can use it to monitor the external analog input pin voltage transition. Detailed logics diagram
is shown in Figure 6.16-13.
CMPSPL(EADC_CMPn[7:3])
Control Logic
Sample module
0~12
DAT Result Register
CMPDAT(EADC_CMPn[27:16])

Figure 6.16-13 ADC Conversion Result Monitor Logics Diagram

The ADC controller supports a window compare mode. User can set CMPWEN (EADC_CMP0[15]/
EADC_CMP2[15] ) to enable this function. If user enable this function, ADCMPF0
(EADC_STATUS2[4]) will be set when both EADC_CMP0 and EADC_CMP1 compared condition
matched. ADCMPF2 (EADC_STATUS2[6]) will be set when both EADC_CMP2 and EADC_CMP3
compared condition matched.
6.16.5.12 Double Buffer Mode
The ADC controller supports a double buffer mode in sample module 0~3. If user enable DBMEN
(EADC_SCTLn[23], n=0~3), the double buffer mode will enable. In double buffer mode, after first
time ADC convert finish, the VALID (EADC_DATn[17], n=0~3) will set to high, but VALID
(EADC_DDATn[17], n=0~3) will keep low. And the second time ADC converts finish, VALID
(EADC_DDATn[17],n=0~3) will set to high either, Then, user can get the ADC results from
EADC_DATn and EADC_DDATn register.
6.16.5.13 PDMA request
The ADC controller supports PDMA. User can enable PDMAEN (EADC_CTL[11]) and configure
PDMA channel's source address as EADC_CURDAT (EADC_BA+0x4C). After enable PDMAEN
and PDMA channel enable, if any VALID (EADC_DATn[17],n=0~12) is high, ADC controller will
send request to PDMA and PDMA will read EADC_CURDAT to get result. The EADC_CURDAT
Sep 9, 2019
ISD94100 Series Technical Reference Manual
RESULT < CMPDAT
RESULT
(EADC_DATn[11:0]
+
RESULT >= CMPDAT
-
12-bit Digital Comparator
Page 767 of 928
CMPCOND(EADC_MPPn[2])
CMPMCNT
(EADC_CMPn[11:8])
0
Match
Counter
1
ADCMPOn
Note:
(EADC_STATUS2[15:12])
CMPDAT (EADC_CMPn[27:16]
RESULT(EADC_PATn[11:0]
APCMPFn
(EADC_STATUS2[7:4])
Rev1.09

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents