|
M306H7MG-XXXFP Datasheet, PDF (294/329 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with DATA ACQUISITION CONTROLLER | |||
|
◁ |
M306H7MG-XXXFP/MC-XXXFP/FGFP
17. FLASH MEMORY VERSION
Clear Status Register Command
This command clears the status register to â0â.
Write âexx5016â in the first bus cycle, and the FMR06 to FMR07 bits in the FMR0 register and SR4 to SR5 in
the status register will be cleared to â0â.
Program Command
This command writes data to the flash memory in 1 word (2 byte) units.
Write âexx4016â in the first bus cycle and write data to the write address in the second bus cycle, and an auto
program operation (data program and verify) will start. Make sure the address value specified in the first bus
cycle is the same even address as the write address specified in the second bus cycle.
Check the FMR00 bit in the FMR0 register to see if auto programming has finished. The FMR00 bit is â0â
during auto programming and set to â1â when auto programming is completed.
Check the FMR06 bit in the FMR0 register after auto programming has finished, and the result of auto
programming can be known. (Refer to âFull Status Check.â)
Each block can be protected against programming by a lock bit. (Refer to âData Protect Function.â)
Be careful not to write over the already programmed addresses.
In EW1 mode, do not execute this command on any address at which the rewrite control program is located.
In EW0 mode, the microcomputer goes to read status register mode at the same time auto programming starts,
making it possible to read the status register. The status register bit 7 (SR7) is cleared to â0â at the same time
auto programming starts, and set back to â1â when auto programming finishes. In this case, the microcomputer
remains in read status register mode until a read command is written next. The result of auto programming can
be known by reading the status register after auto programming has finished.
Start
Write the command code âxx4016â
to the write address
Write data to the write address
NO
FMR00=1?
YES
Full status check
Program
completed
Note: Write the command code and data at even number.
Figure 17.8 Program Command
Rev.2.10 Oct 25, 2006 Page 294 of 326
REJ03B0152-0210
|
▷ |