6 Replies Latest reply on Jan 15, 2020 6:00 AM by VasanthR_91

    cy8c4a45azi-483 adc

    deda_294911

      hi everybody.

      on 16 aug. 2019 i put a question regarding adc_uab of analog coprocessor. i have build pcb. other everything works fine but adc is not giving any result. and message remains not compatible 4.2 also unable to get result with 4.1

      please help. 

        • 1. Re: cy8c4a45azi-483 adc
          VasanthR_91

          Hi Deepak,

           

          One doubt regarding the code flow. Is the ADC_Start() API is called in the normal flow ? How is the variable mode updated? Kindly neglect the note message.

           

          Best Regards,
          Vasanth

          • 2. Re: cy8c4a45azi-483 adc
            deda_294911

             

            VasanthR_91

            ADC_Start()  is in main routine. ADC_StartConvert(); in for routine the same procedure was shown in cypress program. it doesnot work.

            for(;;)

                {   ADC_StartConvert();

                    ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);

                    result = ADC_GetResult16();

                    //resultmV = ADC_CountsTo_mVolts(result,1200);

                 

                    /* Place your application code here. */

                }

            i am not getting adc value as per mv input but 0xffd2 only

            • 3. Re: cy8c4a45azi-483 adc
              ShHo_1410221

              int main()
              { 

                 int c = 0;
              // your other startup apis
                 ADC_Start();
                 ADC_StartConvert();

                for(;;)
                {

               

              // your other codes
              while( ADC_IsEndConversion(ADC_RETURN_STATUS)){}
                 c=ADC_GetResult16(0);

              // your other codes 
                
              }

               

               

              }

               

              I used this configuration for ADC

              ADC Setting  

              • 4. Re: cy8c4a45azi-483 adc
                deda_294911

                dear friend,

                i am having problem with analog coprocessor. not with 4245

                • 5. Re: cy8c4a45azi-483 adc
                  ShHo_1410221

                  I am aware of that, 4245 and analog coprocessor are different chips. But, I have given you an ADC configuration that worked with 4245, just in case it might help !

                  • 6. Re: cy8c4a45azi-483 adc
                    VasanthR_91

                    Hi Deepak,

                     

                    Did you use creator 4.2 to generate the project ? If you have tested it in PSoC analog co-processor, it is being discontinued and no longer supported in creator 4.2. See website. The older version of the silicon has an issue with ADC and has been resolved in the latest silicon. If you have older version of the silicon and you are using a custom board, kindly try to get the new version of the silicon where the issue has been resolved.

                     

                    Best Regards,
                    Vasanth