Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PGC and PGD pins on PIC32MX250F128B-50I/SP

erumas

Newbie
Joined
Jan 20, 2022
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
40
Hello all,

I am experienced software developer but am new to embedded programming. I have just purchased a Pickit 4 and several of the pic32 mxxx family of microprocessors. Currently I am trying to flash a program onto a PIC32MX250F128B-50I/SP.

I'm following this setup documentation on step "3.2.2 Target Connection Circuitry" which instructs me to build the following circuit on a breadboard.

target_connection_circuitry.png




here is another circuit diagram post on the quick-start guide by Microchip that I have also referenced:
pic4.png


The issue I am unable to solve is, where to I find the programming clock pin (PGC) / (ICSPCLK) and the programming data pin (PGD)/ (ICSPDAT). When I consult the data sheet (page 5) for this processor I do not see those pins listed, at least with the same name. There are two clocks, OSC1/CLK and OSC2/CLK. There are also PGEC and PGED pins, but I'm not certain those would be the correct pins. How can I find instructions, or at least a rubric so I can understand what each of the "Full Pin Names" mean?

pic32mx1xx2xx.png


Thanks in advance!
 

doraemon

Super Moderator
Staff member
Joined
Jun 21, 2009
Messages
1,151
Helped
283
Reputation
574
Reaction score
269
Trophy points
1,363
Location
Japan
Activity points
11,628
Hello!

I am experienced software developer but am new to embedded programming.
Welcome to the geek club!

I suppose you have developed your own hardware? (otherwise it would be configured out of the box and
you wouldn't ask).
I have no experience with PIC, but at a first glance, I would bet PGEC and PGED are the correct ones.
OSC pins are oscillator (crystal) pins.

Now second glance, if you look at the documentation (you can search the PDF for "PGEC"), you will find
an explanation page 25 of what it does. It says it's the programming clock, so it's safe to assume that it's PGC.

That said, you might consider buying an evaluation board which will ensure that everything is configured
fine. Getting some experience in programming before developing your own hardware is probably better
than starting everything from scratch.

Dora
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
49,894
Helped
14,482
Reputation
29,234
Reaction score
13,391
Trophy points
1,393
Location
Bochum, Germany
Activity points
286,515
Like many 16-bit PIC, the device has multiple ICSP pin pairs. Any pair can be used for programming. The pair used for debugging is selected by a fuse setting. I'm sure that the required programmer connection is described verbosely in a dedicated data sheet chapter. Just read.
 

erumas

Newbie
Joined
Jan 20, 2022
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
40
Hello!


Welcome to the geek club!

I suppose you have developed your own hardware? (otherwise it would be configured out of the box and
you wouldn't ask).
I have no experience with PIC, but at a first glance, I would bet PGEC and PGED are the correct ones.
OSC pins are oscillator (crystal) pins.

Now second glance, if you look at the documentation (you can search the PDF for "PGEC"), you will find
an explanation page 25 of what it does. It says it's the programming clock, so it's safe to assume that it's PGC.

That said, you might consider buying an evaluation board which will ensure that everything is configured
fine. Getting some experience in programming before developing your own hardware is probably better
than starting everything from scratch.

Dora
Thanks doraemon, you're right the description of the PGEC was in the docs, just have to find it. I also think you're right about buying an evaluation board.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
49,894
Helped
14,482
Reputation
29,234
Reaction score
13,391
Trophy points
1,393
Location
Bochum, Germany
Activity points
286,515
Part of the information is in PIC32MX1XX/2XX family datasheet in paragraph 26 special features, the other part in PIC32 Flash Programming Spec.
 

erumas

Newbie
Joined
Jan 20, 2022
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
40
Thanks for the help guys, I have tried for several days to flash a program to the pic32 without success. I am getting and error from MPLAB IDE "Failed to get Device ID" and from what I can tell it points to a failure in the hardware I have set up, it's failing communicating to the target device to be flashed.

I have ordered and evaluation board as I am unsure about how to correctly debug the circuit any further. Once I have successfully configured the MPLAB ide to flash programs to the processors using the evaluation board I will return to this project.


I appreciate the help pointing me in the right direction.
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top