How to get 9V / 12V from a charger with Quick Charge (for example STM32)

How fast charging can be useful



With the increase in the capacity of phone batteries, it was necessary to increase the power of the chargers in order to achieve a short charging time, for which it was necessary to increase the output power: voltage, current. Thus, chargers with Quick Charge 3.0, in addition to 5 V, can provide 9V / 12V / 20V + the ability to adjust in 0.2 V increments (up to 12 V).



image


In view of the prevalence of memory devices with this technology, there is interest in using them to obtain increased voltage without additional converters.



Connection diagram



The presented circuit will allow the pins configured as a push-pull output to supply the desired voltage values to the DN , DP pins :



Both conclusions are negative

0 in

The upper terminal is positive and the lower terminal is negative

0.6V

Both conclusions to the plus

3.3V



image


Setting in STM32CubeMX



(Output Push Pull) (No pull-up and no pull-down) ( -> Enter User Label).





Quick Charge



QC 2.0 ( CHY100)



image


DN, DP DP, 0.325 2 ( 0.6 ) 1.25 . DN ( 0.325 ) 1 . , , :



image


QC 3.0 ( FAN6290Q)



200 , , Continuous Mode:



image


(5/9/12), (DN: 3.3 , DP: 0.6-3.3-0.6), (DP: 0.6 , DN: 3.3-0.6-3.3).



image




HAL, -, :



void QC_GPIO_9V(void){

    /* DP: 0.6V; DN: 0.6V - preset */
    HAL_GPIO_WritePin(QC_DP_UP_GPIO_Port, QC_DP_UP_Pin, GPIO_PIN_SET);
    HAL_GPIO_WritePin(QC_DP_DOWN_GPIO_Port, QC_DP_DOWN_Pin, GPIO_PIN_RESET);

    HAL_GPIO_WritePin(QC_DN_UP_GPIO_Port, QC_DN_UP_Pin, GPIO_PIN_SET);
    HAL_GPIO_WritePin(QC_DN_DOWN_GPIO_Port, QC_DN_DOWN_Pin, GPIO_PIN_RESET);

    HAL_Delay(1250); /* min 1.25s */

    /* DP: 0.6V; DN: 0V */
    HAL_GPIO_WritePin(QC_DN_UP_GPIO_Port, QC_DN_UP_Pin, GPIO_PIN_RESET);
    HAL_Delay(1); /* min 1ms */

    /* DP: 3.3V; DN: 0.6V for 9V */
    HAL_GPIO_WritePin(QC_DP_UP_GPIO_Port, QC_DP_UP_Pin, GPIO_PIN_SET);
    HAL_GPIO_WritePin(QC_DP_DOWN_GPIO_Port, QC_DP_DOWN_Pin, GPIO_PIN_SET);

    HAL_GPIO_WritePin(QC_DN_UP_GPIO_Port, QC_DN_UP_Pin, GPIO_PIN_SET);
    HAL_GPIO_WritePin(QC_DN_DOWN_GPIO_Port, QC_DN_DOWN_Pin, GPIO_PIN_RESET);
}


:



QC_GPIO_5V();
QC_GPIO_9V();
QC_GPIO_12V();
QC_GPIO_20V();

QC_GPIO_Reg();
QC_GPIO_Dec();
QC_GPIO_Inc();


STM32CubeIDE GitHub: Quick-Charge-STM32-HAL





( QC 3.0):



image


:



image


:



image


USB Type-C 5.1 CC1, CC2 GND, UFP (Upstream Facing Port).







, , .

, ( VBUS 3.3 ) β€” "".



USB-A USB-C



, 65 USB Type-C.





, 4.2 , 3.7 .











Power Delivery (PD), Quick Charge (QC), .



, 20 , . , , .




All Articles