Calling Parameters - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

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).
Function Name
First Argument (r6)
Function No.
Acquiring flash
0
information
Erasing area
1
Area write back
5
Erase byte verify 9
Erase verify
10
Continuous write
16
Note 2
in word units
Pre-write
20
Internal verify
21
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.
CHAPTER 16 FLASH MEMORY ( µ µ µ µ PD70F3116)
Table 16-9. Calling Parameters
Second Argument
Third Argument (r8)
(r7)
Note 1
Option number
Area erase start
address
None (acts on erase
manipulation area
immediately before)
Verify start address
Number of bytes to
be verified
None (acts on erase
manipulation area
immediately before)
Write start
Start address of
Note 3
address
write source data
Write start address
Number of bytes to
be written
Verify start address
Number of bytes to
be verified
User's Manual U14492EJ3V0UD
Fourth Argument
(r9)
Number of words
Note 3
to be written (word
units)
Return Value (r10)
Note 1
0: Normal completion
Other than 0: Error
None
0: Normal completion
Other than 0: Error
0: Normal completion
Other than 0: Error
0: Normal completion
Other than 0: Error
0: Normal completion
Other than 0: Error
0: Normal completion
Other than 0: Error
745

Advertisement

Table of Contents
loading

Table of Contents