5 Replies Latest reply on Aug 30, 2016 6:21 AM by user_1377889

    ADC +5v and -5v read and compare

    user_491123998

      Hello,

         

      I am using CY8C28445 (PSOC 1) ic . i have to use two ADC . first ADC calculate 5v to 0v and second ADC calculate -5v to 0. 

         

      Both of ADC values i have to compare and turn on two separate  LED light .

         

      ADC1 value  >  ADC2 value = LED 1 turn on 

         

      ADC2 value  >  ADC1 value = LED 2 turn on 

         

      Please provide the sample code for this task . i had test a basic code for +5v to 0 but i am not able to get 0 to -5v value .

         

       

         

      Best Regards 

         

      Deepak Aagri