CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

sharing pic programming pins

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

sharing pic programming pins
PostPosted: Mon May 23, 2011 9:53 am     Reply with quote

Stuck! I am trying out a PIC18F20K80 and it's PGD and PGC are shared with TX2 and RX2 which I need to use! I've shared PGD and PGC with buttons before (not a problem as they are usually contact closure to GND).

TX2 and RX2 will be connect to a FT232 USB UART. TX2 will be OK as the UART has an input connected to that pin, not ideal but will just receive the programming clock.

However RX2 will be connected to the output of the FT223.
I am thinking a 47k resistor should do it allowing ICD control over PGD and when it's not connected the output of the FT223 can drive OK.

Any better ideas much appreciated.
bkamen



Joined: 07 Jan 2004
Posts: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Mon May 23, 2011 3:33 pm     Reply with quote

If you look at the topics concerning ICSP from Microchip, they use smaller resistors (about 10K) but engage the same concept.

The ICSP hooks directly to PGC/PGD and the 10K's hook up to your other I/O.

I just did this recently with a 46J11 hooked to stuff on PGC/PGD.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group