PGM for ICSP


Closed Thread
Results 1 to 5 of 5

Thread: PGM for ICSP

  1. #1
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166

    Default PGM for ICSP

    I'm designing a board around a PIC18F6680, and the datasheets mention that programming can be done with only 2 pins. (PGC and PGD, although MCLR and GND are needed too). In a bunch of posts on here, people say that PGM needs to be grounded with a Resistor.

    does it really need to be grounded, or can i use it as an I/O?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yes it can be used as a regular I/O no problem, but this I/O have to be loaded while programming your PIC, unless you may have some programming errors. Sit 1 LED, LCD or whatever else solve problem in most cases. Case not, just add a 10-22K load to gnd.

    Life will be good enough.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    so i do need a load on it for programming?? can i have a resistor to ground and then still use it to control a RC servo? so i would be using a pulsout command on that pin. so something like this would work:


    servo
    |
    |
    |
    |
    --------------PGM
    |
    \
    /
    \
    /
    |
    GND
    Last edited by dragons_fire; - 14th December 2007 at 22:18.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yes indeed !
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    thanks, i will give that a try

Similar Threads

  1. F886 & pgm
    By MOUNTAIN747 in forum General
    Replies: 14
    Last Post: - 9th February 2010, 22:19
  2. HSERIN each character cost 3 pgm words
    By boban in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 7th April 2008, 16:49

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts