6 Replies Latest reply on Sep 29, 2015 2:35 AM by gitesh.kulkarni

    Dynamic change of reference voltage for monitoring two signals (PSOC4)

    gitesh.kulkarni

      Hello All,

         

      I am new to PSOC so please bear with me if this question seems very simple :)  I am looking for measuring a signal and battery voltage (for battery monitoring) at the same time.  For battery monitoring the reference voltage is fixed but for the signal I should be able to change the reference voltage at run time.  Is that possible?  Also, for the signal voltage I need to use a comparator so that minimum code is written and all is done by hardware is meausre number of pulses.  I found one example that for that as attached but note sure how -ve of LPComp_1 is driven here by SAR.  Could anybody please help?  

         

      Thank a lot,

         

      -Gitesh