Datasheet

Table Of Contents
Rev. 2.00 Jul. 04, 2007 Page xii of xl
6.4 Module Standby Function.................................................................................................. 123
6.5 Usage Notes ....................................................................................................................... 124
6.5.1 Standby Mode Transition and Pin States .............................................................. 124
6.5.2 Notes on External Input Signal Changes before/after Standby Mode................... 125
Section 7 ROM .................................................................................................. 127
7.1 Block Configuration .......................................................................................................... 128
7.2 Register Descriptions ......................................................................................................... 129
7.2.1 Flash Memory Control Register 1 (FLMCR1) ..................................................... 129
7.2.2 Flash Memory Control Register 2 (FLMCR2) ..................................................... 130
7.2.3 Erase Block Register 1 (EBR1) ............................................................................ 131
7.2.4 Erase Block Register 2 (EBR2) ............................................................................ 132
7.2.5 Flash Memory Power Control Register (FLPWCR)............................................. 132
7.2.6 Flash Memory Enable Register (FENR)............................................................... 133
7.3 On-Board Programming Modes......................................................................................... 133
7.3.1 Boot Mode ............................................................................................................ 134
7.3.2 Programming/Erasing in User Program Mode...................................................... 137
7.4 Using RAM to Emulate Flash Memory ............................................................................. 138
7.5 Flash Memory Programming/Erasing ................................................................................ 140
7.5.1 Program/Program-Verify ...................................................................................... 140
7.5.2 Erase/Erase-Verify................................................................................................ 143
7.5.3 Interrupt Handling when Programming/Erasing Flash Memory........................... 143
7.6 Program/Erase Protection .................................................................................................. 145
7.6.1 Hardware Protection ............................................................................................. 145
7.6.2 Software Protection............................................................................................... 145
7.6.3 Error Protection .................................................................................................... 145
7.7 Programmer Mode ............................................................................................................. 146
7.8 Power-Down States for Flash Memory.............................................................................. 146
7.9 Notes on Setting Module Standby Mode ........................................................................... 147
Section 8 RAM .................................................................................................. 149
Section 9 I/O Ports.............................................................................................151
9.1 Port 1.................................................................................................................................. 151
9.1.1 Port Data Register 1 (PDR1)................................................................................. 152
9.1.2 Port Control Register 1 (PCR1) ............................................................................ 152
9.1.3 Port Pull-Up Control Register 1 (PUCR1)............................................................ 153
9.1.4 Port Mode Register 1 (PMR1) .............................................................................. 153
9.1.5 Pin Functions ........................................................................................................ 154
9.1.6 Input Pull-Up MOS............................................................................................... 159