Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Quick Question About sharing programming pins on a PIC

Status
Not open for further replies.

2camjohn

Member
Is it good practice to use the PGC and PGD pins to switch MOSFETs while also using them to reprogram the microcontroller?


In other words, can I still use pins RB6 and RB7 to program my PIC while they are connected to the gate of a MOSFET (and 680k pull down)?

At the time of programming there will be no current for the mosfets to sink.




Is that a good idea?

Cheers
John
 
Even easier than that - and with no restrictions - you need a socket to plug your ICSP lead in to, so simply give that socket two rows, and plug a dummy plug in that joins the pins across to the required I/O circuit. To program, unplug the link plug (disconnecting the pins entirely), and plug the programmer in - no restrictions, dead easy!.
 
Given the OPs application that wouldn't make it easier since the ICSP programmer should have no problem with the MOSFETs on RB6/7.

It would also likely make a PCB layout more complex. The easiest way is design the application circuit to work with the ICSP if at all possible.
 
In other words, can I still use pins RB6 and RB7 to program my PIC while they are connected to the gate of a MOSFET (and 680k pull down)?
Should work fine as long as the ICSP also uses pull down resistors (The ICD2 does) and that the loads on the MOSFETs don't mind being toggled during the ICSP process.
 
Status
Not open for further replies.

Latest threads

Back
Top