16F88 code locking pic ?


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    MELabs actually helped me solve this issue over the phone.

    If you use MCLR as an input pin, then you need to delay at least two seconds before configuring the osc drive... these are notes I made in my code... and they work.


    ' Turn PGC (PORTB.6) & PGD (PORTB.7) into inputs (tris.x =1)
    ' Disable hardware Crystal drive
    ' Pause ~2 seconds.
    ' This allows the PIC to reset for programming. Otherwise, it's a hit & miss for programming.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Tenaja,

    this means i have to always ( everytime i use internal oscillator AND have programmed the MCLR pin as an IO ) include a small code before the actual code, right ?



    BeforeCode:

    input portb.6 ' Turn PGC (PORTB.6) & PGD (PORTB.7) into inputs (tris.x =1)
    input portb.7 ' Turn PGC (PORTB.6) & PGD (PORTB.7) into inputs (tris.x =1)

    ' Disable hardware Crystal drive -> What is the simplest way to do this ?

    pause 2000 ' Pause ~2 seconds

    Codestart:

    ' and here starts the program

    .

  3. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    No, it's not when using the internal osc.

    It's when using the internal osc, but the external osc driver as an interrupt... I'm using it with a 32khz crystal for RTC functions, but running the PIC off of the internal 8mhz osc.

    If you aren't using the mclr as an input (you are leaving it open for mclr use) then you have nothing to worry about. It is only if you are using the mclr as something out of the ordinary. It has to do with the mclr pin allowing it to reset the pic to allow reprogramming.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Is there a mod that can be done to the normal JDM programmers ?

    Where can i find the new JDM programmer for me to build ?

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


    Did you find this post helpful? Yes | No

    Default

    Steve

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

  6. #6


    Did you find this post helpful? Yes | No

    Default

    there is a mod for the jdm but the time messing with it, and the freeware software to work with it and adding configs for unsupported chips etc. you would be MUCH happier paying the 40 bucks for a PicKit2. seriously i have spent way too much time screwing about with mine to get it to be able to program a 16c717 and 18f4553 i'm buying one myself after christmas.

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


    Did you find this post helpful? Yes | No

    Default

    Yup that's what i repeat over and over here and there since awhile
    Steve

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

Similar Threads

  1. PIC Basic Code Understanding
    By pr2don in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th June 2010, 15:33
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. PIC Code Template
    By asguard in forum mel PIC BASIC
    Replies: 4
    Last Post: - 4th December 2006, 12:28
  5. Code for I2C Slave
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st November 2006, 19:14

Members who have read this thread : 0

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