Renesas M16C/64A Series User Manual page 716

Table of Contents

Advertisement

M16C/64A Group
30.8.5.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 30.12 shows a flowchart of the Lock Bit Program Command. 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 30.8.4 "Data Protect Function", for details on lock bit functions and how to set it to 1
(unlocked).
Figure 30.12 Lock Bit Program Command
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
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
30. Flash Memory
Page 683 of 800

Advertisement

Table of Contents
loading

Table of Contents