Datasheet
Section 17 ROM 
Rev.7.00 Feb. 14, 2007  page 649 of 1108 
REJ09B0089-0700 
17.15  On-Board Programming Modes 
When pins are set to on-board programming mode, program/erase/verify operations can be 
performed on the on-chip flash memory. There are two on-board programming modes: boot mode 
and user program mode. The pin settings for transition to each of these modes are shown in table 
17.30. For a diagram of the transitions to the various flash memory modes, see figure 17.34. 
Table 17.30  Setting On-Board Programming Modes 
Modes Pins 
MCU Mode  CPU Operating Mode    MD2  MD1  MD0 
Boot mode  Advanced expanded mode with 
on-chip ROM enabled 
 0  1  0 
 Advanced single-chip mode    1 
User program mode
*
  Advanced expanded mode with 
on-chip ROM enabled 
 1  1  0 
 Advanced single-chip mode    1 
Note: * Normally, user mode should be used. Set the SWE bit to 1 to make a transition to user 
program mode before performing a program/erase/verify operation. 










