Program memory Lock in microcontroller memories

Status
Not open for further replies.

bikas.bikun

Junior Member level 3
Joined
Nov 22, 2010
Messages
25
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
pune
Activity points
1,443
Can any body tell me what is program memory lock.

AT89C51 has 3 levels of program memory lock, what does it means ?
 

.................................................................................................................................................................
MODE 1

lock bits : LB 1=U(unprogrammed),LB 2=U(unprogrammed),LB 3= U.

protection type:no programmed lock features

........................................................................................................................................................................

MODE 2:

lock bits: LB 1 = P (programmed), LB 2:U(unprogrammed) LB 3: U(unprogrammed)

protection type: MOVC instruction executed from external program memory are disabled from fetching code bytes from internal memory. EA bar sampled and latching on RESET and further programming of the FLASH is disabled.
........................................................................................................................................................................

MODE 3:

lock bits : LB 1= P ( programmed), LB 2= P (programmed ), LB 3 = U ( unprogrammed )

protection type : same as MODE 2 also verify is disabled.
.........................................................................................................................................................................

MODE 4 :

lock bits : LB 1 = P (programmed ), LB 2 = P ( programmed), LB 3= P ( programmed)

protection type : same as MODE 3 , also external execution is disabled.

........................................................................................................................................................................

ONCE MODE ( 5 th MODE )n chip emulation mode facilitate the testing and debugging of system using the line device without the device being removed from the circuit.

the "ones"mode invoked by

step 1 : pull ALE low while the device is in RESET and PSEN is high.

step 2 : hold the ALE low as the RESET is deactivated.

while the device is " ones" mode the PORT 0 pin go into A float state and the other PORT pins and PSEN are weakly pulled high the oscillator remain active while the device is this mode . test CPU can be used to drive the CKT . normal operation is restored after a normal RESET is applied.
 

    ramina

    Points: 2
    Helpful Answer Positive Rating

    MRAMA

    Points: 2
    Helpful Answer Positive Rating
    V

    Points: 2
    Helpful Answer Positive Rating
Thank you friend ,but what do you mean by Lock bit and how to set or reset it.
i have no idea.would you please tell me.
 

the settings of the selection of the lock bit is done at the time of programming the controller, when you use the software to flash the hex file. where you select the uart, source of hex file, you have an option of what level of security you need to give memory. if you select highest level then no one can read the hex file, not modify it. if he has to change then he has to erase the complete flash and reload the hex file....
 

    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…