Download uPD78F0828B 8-bit Single-Chip Microcontroller Flash Self

Transcript
Chapter 1
Introduction
As a general overview, the whole procedure of Self-Programming is shown in the following diagram;
please use this as template for all Self-Programming purposes!
Figure 1-11: Complete Self-Programming procedure
Start
Startofof
Self
Programming
Self Programming
RTSF
Call Firmware Subroutine
Copy Code to RAM
(only if RTSF used)
<1ms
Hidden ROM
RTSF
- Erase/Blank check
/Write/Verify
Branch to lower
flash block / RAM
Disable Vpp Voltage
Disable Interrupts
N
Vpp = 0V?
Select Self Programming Mode
RTSF
Y
Enable Vpp Voltage
Prepare Parameters
Select Normal Operating Mode
:User program
Application Program
:User program
(Boot area)
N
Vpp = 10V?
Y
20
End of self
programming
:User Program
(RTSF)
:Hidden ROM
Preliminary User’s Manual U14879EE1V0UM00