M16C/62P Group (M16C/62P, M16C/62PT)
22. Flash Memory Version
Rev.2.41
Jan 10, 2006
Page 290 of 390
REJ09B0185-0241
22.3.5.8
Read Lock Bit Status Command (71h)
The read lock bit status command reads the lock bit state of a specified block.
By writing “xx71h” in the first bus cycle and “xxD0h” to the highest-order even address of a block in the
second bus cycle, the FMR16 bit in the FMR1 register stores information on whether or not the lock bit of a
specified block is locked. Read the FMR16 bit after the FMR00 bit in the FMR0 register is set to “1” (ready).
Figure 22.13 shows a Flow Chart of the Read Lock Bit Status Command Programming.
Figure 22.13
Read Lock Bit Status Command
Block is not locked
Write “xxD0h” to the highest-order
block address
Start
Block is locked
YES
NO
Write the command code “xx71h”
FMR00=1?
YES
NO
FMR16=0?
NOTES:
1. Write the command code and data to even addresses.
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655