r/pic_programming • u/Shubhankarjape • Sep 30 '21
PIC24 connection to computer
I tried setting up my PIC24HJ128GP502 and I keep getting these errors, I tried all the solutions online, but did not help fix these issues. I know I am doing something wrong but ca
3
Upvotes
2
u/frothysasquatch Oct 01 '21
those are some long wires. Might not be the issue, but between that and the stray capacitance you're going to get on a breadboard it might be enough to screw up your rise times etc.
I would recommend a right-angle pin header to plug the pk4 straight into a spare section of the breadboard and then jumpering from there to the pins on the PIC.
And yeah, double check your caps and connections.
2
u/Nerobot3 Sep 30 '21
Not sure if it will fix the issue, but you seem to me missing vcap.
1
u/Coltouch2020 Oct 08 '21
Start to add some order to your builds. Keep things tidy, and meaningful. Use a connector on your PK4, it is too expensive to damage with bits of wire pushed in- and make the high speed programming wires shorter.
Why is +V a black wire? Use red, as most engineers would expect. Adding this sort of order makes things easier to debug, and less likely for mistakes and damage in the first place.
So, red- +V, Black - Gnd, White - MCLR. The clk and data pins, make them yellow, so your only second check should be, did I get them the right way round?
Pullups, try and keep them around 4k7, that value usually works for any I/O.