Download Flash Self-Programming Library Type01 User`s Manual

Transcript
RL78 Family
CHAPTER 6
FLASH FUNCTION
Flash Self-Programming Library Type 01
6. 5 Pausing of Flash Self-Programming
When you need to pause the sequencer control during block erasure while the flash function is being executed
in the status check user mode, the stand-by function (FSL_StandBy) can be used to pause the erasure processing
to put flash self-programming to the pause state. When the stand-by function is executed in a state other than
during block erasure, it waits until the previous processing is completed, and makes a transition to the pause state
after the completion.
When a transition to the pause state occurs, the code flash memory cannot be controlled. To return from the
pause state, the wakeup function (FSL_WakeUp) needs to be executed.
If the block erasure is suspended, the
pause state is released to restart the block erasure. In other cases, only the pause state is released.
Figure 6-4
Example of Pausing of Flash Self-Programming
Example 1: Pause processing during erasure processing
User
Start of
processing
Example 2: Pause processing during writing (other than erasure) processing
User
Library
Erasure executed
Start of
processing
Function closed
Function closed
Pause instruction
Erasure
processing
* ROM cannot
be referred to
Pause state
Restart instruction
Pause released
Status check
End of
processing
R01US0050EJ0103
Dec 22, 2014
Library
Writing executed
Pause state
* ROM can be
referred to
Pause instruction
A transition to the pause
state occurs after waiting
for the completion of
processing.
* A transition to the
pause state occurs
immediately if no waiting
is required.
Erasure
processing
restarted
* ROM cannot
be referred
Pause state
Restart instruction
End of
processing
Writing
processing
* ROM cannot
be referred to
Pause state
* ROM can be
referred to
Pause released
Status check
Rev.1.03
Page 50 of 109