Contents Of Ram 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.8 Contents of RAM parameters

Reserve the following 48-byte area in the internal RAM or external RAM for the RAM parameters, and set the
parameters to be input. Set the base addresses of these parameters to ep (r30).
Address
Size
ep+0
4 bytes
Note 1
ep+4:Bit 5
1 bit
Notes 2, 3
ep+4:Bit 7
1 bit
ep+8
4 bytes
ep+0xc
4 bytes
ep+0x10
2 bytes
ep+0x12
2 bytes
ep+0x14
28 bytes
Notes 1.
Fifth bit of address of ep+4 (least significant bit is bit 0.)
2.
Seventh bit of address of ep+4 (least significant bit is bit 0.)
3.
Clear the NMI flag by the user program because it is not cleared by the device internal processing.
4.
The device internal processing sets this value minus 1 to the timer. Because the fraction is rounded up,
add 1 as indicated by the expression of the set value.
Caution Be sure to reserve the RAM parameter area at a 4-byte boundary.
746
CHAPTER 16 FLASH MEMORY ( µ µ µ µ PD70F3116)
Table 16-10. Description of RAM Parameter
I/O
For internal operations
Input
Operation flag (Be sure to set this flag to 1 before calling the device internal processing.)
0: Normal operation in progress
1: Self-programming in progress
Output
NMI flag
0: NMI not detected
1: NMI detected
Input
Erase time (unsigned 4 bytes)
Expressed as 1 count value in units of the internal operation unit time (100 µ s).
Set value = Erase time ( µ s)/internal operation unit time ( µ s)
Example: If erase time is 0.4 s
→ 0.4 × 1,000,000/100 = 4,000 (integer operation)
Input
Write back time (unsigned 4 bytes)
Expressed as 1 count value in units of the internal operation unit time (100 µ s).
Set value = Write back time ( µ s)/internal operation unit time ( µ s)
Example: If write back time is 1 ms
→ 1 × 1,000/100 = 10 (integer operation)
Input
Timer set value for creating internal operation unit time (unsigned 2 bytes)
Write a set value that makes the value of timer 4 the internal operation unit time (100 µ s).
Set value = Operating frequency (Hz)/1,000,000 × Internal operation unit time ( µ s)/
Timer division ratio (4) + 1
Example: If the operating frequency is 50 MHz
→ 50,000,000/1,000,000 × 100/4 + 1 = 1,251 (integer operation)
Input
Timer set value for creating write time (unsigned 2 bytes)
Write a set value that makes the value of timer 4 the write time.
Set value = Operating frequency (Hz)/Write time ( µ s)/Timer division ratio (4) + 1
Example: If the operating frequency is 50 MHz and the write time is 20 µ s
→ 50,000,000/1,000,000 × 20/4 + 1 = 251 (integer operation)
For internal operations
User's Manual U14492EJ3V0UD
Description
Note 4
Note 4

Advertisement

Table of Contents
loading

Table of Contents