0
\$\begingroup\$

Is this simple circuit able to program a microcontroller? Or Does it need any other components?

After looking at this question, I can know where D+ and D- of USB cable are, by looking at the colours of wires.

After reading datasheet, I think that D+ and D- should be connected to pins 13 and 14. But I don't know which one I should connect to which. for eg. should I connect pin 13 to D+ or D-? If I connected them in a wrong way by mistake, Does that damage the microcontroller?

What is the best software to communicate with this circuit? I want windows to recognise or add this new hardware without getting in troubles.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
3
\$\begingroup\$

The circuit diagram in your question is nonsense. The PIC16F84A does not support USB, so connecting a USB cable to it won't do anything useful.

The connections you've come up with are doubly nonsense. Pin 14 of the PIC16F84A is VDD. Connecting D+ to VDD will tie it to your power supply. If you are using the 5V supply from the USB cable, this may damage the USB host device.

If you want to program a PIC part over USB, you need to buy a USB PIC programmer. This is not negotiable. You cannot build one out of a USB cable; it requires active components.

\$\endgroup\$
  • 1
    \$\begingroup\$ You can buy a PICkit3 for like $20 \$\endgroup\$ – user28910 Mar 3 '17 at 20:52
0
\$\begingroup\$

It is two bucks worth of parts assuming you have a $10 USB to TTL virtual adapter. enter image description here enter image description here

\$\endgroup\$
  • \$\begingroup\$ Thank you for your answer Tony. I'm a beginner and I don't understand these words stands for (DTR, CTS, RTS, PGD, PGC). \$\endgroup\$ – Michael George Mar 3 '17 at 20:44
  • \$\begingroup\$ Also, a USB cable is always four wires. Why there's six wires in the USB COM? \$\endgroup\$ – Michael George Mar 3 '17 at 20:45
  • \$\begingroup\$ Sorry I assumed everyone has a virtual COM with USB to serial port adapter as COM port which have been deleted on computers these days, yet so essential for projects like this. google.ca/…*&spd=9280719118028653764 \$\endgroup\$ – Sunnyskyguy EE75 Mar 3 '17 at 21:09
  • \$\begingroup\$ @MichaelGeorge, if you don't understand something, there is a modern tool called "internet", with a search engine called GOOGLE. Try it sometimes. \$\endgroup\$ – Ale..chenski Mar 3 '17 at 21:09
  • \$\begingroup\$ also 8lots.com/index.php?route=product/… \$\endgroup\$ – Sunnyskyguy EE75 Mar 3 '17 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.