3.1.24:Power Supply
1. Purpose and Scope
This document defines the external power supply requirements for PowerWriter series programmers. It specifically explains the technical reasons why fast-charging adapters (capable of outputting more than 5V) are not recommended for powering the programmer, and provides recommended power supply solutions to prevent damage to the programmer or target chips caused by abnormal supply voltage.
This document applies to:
- End users of PowerWriter programmers
- Production line programming operators
2. Power Supply Requirements Overview
| Power Supply Method | Recommended | Notes |
|---|---|---|
| Computer USB port (USB 2.0 / 3.0 / Type-C) | ✅ Recommended | Standard 5V output, no voltage boost mechanism — safest option |
| Standard 5V adapter (no fast-charge protocol, rated 5V/1A or 5V/2A) | ✅ Recommended | Fixed 5V output, no protocol negotiation |
| Smartphone fast-charging adapter (QC / PD / proprietary protocol, supports 9V/12V/20V etc.) | ⚠️ Not recommended | Risk of unintended high-voltage output |
| Laptop PD charger (65W / 90W etc.) | ⚠️ Not recommended | Same risk as above; higher power margin means more severe damage consequences |
| Adjustable DC power supply (set to 5V output) | ✅ Acceptable | Must confirm output is exactly 5V with no overshoot |
3. Why Fast-Charging Adapters Are Not Recommended
3.1 Operating Principle of Fast-Charging Adapters
Fast-charging adapters (supporting QC, PD, proprietary protocols, etc.) do not output a fixed 5V. Instead, they start at 5V by default and can switch to higher voltage levels (9V, 12V, 20V, etc.) after protocol negotiation.
Example output specification of a typical fast-charging adapter (Xiaomi MDY-11-EF):
Output: 5V⎓3A / 9V⎓3A / 12V⎓2.25A / 20V⎓1.35A / 10V⎓3A Max
There are two negotiation channels:
- USB-C connector + PD protocol: Digital communication via the CC (Configuration Channel) pin;
- USB-A connector + QC protocol: Analog voltage level negotiation via the D+/D- pins.
3.2 Core Risk: Unintended High-Voltage Output
The USB port of the PowerWriter programmer is used for both host communication and power draw. Its D+/D- pins have pull-up resistor networks for USB device identification. When connected to a fast-charging adapter, the following risks exist:
Risk 1: D+ Pull-Up Resistor Triggers QC Protocol Handshake by Mistake
USB full-speed devices typically have a 1.5kΩ pull-up resistor to 3.3V on the D+ line to identify the device to the host. This design is completely safe on a computer USB port (the host has standard 15kΩ pull-down resistors on D+/D-, resulting in a D+ level of approximately 0.3V, which does not trigger fast charging).
However, some fast-charging adapters use different internal pull-down resistor values on D+/D- than computer USB ports. This may cause the voltage divider on D+ to fall near the QC protocol handshake level (approximately 0.6V). If this level persists for more than 1.25 seconds, the adapter will determine that the device supports the QC protocol and then boost the output to 9V or 12V based on the D- line level.
Risk 2: D-/D+ Level Combination Misjudges Voltage Level
The QC protocol selects the output level through the D-/D+ voltage combination:
| D+ Level | D- Level | Adapter Output |
|---|---|---|
| 0.6V | 0.6V | 9V |
| 0.6V | 3.3V | 12V |
| 0.6V | GND | 5V (Safe) |
If the D-/D+ pin states of the programmer deviate from expectations due to external interference, cable quality, or internal circuit differences, the adapter may misinterpret the combination as a 9V or 12V request.
Risk 3: Abnormal CC Pin State on USB-C Connector
When using a C-to-C cable, the PD protocol negotiates via the CC pin. Although PD is a digital protocol (devices without a PD controller will not actively request high voltage), abnormal CC pin configuration on the programmer, or the use of non-standard cables (with eMarker chips or incorrect resistors), may lead to an uncertain negotiation state.
3.3 Consequences of High-Voltage Output
Once a fast-charging adapter mistakenly outputs 9V or higher, the following may occur:
- Damage to the programmer's internal LDO / DC-DC: The internal power IC is typically designed for 5V input; 9V/12V exceeds its voltage withstand rating, causing breakdown.
- Damage to the main control MCU: After power supply failure, overvoltage may be applied directly to MCU pins, causing permanent damage.
- Damage to the target board / target chip: If the programmer supplies 3.3V or 5V to the target board, overvoltage may propagate to the target board, burning the target chip and surrounding components.
- Intermittent programming failures: Even without reaching breakdown voltage, the ripple and noise of a fast-charging adapter under 5V light load may cause SWD / JTAG communication errors, manifesting as unstable programming, verification failures, or intermittent disconnections.
4. Recommended Power Supply Solutions
Solution 1: Computer USB Port (Preferred)
Connect the PowerWriter programmer directly to a computer USB port via a USB data cable.
Advantages:
- Computer USB ports strictly output 5V with no voltage boost mechanism;
- D+/D- have standard 15kΩ pull-down resistors, preventing false triggering of fast-charge protocols;
- Provides both power and data communication in a single cable — no additional wiring needed.
Precautions:
- Prefer the rear motherboard USB ports or a powered USB Hub. Avoid front-panel ports or unpowered hubs, which may cause voltage drops due to line loss;
- If the programmer also powers the target board, ensure the computer USB port has sufficient current capacity (USB 2.0 ≥ 500mA, USB 3.0 ≥ 900mA).
Solution 2: Standard 5V Adapter
Use a standard 5V adapter without fast-charge protocols, rated at 5V/1A or 5V/2A.
How to identify:
- Check the adapter nameplate: the output specification should only list 5V⎓X A, with no 9V, 12V, 20V, or other voltage levels;
- Typically an older, compact adapter — not the fast-charging adapter bundled with recent smartphones.
Advantages:
- Fixed 5V output with no protocol negotiation — no boost risk;
- Suitable for standalone production line power supply, offline programming, and other scenarios without a computer.
Precautions:
- If the programmer also needs to communicate with a computer, a USB data cable to the computer is still required. In this case, the adapter serves as auxiliary power only — confirm that the programmer supports dual power inputs without backfeed risk.
Solution 3: Adjustable DC Power Supply (Laboratory Scenario)
Use an adjustable DC regulated power supply set to 5.0V ± 0.1V, with the current limit set to 1.2–1.5 times the programmer's rated current.
Precautions:
- Before powering on, always verify the output voltage with a multimeter to confirm it is 5V — prevent accidental setting to a higher voltage;
- Observe correct output polarity — do not reverse positive and negative leads;
- Avoid voltage overshoot during power-on. If necessary, add a series diode or use the soft-start function.
5. Troubleshooting After Using a Fast-Charging Adapter
If a fast-charging adapter has been used to power the PowerWriter programmer and the following symptoms appear, follow the troubleshooting steps below.
5.1 Abnormal Symptoms
- Programmer indicator does not light up or flashes abnormally;
- Computer cannot recognize the programmer (no corresponding device in Device Manager, or "USB Device Descriptor Request Failed" error);
- Frequent errors, verification failures, or communication interruptions during programming;
- Abnormal heating or burning odor from the programmer or target board;
- Target chip fails to operate normally or becomes unresponsive immediately after programming.
5.2 Troubleshooting Steps
- Power off immediately: Unplug the fast-charging adapter and stop using it;
- Switch to a safe power source: Use a computer USB port or standard 5V adapter;
- Check programmer status:
- Observe whether the indicator lights up normally;
- Confirm in the computer's Device Manager that it is recognized as a normal USB device;
- Attempt to read the programmer's firmware version information;
- Check the target board:
- Measure the 3.3V / 5V power pin voltages on the target board;
- Touch the target chip to check for abnormal heating;
- Attempt to read the target chip ID to confirm whether the chip is functional;
- If the programmer cannot be recognized or the target chip is damaged: Contact technical support, disclose that a fast-charging adapter was used, and request repair or replacement.
6. Conclusion and Recommendations
- The rated input voltage of the PowerWriter programmer is 5V. Any input voltage exceeding 5V may cause permanent damage.
- Fast-charging adapters (capable of outputting 9V/12V/20V) carry a risk of unintended high-voltage output and are not recommended for powering the PowerWriter programmer.
- Recommended power supply methods (in priority order):
- Computer USB port (preferred — provides both power and communication);
- Standard 5V adapter without fast-charge protocol (5V/1A or 5V/2A);
- Adjustable DC power supply (precisely set to 5V, for laboratory scenarios).
- For mass production line deployment, standardize on 5V adapters or powered USB Hubs. Prevent operators from casually using personal smartphone fast-charging adapters.
- If equipment abnormality has already occurred due to the use of a fast-charging adapter, stop using it immediately and follow the troubleshooting guide in Section 5. Contact after-sales support if necessary.