CHAPTER 16 FLASH MEMORY (
µµµµ
PD70F3116)
745
User’s Manual U14492EJ3V0UD
16.7.7 Calling parameters
The arguments used to call the self-programming function are shown in the table below. In addition to these
arguments, parameters such as the write time and erase time are set to the RAM parameters indicated by ep (r30).
Table 16-9. Calling Parameters
Function Name
First Argument (r6)
Function No.
Second Argument
(r7)
Third Argument (r8)
Fourth Argument
(r9)
Return Value (r10)
Acquiring flash
information
0
Option number
Note 1
−
−
Note 1
Erasing area
1
Area erase start
address
−
−
0: Normal completion
Other than 0: Error
Area write back
5
None (acts on erase
manipulation area
immediately before)
−
−
None
Erase byte verify 9
Verify start address
Number of bytes to
be verified
−
0: Normal completion
Other than 0: Error
Erase verify
10
None (acts on erase
manipulation area
immediately before)
−
−
0: Normal completion
Other than 0: Error
Continuous write
in word units
Note 2
16
Write start
address
Note 3
Start address of
write source data
Note 3
Number of words
to be written (word
units)
0: Normal completion
Other than 0: Error
Pre-write
20
Write start address
Number of bytes to
be written
−
0: Normal completion
Other than 0: Error
Internal verify
21
Verify start address
Number of bytes to
be verified
−
0: Normal completion
Other than 0: Error
Notes 1.
See
16.7.10 Flash information
for details.
2.
Prepare write source data in memory other than the flash memory when data is written continuously in
word units.
3.
This address must be at a 4-byte boundary.
Caution
For all the functions, ep (r30) must indicate the first address of the RAM parameter.