0
\$\begingroup\$

I want to make a portable universal programmer. One of the things I want to do is to power the programmer by the target device. The target device can be 3.3 or 5 V but the programmer is 5 V. I can't figure out how to select the output voltage.

scheme

How to apply different voltages to the target device?

\$\endgroup\$
5
  • \$\begingroup\$ You don't ask a question, but usually it's the target who provides supply voltage as a reference what the programmer should use so it's not the job of a programmer anyway. What are you programming? Or why the programmer must be 5V? \$\endgroup\$ Commented Mar 26, 2023 at 16:49
  • 1
    \$\begingroup\$ Pick a level translator that supports both output voltages and then change the supply rail between 3.3/5v as needed. \$\endgroup\$ Commented Mar 26, 2023 at 16:49
  • \$\begingroup\$ @Justme mcu for programmer is 5v, Unfortunately I can't change it. I plan to program avr atmega and stm32. \$\endgroup\$ Commented Mar 26, 2023 at 16:56
  • \$\begingroup\$ @user1850479 my question is how to apply different voltage to the target device. \$\endgroup\$ Commented Mar 26, 2023 at 16:56
  • \$\begingroup\$ You could use an adjustable voltage regulator to generate different voltages, you could include multiple regulators and use a transistor or jumper to change them out, etc. Whatever is easiest. \$\endgroup\$ Commented Mar 26, 2023 at 17:00

1 Answer 1

1
\$\begingroup\$

From my point of view, you have two basic options:

(1) Use a voltage reference provided by the DUT. This implies, that your DUT is self-powered or has a power input stage which can be feed from the programmer.

(2) Provide the voltage reference to the DUT. This implies, that you can change the voltage via HMI (DIP Switches) or Software. It also implies, that you frie your DUT in case of incorrect settings.

(1): Provide a single Pin in your interface connector for VRef - per VRef (if multiple Banks). Connect this pin to the IO-Voltage required on the DUT. On the programmer side use a power op-amp with safety circuits ( overcurrent- , overshoot-, undershoot- , ringing- etc. protection). Drive the DUT-VCC of a common level-shifter IC.

(2): Use a MCU with internal DAC to feed the output voltage into a voltage-controlled LDO. Power the DUT and the level shifters with this rail. You can do this with multiple banks on different voltages as well.

Think about a way - i can come up with none - to prevent a user error from frying your DUT.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.