0 Replies Latest reply on Sep 21, 2010 4:11 AM by nam.tran.pham

    CY4631 lift detection

    nam.tran.pham

      Hello,

         

      Does anyone know how to change the configuration of the lift detection in CY21xx chip??

         

      I tried the code:

         

                  volatile BYTE liftHigh;

         

                  liftHigh = NAV_UM_bLiftHeightReadData();
                  NAV_UM_LiftHeightSetThreshold(4, 0);        // Lift high threshold, lift high hysteresis
                  asm("nop");          //dummy
                  asm("nop");          //dummy
                  liftHigh = NAV_UM_bLiftHeightReadData();

         

      the return value for liftHigh always 0

         

      There was no difference in the performance of the sensor.