8 Replies Latest reply on Jun 25, 2018 2:36 AM by ShifangZ_26

    Question about using POWER-Z KT001 to test CCG3PA

    NiLi_2861801

      Hi,

          CYPD3171-24LQXQ, choose "Apple 2.4A enable" YES in Configuration Utility.

          Then, When I use Power-z KT001 auto enumerate charging protocol, or test Apple 2.4A, VBUS will always down for nearly 200ms.  Why?

           Thanks.

                  /*

                   * VBUS shall be disabled in this state only if:

                   * 1) TYPE-C port entered legacy charging mode from PD state.

                   * 2) Apple charging selected.

                   */

                  if (((bc_stat->connected == false) && (cport == TYPEC_PORT_0_IDX)) ||

                          ((pd_get_ptr_chg_cfg_tbl(cport)->src_sel & BC_SRC_APPLE_MODE_ENABLE_MASK) != 0))

                  {

      #if LEGACY_PD_PARALLEL_OPER

                      /* Toggle VBUS only if we came here after disabling PD mode. */

                      if (!((cport == TYPEC_PORT_0_IDX) && (dpm_get_info(cport)->pd_disabled == false)))

      #endif /* LEGACY_PD_PARALLEL_OPER */

                      {

                          psrc_disable(cport, NULL);

                          vbus_discharge_on(cport);

                          timer_start(cport, APP_BC_GENERIC_TIMER1, APP_BC_VBUS_CYCLE_TIMER_PERIOD, bc_tmr_cbk);

                      }

      #if LEGACY_PD_PARALLEL_OPER

                      /* We came here after TYPE-C attach. Configure VDP_SRC detect comparator. */

                      else

                      {

                          bc_set_bc_evt (cport, BC_EVT_TIMEOUT2);

                      }

      #endif /* LEGACY_PD_PARALLEL_OPER */

                  }