UPD78F9502MA-CAC-A NEC, UPD78F9502MA-CAC-A Datasheet - Page 154

8BIT MCU, 4K FLASH, 128B RAM, SMD

UPD78F9502MA-CAC-A

Manufacturer Part Number
UPD78F9502MA-CAC-A
Description
8BIT MCU, 4K FLASH, 128B RAM, SMD
Manufacturer
NEC
Datasheet

Specifications of UPD78F9502MA-CAC-A

Controller Family/series
UPD78F
No. Of I/o's
8
Ram Memory Size
128Byte
Cpu Speed
10MHz
No. Of Timers
2
No. Of Pwm
RoHS Compliant
Core Size
8bit
Program Memory Size
4KB
Oscillator Type
External, Internal
14.8.4 Example of shifting normal mode to self programming mode
programming.
154
The operating mode must be shifted from normal mode to self programming mode before performing self
An example of shifting to self programming mode is explained below.
<1> Disable interrupts if the interrupt function is used (by setting the interrupt mask flag registers (MK0) to FFH
<2> Clear FLCMD (FLCMD=00H).
<3> Clear the flash status register (PFS).
<4> Set self programming mode using a specific sequence.
<7> Execute NOP instruction and HALT instruction.
<6> Check the execution result of the specific sequence using bit 0 (FPRERR) of PFS.
<7> Mode shift is completed.
Note Set the CPU clock so that it is 1 MHz or more during self programming.
Caution Be sure to perform the series of operations described above using the user program at an
and executing the DI instruction).
Abnormal
PRSELF4
PD78F9502
Write a specific value (A5H) to PFCMD.
Write 01H to FLPMC (writing in this step is invalid).
Write 0FEH (inverted value of 01H) to FLPMC (writing in this step is invalid).
Write 01H to FLPMC (writing in this step is valid).
0
0
0
0
0
0
0
0
1
address where data is not erased nor written.
<3>, normal
PRSELF3
1
1
1
1
1
1
1
1
1
Other than above
PRSELF2
Figure 14-19. Format of Protect Byte (2/2)
<7>
0
0
0
0
1
1
1
1
1
Preliminary User’s Manual U18681EJ1V0UD
CHAPTER 14 FLASH MEMORY
PRSELF1
0
0
1
1
0
0
1
1
1
PRSELF0
Note
0
1
0
1
0
1
0
1
1
Blocks 15 to 0 are protected.
Blocks 13 to 0 are protected.
Blocks 14 and 15 can be written or erased.
Blocks 11 to 0 are protected.
Blocks 12 to 15 can be written or erased.
Blocks 9 to 0 are protected.
Blocks 10 to 15 can be written or erased.
Blocks 7 to 0 are protected.
Blocks 8 to 15 can be written or erased.
Blocks 5 to 0 are protected.
Blocks 6 to 15 can be written or erased.
Blocks 3 to 0 are protected.
Blocks 4 to 15 can be written or erased.
Blocks 1 and 0 are protected.
Blocks 2 to 15 can be written or erased.
All blocks can be written or erased.
Setting prohibited
Status

Related parts for UPD78F9502MA-CAC-A