16.1 Overview .................................................................................................................................... 524
16.2 Registers controlling standby function ................................................................................. 525
16.3 Standby Function Operation ................................................................................................... 525
16.3.1 HALT mode .................................................................................................................................. 525
16.3.2 STOP mode .................................................................................................................................. 529
CHAPTER 17 RESET FUNCTION ........................................................................................................ 533
17.1 Timing of Reset Operation ...................................................................................................... 535
17.2 States of Operation During Reset Periods............................................................................. 537
17.3 Register for Confirming Reset Source ................................................................................... 539
17.3.1 Reset Control Flag Register (RESF) ............................................................................................ 539
CHAPTER 18 SELECTABLE POWER-ON-RESET CIRCUIT .............................................................. 541
18.1 Functions of Selectable Power-on-reset Circuit ................................................................... 541
18.2 Configuration of Selectable Power-on-reset Circuit ............................................................. 541
18.3 Operation of Selectable Power-on-reset Circuit ................................................................... 542
18.4 Cautions for Selectable Power-on-reset Circuit .................................................................... 543
CHAPTER 19 OPTION BYTE ............................................................................................................... 544
19.1 Functions of Option Bytes ...................................................................................................... 544
19.1.1 User option byte (000C0H to 000C2H) ......................................................................................... 544
19.1.2 On-chip debug option byte (000C3H) ........................................................................................... 544
19.2 Format of User Option Byte .................................................................................................... 545
19.3 Format of On-chip Debug Option Byte................................................................................... 547
19.4 Setting of Option Byte.............................................................................................................. 548
CHAPTER 20 FLASH MEMORY .......................................................................................................... 549
20.1 Serial Programming by Using Flash Memory Programmer ................................................. 550
20.1.1 Programming environment ........................................................................................................... 551
20.1.2 Communication mode .................................................................................................................. 551
20.2 Writing to Flash Memory by Using External Device (that Incorporates UART) ................. 552
20.2.1 Programming Environment ........................................................................................................... 552
20.2.2 Communication Mode .................................................................................................................. 552
20.3 Connection of Pins on Board .................................................................................................. 553
20.3.1 P40/TOOL0 pin ............................................................................................................................ 553
20.3.2 RESET pin ..................................................................................................................................... 553
20.3.3 Port pins ....................................................................................................................................... 554
20.3.4 X1 and X2 pins (16-pin products only) ......................................................................................... 554
20.3.5 Power supply ................................................................................................................................ 554
20.4 Serial Programming Method ................................................................................................... 555