21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

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> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERClear Status Register CommandThis command clears the bits (SR3–SR5) which are set when the status register operation ends inerror. When the “5016” command code is sent in the 1st byte of the transmission, the aforementionedbits are cleared. When the clear status register operation ends, the RTS1 (BUSY) signal changesfrom the “H” to the “L” level.CLK1RxD1(<strong>M16C</strong> reception data)5016TxD1(<strong>M16C</strong> transmit data)RTS1(BUSY)Figure 1.31.5. Timing for clearing the status registerPage Program CommandThis command writes the specified page (256 bytes) in the flash memory sequentially one byte at atime. Execute the page program command as explained here following.(1) Send the “4116” 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) From the 4th byte onward, as write data (D0–D7) for the page (256 bytes) specified with addressesA8 to A23 is input sequentially from the smallest address first, that page is automatically written.When reception setup for the next 256 bytes ends, the RTS1 (BUSY) signal changes from the “H” tothe “L” level. The result of the page program can be known by reading the status register. For moreinformation, see the section on the status register.Each block can be write-protected with the lock bit. For more information, see the section on the dataprotection function. Additional writing is not allowed with already programmed pages.CLK1RxD1(<strong>M16C</strong> reception data)4116 A8 to A16 toA15 A23data0 data255TxD1(<strong>M16C</strong> transmit data)RTS1(BUSY)Figure 1.31.6. Timing for the page program259

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

Saved successfully!

Ooh no, something went wrong!