Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC18F452 how to apply code protection using programmer opt?

Status
Not open for further replies.

dani

Full Member level 4
Joined
Mar 8, 2004
Messages
231
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,298
Location
UK
Activity points
2,217
Hello All,

I have a problem regarding applying Code protection of PIC18F452. I have written a code for PIC18F452 using Proton Plus and its program memory is almost fill i.e code 32070 editor shows.

According to my knowledge correct me if i am worng that CP0-CP1-CP2,CP3 bits of PIC18F452 register should be set to all zero to protect PIC18F452's code from read. But when i do this my PIC dont works. Although i have checked this thing when my code is not too much as 32070 (i.e programm memory nearly filled). then it works ok.

Where i am wrong..

regrads
 

Re: PIC18F452 how to apply code protection using programmer

You can do it from your firmware.
I am taking you are using C18 compiler.

For example:

#pragma config CP0 = OFF //Code Protection Block 0
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top