1. 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.
    Dismiss Notice

How to CODE protect PIC18F452?

Discussion in 'Oshonsoft' started by kasamiko, Apr 6, 2016.

  1. kasamiko

    kasamiko Member

    Joined:
    Oct 25, 2003
    Messages:
    102
    Likes:
    0
    Location:
    Philippines
    Is there a way to code protect PIC18F452 on source code? I was trying to code protect during programming but the program wont run, and I'm lost with so many protect bits..:(
     
  2. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,214
    Likes:
    640
    Location:
    Derbyshire, UK
    You simply set the config fuses in your source code accordingly, is there some specific reason you want to protect the programmed device? (generally it's a BAD idea).
     
  3. kasamiko

    kasamiko Member

    Joined:
    Oct 25, 2003
    Messages:
    102
    Likes:
    0
    Location:
    Philippines
    Hi,

    But I don't have any idea on how to do it on PIC18 Simulator. I tried setting CP0-CP3 during programming but the project wont work after setting that bits.
    Actually I did it on PIC16F877A with no problem and curious why it wont work with PIC18F452.

    BR
     

Share This Page