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.

how to lock code in ATmega 16

Status
Not open for further replies.

Wafeeq

Member level 3
Joined
Jul 26, 2010
Messages
61
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Pakistan
Activity points
1,728
Hi All

i want to lock the code burnt into the microcontrollero of Atmega 16. i am using G540 programmer for programming. i want to lock the code so that after that no one can copy my code from uC.
 

I haven't use this programmer, but you need to set the fusebits LB1=0, LB2=1 (further programming disable) or LB1=0, LB2=0 (further programming and verification disable).
 

You have to set the bits LB2 and LB1.

Setting LB1 to 1 and LB2 to 1 disables all lock features.

Setting LB1 to 0 and LB2 to 1 - Further programming of the Flash and EEPROM is disabled in Parallel and Serial Programming mode. The Fuse Bits are locked in both Serial and Parallel Programming mode.

Setting LB2 to 0 and LB1 to 0 - Further programming and verification of the Flash and EEPROM is disabled in parallel and Serial Programming mode. The Fuse Bits are locked in both Serial and Parallel Programming modes.

Program the fuse bits before you program the lock bits.

If you erase the code-locked chip, you can use the chip again.

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top