NEC V850E/MA1 User Manual page 527

32-bit single-chip microcontroller
Hide thumbs Also See for V850E/MA1:
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
Successive 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 successively 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.
FLASH MEMORY ( µ µ µ µ PD70F3107A)
CHAPTER 16
Table 16-7. 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 U14359EJ4V0UM
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
527

Advertisement

Table of Contents
loading

Table of Contents