Below the entire circuit I refer to (it will be part of an article as this last detail I will explain below is clear to me.
This is the schematics for a dual stepper motor controller. The PSoC 4200 series controls a couple of stepper motors through two GearBest Motor controller boards and it works fine. The 5VCC power for the PSoC is got from the extra 5VCC regulated power pin on the board while the GND is common. What I see is that in the final 5VCC power line from the board there is no diode protection; this is +5 VCC out when the board is powered (12VCC, 2A) but if I power off the board leaving the cables connected to the PSoC and the PSoC is powered through the USB connector, it tries (unsuccessfully) to power the board and the USB on the computer become unstable.
This experimental verification suggest me to put a zener diode between VCC and GND (the PSoC Power (+5V reg.) block in the design). What value do you suggest ? Or this is totally wrong?
Take in account that in theory the USB connection should not be used for normal production but for programming only but it is also possible that after the assembly the normal power line is not so easy to remove while for some reasons the PSoC should be reprogrammed via the USB.
thank in advance. Enrico