Is it possible for me to combine the circuit in https://www.olimex.com/dev/images/pic-pg1-sch.gif with my PIC device so that I can program my PIC directly? I got serial communication in my original circuit, so is it mean I'll need to share the RS232 transmit line when I combine both this circuit with my original circuit?
It was stated in https://www.olimex.com/dev/pdf/pic-pg1a.pdf that MCLR should not be directly connected to Vcc as programmer try to rise MCLR to 13VDC to enter in programming mode. So wat should I do if my original circuit connects the MCLR directly to Vcc?
****************
I'hv an idea but I'm not sure if this will work or not. I was thinking that maybe I can add a switch or relay and whenever I want to do ICSP, all I need is to activate the switch and turn on the ICSP circuit. Am I on the right track?
/**************** Question and answer merged into one post.
Cluricaun
the mclr signal will not be a problem,you have to conect it to 5v through a series of 1n4148 diode + 1k resistor,so when the 13v are present,the diode blocks the 13v flow to vcc,and you can do icsp...but if you need the rs232 simultaneously,that's another story....
the mclr signal will not be a problem,you have to conect it to 5v through a series of 1n4148 diode + 1k resistor,so when the 13v are present,the diode blocks the 13v flow to vcc,and you can do icsp...but if you need the rs232 simultaneously,that's another story....
Wat do u mean by another story if I need the RS232 simultaneously? Wat if I plan to stop all the operations which are supposed to be processed by my PIC device when I'm going to do ICSP? Is it workable?
the mclr signal will not be a problem,you have to conect it to 5v through a series of 1n4148 diode + 1k resistor,so when the 13v are present,the diode blocks the 13v flow to vcc,and you can do icsp...but if you need the rs232 simultaneously,that's another story....
How exactly is the 13V going to flow? From where to where?
Can u teach me how to connect those 1N4148 and what value of resistors do I need for the connection?
I dont understand ur diagram. And why should I add a 100 ohm resister between RS232 and MCLR? Which pin of RS232 do u mean?
Notice that there is one pin which connects to the TXD of RS232 so wat happen if the circuit is not operated under ICSP mode and there is some data being transferred to PIC? Will the data be transfer correctly to the PIC or will cause some data loss due to the sharing pin of TXD?
R 100 ohm for limit current (VPP 13v) flow to gound.
if you don't add this R it may damage your serail port from over current.
8)
Notice that there is one pin which connects to the TXD of RS232 so wat happen if the circuit is not operated under ICSP mode and there is some data being transferred to PIC? Will the data be transfer correctly to the PIC or will cause some data loss due to the sharing pin of TXD?
Is it ok to connect a circuit with ICSP circuit all the time except that the PGM/RB3 and TXD line are not connected when the circuit is turned on?
I'hv been thinking using a relay to open-circuit the PGM/RB3 and TXD line during normal operation (ie. device is turned on) and short-circuit them when it's in ICSP mode. If this can work, then ICSP can only be done when the device is OFF. We cant do ICSP when the original circuit is operating, am I right?