Download Print this page

Renesas M16C/50 Series User Manual page 722

Advertisement

M16C/5L Group, M16C/56 Group
26.8.6.6
Lock Bit Program Command
The lock bit program command is used to set the lock bit for a specified block to 0 (locked).
By writing xx77h in the first bus cycle and xxD0h to the highest even address of a block in the second
bus cycle, the lock bit for the specified block is set to 0. The address value specified in the first bus
cycle must be the same highest address of a block specified in the second bus cycle.
Figure 26.21 shows a flowchart of the Lock Bit Program Command (Suspend Function Disabled).
Execute the read lock bit status command to read the lock bit state (lock bit data).
The FMR00 bit in the FMR0 register indicates whether a lock bit program operation has been
completed. Do not execute other commands while the FMR00 bit is 0.
Refer to 26.8.4 "Data Protect Function", for details on lock bit functions and how to set it to 1
(unlocked).
Figure 26.21 Lock Bit Program Command (Suspend Function Disabled)
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Start
Write command code xx77h
to BA address
Write xxD0h to BA address
No
FMR00 = 1?
Yes
Full status check
Lock bit program command
completed
26. Flash Memory
Page 685 of 803

Advertisement

loading