Figure 18.15 Example Of Programming Flash Memory - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

Section 18 LPC Interface (LPC)
Initial settings
Read LMCST1 and LMCST2
No
Flag clear ?
Issue FLWAR setting command
Read BUFTRAN bit
in LMCST2
No
BUFTRAN = 1?
Issue data write command
Read LMCBSY flag
in LMCST2
No
LMCBSY = 0?
Data write end?
Issue flash memory
programming command
Read BUFTRAN bit
in LMCST2
No
BUFTRAN = 0?
Read FLPI flag in LMCST1
No
FLPI = 0?
Read FLPERR flag
in LMCST1
FLPERR = 0?

Figure 18.15 Example of Programming Flash Memory

Rev. 3.00 Jul. 14, 2005 Page 708 of 986
REJ09B0098-0300
Start
[1] Specify the start address of buffer in the on-chip RAM used
for the flash memory programming (RBUFAR) etc.
[2] Check LPC/FW memory write cycle processing state
Yes
[3] Specify the start address of the user MAT programming
[4] Wait for ready for flash memory programming
Yes
[5] Write data to be programmed to the flash memory to RAM
[6] Wait for the completion of transferring data to be written to RAM
Yes
No
Yes
[7] Start programming data to the flash memory
Yes
[8] Wait for completion of programming data to the flash memory
Yes
[9] Check whether programming flash memory has been completed
No
Yes
End
Error processing

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2100 seriesH8s/2114rR4f2114r

Table of Contents