Exemplo n.º 1
0
        private void SubMode123Compensation(int band, int gray)
        {
            //Mode1
            cmd.SendGammaSetApplyCMD(DP213OCSet.GetGammaSet(OC_Mode.Mode1));
            if (band != 0 && gray == 0)
            {
                RVreg1BSubCompensation(OC_Mode.Mode1, band, gray);
                CopyAndSendVreg1_OCMode1_to_OCMode23(band, gray);
            }
            else
            {
                RGBSubCompensation(OC_Mode.Mode1, band, gray);
            }
            UpdateOCMode23Target(band, gray);
            UpdateOCMode23InitGamma(band, gray);


            //Mode2
            cmd.SendGammaSetApplyCMD(DP213OCSet.GetGammaSet(OC_Mode.Mode2));
            RGBSubCompensation(OC_Mode.Mode2, band, gray);

            //Mode3
            cmd.SendGammaSetApplyCMD(DP213OCSet.GetGammaSet(OC_Mode.Mode3));
            RGBSubCompensation(OC_Mode.Mode3, band, gray);
        }
Exemplo n.º 2
0
 void Set_and_Send_ELVSS_CMD(OC_Mode SelectedMode, int band, double ELVSS_Voltages)
 {
     ocparam.Set_OC_Mode_ELVSS_Voltage(ELVSS_Voltages, SelectedMode, band);
     byte[][] output_cmd = ModelFactory.Get_DP213_Instance().Get_ELVSS_CMD(DP213OCSet.GetGammaSet(SelectedMode), ocparam.Get_OC_Mode_Cold_ELVSS_Voltages(SelectedMode));
     cmd.SendMipiCMD(output_cmd);
     api.WriteLine("(Set and Send and update_textboxes) set/band ELVSS_Voltages : (" + DP213OCSet.GetGammaSet(SelectedMode).ToString() + "/" + band.ToString() + ")" + ELVSS_Voltages.ToString());
 }
Exemplo n.º 3
0
        private void ELVSSCompensation()
        {
            OC_Mode mode = DP213OCSet.Get_ELVSS_OCMode();

            cmd.SendGammaSetApplyCMD(DP213OCSet.GetGammaSet(mode));
            Band_Gray255_RGB_Compensation(mode, band: 0);
            Sub_ELVSS_and_Vinit2_Compensation(mode, band: 0, DP213OCSet.Get_ELVSS_Voltage_Max(), DP213OCSet.Get_ELVSS_Voltage_Min());
        }
Exemplo n.º 4
0
        private void WhiteCompensation()
        {
            OC_Mode mode = DP213OCSet.Get_WhiteCompensation_OCMode();

            cmd.SendGammaSetApplyCMD(DP213OCSet.GetGammaSet(mode));
            Band_Gray255_RGB_Compensation(mode, band: 0);
            Sub_VREF0_Compensation(Get_HBM_RGB_Min_AM2_Voltage());
        }
Exemplo n.º 5
0
        private void GrayLowRefCompensation()
        {
            OC_Mode mode = DP213OCSet.Get_LowGrayRefCompensastion_OCMode();

            cmd.SendGammaSetApplyCMD(DP213OCSet.GetGammaSet(mode));
            base.SingleBand_RGB_Compensation(mode, band: 0);
            Sub_AM1_Compensation(mode, band: 0);
        }
Exemplo n.º 6
0
        private void Set_Vinit2_By_Adding_Offset(OC_Mode SelectedMode, double Found_ELVSS_Voltage)
        {
            Gamma_Set Set       = DP213OCSet.GetGammaSet(SelectedMode);
            int       Set_Index = Convert.ToInt16(Set);

            for (int band = 0; band < DP213_Static.Max_HBM_and_Normal_Band_Amount; band++)
            {
                double ELVSS_Offset   = DP213OCSet.Get_ELVSS_Offset(SelectedMode, band);
                double Vinit2_Offset  = DP213OCSet.Get_Vinit2_Offset(SelectedMode, band);
                double Vinit2_Voltage = Found_ELVSS_Voltage + ELVSS_Offset + Vinit2_Offset;
                ocparam.Set_OC_Mode_Vinit2_Voltage(Vinit2_Voltage, SelectedMode, band);
            }
            Send_Vinit2_Voltages(SelectedMode);
        }
