20.07.2015 Views

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix Standard Serial I/O Mode (Flash Memory Version)Mitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTERErase All Unlocked Blocks CommandThis command erases the content of all blocks. Execute the erase all unlocked blocks command asexplained here following.(1) Send the “A716” command code in the 1st byte of the transmission.(2) Send the verify command code “D016” in the 2nd byte of the transmission. With the verify commandcode, the erase operation will start and continue for all blocks in the flash memory.When block erasing ends, the RTS1 (BUSY) signal changes from the “H” to the “L” level. The result of theerase operation can be known by reading the status register. Each block can be erase-protected with thelock bit. For more information, see the section on the data protection function.CLK1RxD1(<strong>M16C</strong> reception data)A716D016TxD1(<strong>M16C</strong> transmit data)RTS1(BUSY)Figure 1.31.8. Timing for erasing all unlocked blocksLock Bit Program CommandThis command writes “0” (lock) for the lock bit of the specified block. Execute the lock bit programcommand as explained here following.(1) Send the “7716” command code in the 1st byte of the transmission.(2) Send addresses A8 to A15 and A16 to A23 in the 2nd and 3rd bytes of the transmission respectively.(3) Send the verify command code “D016” in the 4th byte of the transmission. With the verify commandcode, “0” is written for the lock bit of the specified block. Write the highest address of thespecified block for addresses A8 to A23.When writing ends, the RTS1 (BUSY) signal changes from the “H” to the “L” level. Lock bit status canbe read with the read lock bit status command. For information on the lock bit function, reset procedureand so on, see the section on the data protection function.CLK1RxD1(<strong>M16C</strong> reception data)7716 A8 to A16 toA15 A23D016TxD1(<strong>M16C</strong> transmit data)RTS1(BUSY)Figure 1.31.9. Timing for the lock bit program260

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!