R01UH0136EJ0210 Rev.2.10
Page 683 of 800
Jul 31, 2012
M16C/64A Group
30. Flash Memory
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
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
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...