R01UH0092EJ0110 Rev.1.10
Page 693 of 807
Jul 31, 2012
M16C/64C Group
30. Flash Memory
30.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 30.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 30.8.4 “Data Protect Function”, for details on lock bit functions and how to set it to 1
(unlocked).
Figure 30.21 Lock Bit Program Command (Suspend Function Disabled)
Write xxD0h to BA address
Yes
FMR00 = 1?
No
Start
Lock bit program command
completed
Write command code xx77h
to BA address
Full status check
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...