upd78f9211grt2-jjg-a ETC-unknow, upd78f9211grt2-jjg-a Datasheet - Page 234

no-image

upd78f9211grt2-jjg-a

Manufacturer Part Number
upd78f9211grt2-jjg-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
ETC-unknow
Datasheet
16.8.5 Example of shifting self programming mode to normal mode
programming.
234
The operating mode must be returned from self programming mode to normal mode after performing self
An example of shifting to normal mode is explained below.
<1> Clear the flash status register (PFS).
<2> Set normal mode using a specific sequence.
<3> Check the execution result of the specific sequence using bit 0 (FPRERR) of PFS.
<4> Enable interrupt servicing (by executing the EI instruction and changing MK0) to restore the original state.
<5> Mode shift is completed
Caution Be sure to perform the series of operations described above using the user program at an
• Write the specific value (A5H) to PFCMD.
• Write 00H to FLPMC (writing in this step is invalid)
• Write 0FFH (inverted value of 00H) to FLPMC (writing in this step is invalid)
• Write 00H to FLPMC (writing in this step is valid)
Abnormal → <1>, normal → <4>
address where data is not erased nor written.
CHAPTER 16 FLASH MEMORY
User’s Manual U16994EJ3V0UD

Related parts for upd78f9211grt2-jjg-a