Exemplo n.º 7
0
 private void SingleModeOC(OC_Mode mode)
 {
     cmd.SendGammaSetApplyCMD(DP213OCSet.GetGammaSet(mode));
     for (int band = 0; band < DP213_Static.Max_HBM_and_Normal_Band_Amount && vars.Optic_Compensation_Stop == false; band++)
     {
         if (band > DP213OCSet.Get_mode456_max_skip_band())
         {
             SingleBand_RGB_or_RVreg1B_Compensation(mode, band);
         }
         else
         {
             ApplyGamma(mode, band);
         }
     }
 }
Exemplo n.º 8
0
 private void Send_Vinit2_Voltages(OC_Mode SelectedMode)
 {
     double[] Vinit2_Voltages = ocparam.Get_OC_Mode_Vinit2_Voltages(SelectedMode);
     byte[][] output_cmd      = ModelFactory.Get_DP213_Instance().Get_Vinit2_CMD(DP213OCSet.GetGammaSet(SelectedMode), Vinit2_Voltages);
     cmd.SendMipiCMD(output_cmd);
     api.WriteLine("Send_Vinit2_Voltages, OC_Mode : " + SelectedMode.ToString());
 }
Exemplo n.º 9
0
        protected void ApplyGamma(OC_Mode mode, int band)
        {
            RGB AM0 = ocparam.Get_OC_Mode_AM0(mode, band);
            RGB AM1 = ocparam.Get_OC_Mode_AM1(mode, band);

            byte[][] output_cmds = ModelFactory.Get_DP213_Instance().Get_Gamma_AM1_AM0_CMD(DP213OCSet.GetGammaSet(mode), band, ocparam.Get_OC_Mode_RGB(mode, band), AM1, AM0);
            cmd.SendMipiCMD(output_cmds);
            Thread.Sleep(20);
        }
Exemplo n.º 10
0
 protected void ApplyVreg1(OC_Mode mode)
 {
     byte[][] output_cmds = ModelFactory.Get_DP213_Instance().Get_Vreg1_CMD(DP213OCSet.GetGammaSet(mode), ocparam.Get_OC_Mode_Vreg1(mode));
     cmd.SendMipiCMD(output_cmds);
     Thread.Sleep(20);
 }
Exemplo n.º 11
0
        void Update_Vreg1_From_Sample()
        {
            try
            {
                byte[] OCMode1_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode1));
                byte[] OCMode2_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode2));
                byte[] OCMode3_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode3));
                byte[] OCMode4_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode4));
                byte[] OCMode5_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode5));
                byte[] OCMode6_cmds = DP213Model.getInstance().Get_Normal_Read_Vreg1_CMD(DP213OCSet.GetGammaSet(OC_Mode.Mode6));

                byte[] OCMode1_ReadVreg1 = dprotocal.GetReadData(OCMode1_cmds);
                byte[] OCMode2_ReadVreg1 = dprotocal.GetReadData(OCMode2_cmds);
                byte[] OCMode3_ReadVreg1 = dprotocal.GetReadData(OCMode3_cmds);
                byte[] OCMode4_ReadVreg1 = dprotocal.GetReadData(OCMode4_cmds);
                byte[] OCMode5_ReadVreg1 = dprotocal.GetReadData(OCMode5_cmds);
                byte[] OCMode6_ReadVreg1 = dprotocal.GetReadData(OCMode6_cmds);

                for (int band = 0; band < DP213_Static.Max_HBM_and_Normal_Band_Amount; band++)
                {
                    Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode1_ReadVreg1, band), OC_Mode.Mode1, band);
                    Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode2_ReadVreg1, band), OC_Mode.Mode2, band);
                    Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode3_ReadVreg1, band), OC_Mode.Mode3, band);
                    Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode4_ReadVreg1, band), OC_Mode.Mode4, band);
                    Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode5_ReadVreg1, band), OC_Mode.Mode5, band);
                    Set_OC_Mode_Vreg1(ModelFactory.Get_DP213_Instance().Get_Normal_Vreg1s(OCMode6_ReadVreg1, band), OC_Mode.Mode6, band);
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Update_Vreg1_From_Sample() fail");
            }
        }