ADCM362

we are working with aducm362. Our need is to do an oversampling by operating o sinc2 filter along with sinc4 filter. We have configured all the registers according the hardware reference manual and datasheet, but we are not getting the ready interrupt.What is the method to set the step detection threshold? How we can make it working ? is there any example codes available which will  do over sampling ?

Parents
  • 0
    •  Analog Employees 
    on Oct 16, 2018 10:32 AM

    Hi,

    Sorry, no example code for this case.

    The register for setting the step detection threshold is STEPTH register, there are total 1024 steps. To enable the step detection, please note the below information.

    1. Configure DETCON register.  Be sure to enable the SINC2 (bit[7]), select the used ADC (bit[6]), and correct RATE (bit[1:0]). An example of function is shown below.

    AdcDetCon(pADI_ADCSTEP,DETCON_SINC2_EN,DETCON_ADCSEL,DETCON_RATE_2ms);

    2. Configure the STEPTH register to make sure the threshold.

    3. Interrupt is recommended to use. The interrupt for step detection is sinc2 interrupt not ADC interrupt. The function of interrupt is shown below.

    SINC2_Int_Handler()

    4. Be sure to enable ADC conversion.

    Regards

    Barry

Reply
  • 0
    •  Analog Employees 
    on Oct 16, 2018 10:32 AM

    Hi,

    Sorry, no example code for this case.

    The register for setting the step detection threshold is STEPTH register, there are total 1024 steps. To enable the step detection, please note the below information.

    1. Configure DETCON register.  Be sure to enable the SINC2 (bit[7]), select the used ADC (bit[6]), and correct RATE (bit[1:0]). An example of function is shown below.

    AdcDetCon(pADI_ADCSTEP,DETCON_SINC2_EN,DETCON_ADCSEL,DETCON_RATE_2ms);

    2. Configure the STEPTH register to make sure the threshold.

    3. Interrupt is recommended to use. The interrupt for step detection is sinc2 interrupt not ADC interrupt. The function of interrupt is shown below.

    SINC2_Int_Handler()

    4. Be sure to enable ADC conversion.

    Regards

    Barry

Children